* @see org.apache.jetspeed.security.spi.SecurityMappingHandler#removeRolePrincipalInGroup(java.lang.String,
* java.lang.String)
*/
public void removeRolePrincipalInGroup(String groupFullPathName, String roleFullPathName) throws SecurityException
{
InternalGroupPrincipal internalGroup = commonQueries.getInternalGroupPrincipal(GroupPrincipalImpl
.getFullPathFromPrincipalName(groupFullPathName));
if (null == internalGroup)
{
throw new SecurityException(SecurityException.GROUP_DOES_NOT_EXIST + " " + internalGroup);
}
Collection internalRoles = internalGroup.getRolePrincipals();
InternalRolePrincipal internalRole = commonQueries.getInternalRolePrincipal(RolePrincipalImpl
.getFullPathFromPrincipalName(roleFullPathName));
internalRoles.remove(internalRole);
internalGroup.setRolePrincipals(internalRoles);
commonQueries.setInternalGroupPrincipal(internalGroup, false);
}