in torque/src/java/org/apache/fulcrum/security/torque/turbine/TorqueTurbineModelManagerImpl.java [255:281]
private boolean checkExists( User user, Group group, Role role ) throws UnknownEntityException, DataBackendException
{
boolean roleExists = getRoleManager().checkExists(role);
boolean userExists = getUserManager().checkExists(user);
boolean groupExists = getGroupManager().checkExists(group);
if (roleExists && groupExists && userExists)
{
return true;
}
if (!roleExists)
{
throw new UnknownEntityException("Unknown role '" + role.getName() + "'");
}
if (!groupExists)
{
throw new UnknownEntityException("Unknown group '" + group.getName() + "'");
}
if (!userExists)
{
throw new UnknownEntityException("Unknown user '" + user.getName() + "'");
}
return false;
}