|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.business.rbac.RBACHome
public final class RBACHome
This class provides instances management methods (create, find, ...) for RBAC objects
Method Summary | |
---|---|
static RBAC |
create(RBAC rBAC)
Creation of an instance of rBAC |
static Collection<RBAC> |
findAll()
Returns a collection of rBACs objects |
static RBAC |
findByPrimaryKey(int nKey)
Returns an instance of a rBAC whose identifier is specified in parameter |
static Collection<RBAC> |
findResourcesByCode(String strRoleKey)
Find all the entries for a given role key |
static Collection<String> |
findRoleKeys(String strTypeCode,
String strId,
String strPermission)
Gets all role keys |
static void |
remove(int nKey)
Remove the RBAC whose identifier is specified in parameter |
static void |
removeForRoleKey(String strRoleKey)
Remove all the entries of the given role key |
static RBAC |
update(RBAC rBAC)
Update of the rBAC which is specified in parameter |
static void |
updateRoleKey(String strOldRoleKey,
String strNewRoleKey)
Update the role key of all the entries of a given role key |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RBAC create(RBAC rBAC)
rBAC
- The instance of the rBAC which contains the informations to store
public static RBAC update(RBAC rBAC)
rBAC
- The instance of the rBAC which contains the data to store
public static void remove(int nKey)
nKey
- The Primary key of the rBAC to removepublic static RBAC findByPrimaryKey(int nKey)
nKey
- The Primary key of the rBAC
public static Collection<RBAC> findAll()
public static Collection<RBAC> findResourcesByCode(String strRoleKey)
strRoleKey
- the role key to search for
public static void updateRoleKey(String strOldRoleKey, String strNewRoleKey)
strOldRoleKey
- the role key to updatestrNewRoleKey
- the new role keypublic static Collection<String> findRoleKeys(String strTypeCode, String strId, String strPermission)
strTypeCode
- The code typestrId
- The IDstrPermission
- The permission
public static void removeForRoleKey(String strRoleKey)
strRoleKey
- the role key of the entries to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |