net.sourceforge.jfacets.usersandroles
Interface IUsersAndRolesManager


public interface IUsersAndRolesManager

Users/Roles manager interface.
Developers using the Users/Roles profile repo should implement this interface and inject their object into the UsersAndRolesProfileRepository.

Author:
VANKEISBELCK Remi

Method Summary
 IRoleProfile[] getParentRoles(IRoleProfile role)
          Return an array of Role profiles with all parent Roles of the passed Role profile (return a 0-length array if passed role has no parent roles).
 IRoleProfile getRoleProfile(java.lang.String profileId)
          Return a Role profile by ID (should be the role name) if found, null if not found.
 IRoleProfile[] getRolesForUser(IUserProfile user)
          Return an array of Role profiles with all Roles for passed User profile (return a 0-length array if passed user has no roles).
 IUserProfile getUserProfile(java.lang.String profileId)
          Return a User profile by ID (should be the user's login name) if found, null if not found.
 

Method Detail

getUserProfile

IUserProfile getUserProfile(java.lang.String profileId)
Return a User profile by ID (should be the user's login name) if found, null if not found.


getRoleProfile

IRoleProfile getRoleProfile(java.lang.String profileId)
Return a Role profile by ID (should be the role name) if found, null if not found.


getParentRoles

IRoleProfile[] getParentRoles(IRoleProfile role)
Return an array of Role profiles with all parent Roles of the passed Role profile (return a 0-length array if passed role has no parent roles).


getRolesForUser

IRoleProfile[] getRolesForUser(IUserProfile user)
Return an array of Role profiles with all Roles for passed User profile (return a 0-length array if passed user has no roles).



Copyright © 2011. All Rights Reserved.