public final class AdminRoleHome extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkExistRole(String strRoleKey)
Check that the given key points to an existing role
|
static AdminRole |
create(AdminRole role)
Creation of an instance of role
|
static Collection<AdminRole> |
findAll()
Returns a collection of roles objects
|
static AdminRole |
findByPrimaryKey(String strRoleKey)
Returns an instance of a role whose identifier is specified in parameter
|
static ReferenceList |
getRolesList()
Returns a reference of roles objects
|
static void |
remove(String strRoleKey)
Remove the AdminRole whose identifier is specified in parameter
|
static AdminRole |
update(String strRoleKey,
AdminRole role)
Update of the role which is specified in parameter
|
public static AdminRole create(AdminRole role)
role
- The instance of the role which contains the informations to storepublic static AdminRole update(String strRoleKey, AdminRole role)
strRoleKey
- the key of the role to updaterole
- The instance of the role which contains the new data to storepublic static void remove(String strRoleKey)
strRoleKey
- The AdminRole object to removepublic static AdminRole findByPrimaryKey(String strRoleKey)
strRoleKey
- The Primary key of the rolepublic static Collection<AdminRole> findAll()
public static ReferenceList getRolesList()
public static boolean checkExistRole(String strRoleKey)
strRoleKey
- The role keyCopyright © 2020 City of Paris. All rights reserved.