in impl/src/main/java/org/apache/directory/fortress/realm/J2eePolicyMgrImpl.java [256:272]
public List<String> authorizedRoles( String userId ) throws SecurityException
{
List<String> list = null;
// This will check temporal constraints on User and Roles.
Session session = createSession( new User( userId ), true );
// Get the Set of authorized Roles.
Set<String> authZRoleSet = accessMgr.authorizedRoles( session );
// If User has authorized roles.
if ( ( authZRoleSet != null ) && ( authZRoleSet.size() > 0 ) )
{
// Convert the Set into a List before returning:
list = new ArrayList<String>( authZRoleSet );
}
return list;
}