*/
public void setRolePrincipal(RolePrincipal rolePrincipal)
throws SecurityException
{
String fullPath = rolePrincipal.getFullPath();
InternalRolePrincipal internalRole = commonQueries.getInternalRolePrincipal(fullPath);
if ( null == internalRole )
{
internalRole = new InternalRolePrincipalImpl(fullPath);
internalRole.setEnabled(rolePrincipal.isEnabled());
commonQueries.setInternalRolePrincipal(internalRole, false);
}
else if ( !internalRole.isMappingOnly() )
{
if ( internalRole.isEnabled() != rolePrincipal.isEnabled() )
{
internalRole.setEnabled(rolePrincipal.isEnabled());
commonQueries.setInternalRolePrincipal(internalRole, false);
}
}
else
{