*/
public void setGroupPrincipal(GroupPrincipal groupPrincipal)
throws SecurityException
{
String fullPath = groupPrincipal.getFullPath();
InternalGroupPrincipal internalGroup = commonQueries.getInternalGroupPrincipal(fullPath);
if ( null == internalGroup )
{
internalGroup = new InternalGroupPrincipalImpl(fullPath);
internalGroup.setEnabled(groupPrincipal.isEnabled());
commonQueries.setInternalGroupPrincipal(internalGroup, false);
}
else if ( !internalGroup.isMappingOnly() )
{
if ( internalGroup.isEnabled() != groupPrincipal.isEnabled() )
{
internalGroup.setEnabled(groupPrincipal.isEnabled());
commonQueries.setInternalGroupPrincipal(internalGroup, false);
}
}
else
{