public final class RBACHome extends Object
Modifier and Type | Method and Description |
---|---|
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 |
removeForResource(String strResourceType,
String strResourceId)
Remove all the entries of the given resource type and the given resource id
|
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
|
public static RBAC create(RBAC rBAC)
rBAC
- The instance of the rBAC which contains the informations to storepublic static RBAC update(RBAC rBAC)
rBAC
- The instance of the rBAC which contains the data to storepublic 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 rBACpublic static Collection<RBAC> findAll()
public static Collection<RBAC> findResourcesByCode(String strRoleKey)
strRoleKey
- the role key to search forpublic 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 permissionpublic static void removeForRoleKey(String strRoleKey)
strRoleKey
- the role key of the entries to removeCopyright © 2020 City of Paris. All rights reserved.