Class RBACDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.rbac.RBACDAO
-
-
Constructor Summary
Constructors Constructor Description RBACDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nRBACId)Delete a record from the tablevoiddeleteForResourceTypeAndId(String strResourceType, String strResourceId)Remove all the entries of the given ressource type and ressource idvoiddeleteForRoleKey(String strRoleKey)Remove all the entries of the given role keyvoidinsert(RBAC rBAC)Insert a new record in the table.RBACload(int nRBACId)Load the data of RBAC from the tableCollection<RBAC>selectByPermissionsAndRoles(Collection<String> permissions, Collection<String> roles)Find all entries for a given collection of permissions and rolesCollection<RBAC>selectRBACList()Load the list of rBACsCollection<RBAC>selectRBACListByRoleKey(String strRoleKey)Find all the entries for a given role keyCollection<String>selectRoleKeys(String strTypeCode, String strId, String strPermission)voidstore(RBAC rBAC)Update the record in the tablevoidupdateRoleKey(String strOldRoleKey, String strNewRoleKey)Update the role key of all the entries of a given role key
-
-
-
Method Detail
-
insert
public void insert(RBAC rBAC)
Insert a new record in the table.
-
load
public RBAC load(int nRBACId)
Load the data of RBAC from the table
-
delete
public void delete(int nRBACId)
Delete a record from the table
-
store
public void store(RBAC rBAC)
Update the record in the table
-
selectRBACList
public Collection<RBAC> selectRBACList()
Load the list of rBACs- Specified by:
selectRBACListin interfaceIRBACDAO- Returns:
- The Collection of the RBACs
-
selectRBACListByRoleKey
public Collection<RBAC> selectRBACListByRoleKey(String strRoleKey)
Find all the entries for a given role key- Specified by:
selectRBACListByRoleKeyin interfaceIRBACDAO- Parameters:
strRoleKey- the role key to search for- Returns:
- A collection of rBACs
-
selectByPermissionsAndRoles
public Collection<RBAC> selectByPermissionsAndRoles(Collection<String> permissions, Collection<String> roles)
Description copied from interface:IRBACDAOFind all entries for a given collection of permissions and roles- Specified by:
selectByPermissionsAndRolesin interfaceIRBACDAO- Parameters:
permissions- the permissions collectionroles- the roles collection- Returns:
- A collection of RBACs
-
updateRoleKey
public void updateRoleKey(String strOldRoleKey, String strNewRoleKey)
Update the role key of all the entries of a given role key- Specified by:
updateRoleKeyin interfaceIRBACDAO- Parameters:
strOldRoleKey- the role key to updatestrNewRoleKey- the new role key
-
deleteForRoleKey
public void deleteForRoleKey(String strRoleKey)
Remove all the entries of the given role key- Specified by:
deleteForRoleKeyin interfaceIRBACDAO- Parameters:
strRoleKey- the role key of the entries to remove
-
selectRoleKeys
public Collection<String> selectRoleKeys(String strTypeCode, String strId, String strPermission)
- Specified by:
selectRoleKeysin interfaceIRBACDAO- Parameters:
strTypeCode- The type codestrId- the idstrPermission- th permission- Returns:
- listRoleKeys
-
deleteForResourceTypeAndId
public void deleteForResourceTypeAndId(String strResourceType, String strResourceId)
Remove all the entries of the given ressource type and ressource id- Specified by:
deleteForResourceTypeAndIdin interfaceIRBACDAO- Parameters:
strResourceType- the resource typestrResourceId- the resource id
-
-