public final class RoleHome extends Object
Modifier and Type | Method and Description |
---|---|
static Role |
create(Role role)
Creation of an instance of a mode
|
static Collection<Role> |
findAll()
Returns the roles list
|
static Role |
findByPrimaryKey(String strRole)
Returns an instance of an role whose identifier is specified in parameter
|
static boolean |
findExistRole(String strRole)
Test if the role exists
|
static ReferenceList |
getRolesList()
Return the list of all roles
|
static ReferenceList |
getRolesList(AdminUser user)
Return the list of all roles
|
static void |
remove(String strRole)
Remove the mode whose identifier is specified in parameter
|
static Role |
update(Role role)
Update of the mode which is specified
|
public static Role create(Role role)
role
- An instance of a role which contains the informations to createpublic static Role update(Role role)
role
- The instance of the role which contains the data to storepublic static void remove(String strRole)
strRole
- The identifier of the role to removepublic static Role findByPrimaryKey(String strRole)
strRole
- The mode primary keypublic static ReferenceList getRolesList()
public static Collection<Role> findAll()
public static boolean findExistRole(String strRole)
strRole
- The role namepublic static ReferenceList getRolesList(AdminUser user)
user
- The Admin UserCopyright © 2020 City of Paris. All rights reserved.