Class RBACRoleDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.rbac.RBACRoleDAO
-
- All Implemented Interfaces:
IRBACRoleDAO
public final class RBACRoleDAO extends java.lang.Object implements IRBACRoleDAO
This class provides Data Access methods for RBACRole objects
-
-
Constructor Summary
Constructors Constructor Description RBACRoleDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckExistRole(java.lang.String strRoleKey)Check that the given key points to an existing rolevoiddelete(java.lang.String strRoleKey)Delete a record from the tablevoidinsert(RBACRole role)Insert a new record in the table.RBACRoleload(java.lang.String strRoleKey)Load the data of RBACRole from the tablejava.util.Collection<RBACRole>selectRoleList()Load the list of rolesvoidstore(java.lang.String strRoleKey, RBACRole role)Update the record identified by the given role key with the given role in the table
-
-
-
Method Detail
-
insert
public void insert(RBACRole role)
Insert a new record in the table.- Specified by:
insertin interfaceIRBACRoleDAO- Parameters:
role- The role object
-
load
public RBACRole load(java.lang.String strRoleKey)
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
public void delete(java.lang.String strRoleKey)
Delete a record from the table- Specified by:
deletein interfaceIRBACRoleDAO- Parameters:
strRoleKey- The role key
-
store
public void store(java.lang.String strRoleKey, RBACRole role)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
public java.util.Collection<RBACRole> selectRoleList()
Load the list of roles- Specified by:
selectRoleListin interfaceIRBACRoleDAO- Returns:
- The Collection of the Roles
-
checkExistRole
public boolean checkExistRole(java.lang.String strRoleKey)
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
-
-