in torque/src/java/org/apache/fulcrum/security/torque/turbine/TorqueTurbineModelManagerImpl.java [283:308]
private boolean checkExists( User user, Role oldRole, Role newRole, Group globalGroup ) throws UnknownEntityException, DataBackendException
{
boolean userExists = getUserManager().checkExists(user);
boolean oldRoleExists = getRoleManager().checkExists(oldRole);
boolean newRoleExists = getRoleManager().checkExists(newRole);
if (userExists && oldRoleExists && newRoleExists && globalGroup != null)
{
return true;
}
if (!oldRoleExists)
{
throw new UnknownEntityException("Unknown role '" + oldRole.getName() + "'");
}
if (!newRoleExists)
{
throw new UnknownEntityException("Unknown role '" + newRole.getName() + "'");
}
if (!userExists)
{
throw new UnknownEntityException("Unknown user '" + user.getName() + "'");
}
return false;
}