Class RBACRoleHome
java.lang.Object
fr.paris.lutece.portal.business.rbac.RBACRoleHome
This class provides instances management methods (create, find, ...) for RBACRole objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckExistRole(String strRoleKey) Check that the given key points to an existing rolestatic RBACRoleCreation of an instance of rolestatic Collection<RBACRole>findAll()Returns a collection of roles objectsstatic RBACRolefindByPrimaryKey(String strRoleKey) Returns an instance of a role whose identifier is specified in parameterstatic ReferenceListReturns a reference of roles objectsstatic voidRemove the RBACRole whose identifier is specified in parameterstatic RBACRoleUpdate of the role which is specified in parameter
-
Method Details
-
create
Creation of an instance of role- Parameters:
role- The instance of the role which contains the informations to store- Returns:
- The instance of role which has been created with its primary key.
-
update
Update of the role which is specified in parameter- Parameters:
strRoleKey- the key of the role to updaterole- The instance of the role which contains the new data to store- Returns:
- The instance of the role which has been updated
-
remove
Remove the RBACRole whose identifier is specified in parameter- Parameters:
strRoleKey- The RBACRole object to remove
-
findByPrimaryKey
Returns an instance of a role whose identifier is specified in parameter- Parameters:
strRoleKey- The Primary key of the role- Returns:
- An instance of role
-
findAll
Returns a collection of roles objects- Returns:
- A collection of roles
-
getRolesList
Returns a reference of roles objects- Returns:
- A collection of roles
-
checkExistRole
Check that the given key points to an existing role- Parameters:
strRoleKey- The role key- Returns:
- true if the role exists, false otherwise
-