net.sourceforge.jfacets.usersandroles
Class UsersAndRolesProfileRepository

java.lang.Object
  extended by net.sourceforge.jfacets.usersandroles.UsersAndRolesProfileRepository
All Implemented Interfaces:
IProfileRepository

public class UsersAndRolesProfileRepository
extends Object
implements IProfileRepository

The Users/Roles Profile Repository. Provides a higher abstraction level compared to the IProfileRepository base interface, for managing Users and Roles.
Nothing has to be modified here in order to use this ProfileRepository. You just have to implement the IUsersAndRolesManager and inject your object via the Spring ApplicationContext.

Author:
VANKEISBELCK Remi - remi 'at' rvkb.com

Constructor Summary
UsersAndRolesProfileRepository()
           
 
Method Summary
 IProfile getProfileById(String profileId)
          Return a profile by its ID
 IProfile[] getSuperProfiles(IProfile child)
          Return passed profile's parents in an array
 IUsersAndRolesManager getUsersAndRolesManager()
           
 void setUsersAndRolesManager(IUsersAndRolesManager usersAndRolesManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsersAndRolesProfileRepository

public UsersAndRolesProfileRepository()
Method Detail

getProfileById

public IProfile getProfileById(String profileId)
Description copied from interface: IProfileRepository
Return a profile by its ID

Specified by:
getProfileById in interface IProfileRepository

getSuperProfiles

public IProfile[] getSuperProfiles(IProfile child)
Description copied from interface: IProfileRepository
Return passed profile's parents in an array

Specified by:
getSuperProfiles in interface IProfileRepository

getUsersAndRolesManager

public IUsersAndRolesManager getUsersAndRolesManager()

setUsersAndRolesManager

public void setUsersAndRolesManager(IUsersAndRolesManager usersAndRolesManager)


Copyright © 2012. All Rights Reserved.