Class RoleHome
java.lang.Object
fr.paris.lutece.portal.business.role.RoleHome
This class provides instances management methods (create, find, ...) for Role right objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic RoleCreation of an instance of a modestatic Collection<Role>findAll()Returns the roles liststatic RolefindByPrimaryKey(String strRole) Returns an instance of an role whose identifier is specified in parameterstatic booleanfindExistRole(String strRole) Test if the role existsstatic ReferenceListReturn the list of all rolesstatic ReferenceListgetRolesList(AdminUser user) Return the list of all rolesstatic voidRemove the mode whose identifier is specified in parameterstatic RoleUpdate of the mode which is specified
-
Method Details
-
create
Creation of an instance of a mode- Parameters:
role- An instance of a role which contains the informations to create- Returns:
- The instance of a mode which has been created with its primary key.
-
update
Update of the mode which is specified- Parameters:
role- The instance of the role which contains the data to store- Returns:
- The instance of the mode which has been updated
-
remove
Remove the mode whose identifier is specified in parameter- Parameters:
strRole- The identifier of the role to remove
-
findByPrimaryKey
Returns an instance of an role whose identifier is specified in parameter- Parameters:
strRole- The mode primary key- Returns:
- an instance of a role
-
getRolesList
Return the list of all roles- Returns:
- A ReferenceList of roles
-
findAll
Returns the roles list- Returns:
- Collection of Role
-
findExistRole
Test if the role exists- Parameters:
strRole- The role name- Returns:
- true if the role exists, otherwise false
-
getRolesList
Return the list of all roles- Parameters:
user- The Admin User- Returns:
- A ReferenceList of roles
-