Class RBACRoleDAO
java.lang.Object
fr.paris.lutece.portal.business.rbac.RBACRoleDAO
- All Implemented Interfaces:
IRBACRoleDAO
This class provides Data Access methods for RBACRole objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckExistRole(String strRoleKey) Check that the given key points to an existing rolevoidDelete a record from the tablevoidInsert a new record in the table.Load the data of RBACRole from the tableLoad the list of rolesvoidUpdate the record identified by the given role key with the given role in the table
-
Constructor Details
-
RBACRoleDAO
public RBACRoleDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIRBACRoleDAO- Parameters:
role- The role object
-
load
Load the data of RBACRole from the table- Specified by:
loadin interfaceIRBACRoleDAO- Parameters:
strRoleKey- The identifier of RBACRole- Returns:
- the instance of the RBACRole
-
delete
Delete a record from the table- Specified by:
deletein interfaceIRBACRoleDAO- Parameters:
strRoleKey- The role key
-
store
Update the record identified by the given role key with the given role in the table- Specified by:
storein interfaceIRBACRoleDAO- Parameters:
strRoleKey- the key of the role to modifyrole- The reference of role to be the new one
-
selectRoleList
Load the list of roles- Specified by:
selectRoleListin interfaceIRBACRoleDAO- Returns:
- The Collection of the Roles
-
checkExistRole
Check that the given key points to an existing role- Specified by:
checkExistRolein interfaceIRBACRoleDAO- Parameters:
strRoleKey- the role key- Returns:
- true if the role exists, false otherwise
-