Class RBACRoleHome
- java.lang.Object
-
- fr.paris.lutece.portal.business.rbac.RBACRoleHome
-
public final class RBACRoleHome extends Object
This class provides instances management methods (create, find, ...) for RBACRole objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckExistRole(String strRoleKey)Check that the given key points to an existing rolestatic RBACRolecreate(RBACRole role)Creation 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 ReferenceListgetRolesList()Returns a reference of roles objectsstatic voidremove(String strRoleKey)Remove the RBACRole whose identifier is specified in parameterstatic RBACRoleupdate(String strRoleKey, RBACRole role)Update of the role which is specified in parameter
-
-
-
Method Detail
-
create
public static RBACRole create(RBACRole role)
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
public static RBACRole update(String strRoleKey, RBACRole role)
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
public static void remove(String strRoleKey)
Remove the RBACRole whose identifier is specified in parameter- Parameters:
strRoleKey- The RBACRole object to remove
-
findByPrimaryKey
public static RBACRole findByPrimaryKey(String strRoleKey)
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
public static Collection<RBACRole> findAll()
Returns a collection of roles objects- Returns:
- A collection of roles
-
getRolesList
public static ReferenceList getRolesList()
Returns a reference of roles objects- Returns:
- A collection of roles
-
checkExistRole
public static boolean checkExistRole(String strRoleKey)
Check that the given key points to an existing role- Parameters:
strRoleKey- The role key- Returns:
- true if the role exists, false otherwise
-
-