Interface IRBACDAO
- All Known Implementing Classes:
RBACDAO
public interface IRBACDAO
Interface for RBAC DAO
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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 a new record in the table.load(int nRBACId) Load the data of RBAC from the tableselectByPermissionsAndRoles(Collection<String> permissions, Collection<String> roles) Find all entries for a given collection of permissions and rolesLoad the list of rBACsselectRBACListByRoleKey(String strRoleKey) Find all the entries for a given role keyselectRoleKeys(String strTypeCode, String strId, String strPermission) voidUpdate the record in the tablevoidupdateRoleKey(String strOldRoleKey, String strNewRoleKey) Update the role key of all the entries of a given role key
-
Method Details
-
delete
void delete(int nRBACId) Delete a record from the table- Parameters:
nRBACId- The id of RBAC object to delete
-
deleteForRoleKey
Remove all the entries of the given role key- Parameters:
strRoleKey- the role key of the entries to remove
-
insert
Insert a new record in the table.- Parameters:
rBAC- The rBAC object
-
load
Load the data of RBAC from the table- Parameters:
nRBACId- The identifier of RBAC- Returns:
- the instance of the RBAC
-
selectRBACList
Collection<RBAC> selectRBACList()Load the list of rBACs- Returns:
- The Collection of the RBACs
-
selectRBACListByRoleKey
Find all the entries for a given role key- Parameters:
strRoleKey- the role key to search for- Returns:
- A collection of rBACs
-
selectByPermissionsAndRoles
Collection<RBAC> selectByPermissionsAndRoles(Collection<String> permissions, Collection<String> roles) Find all entries for a given collection of permissions and roles- Parameters:
permissions- the permissions collectionroles- the roles collection- Returns:
- A collection of RBACs
-
selectRoleKeys
- Parameters:
strTypeCode- The type codestrId- the idstrPermission- th permission- Returns:
- listRoleKeys
-
store
Update the record in the table- Parameters:
rBAC- The reference of rBAC
-
updateRoleKey
Update the role key of all the entries of a given role key- Parameters:
strOldRoleKey- the role key to updatestrNewRoleKey- the new role key
-
deleteForResourceTypeAndId
Remove all the entries of the given ressource type and ressource id- Parameters:
strResourceType- the resource typestrResourceId- the resource id
-