public final class AdminWorkgroupHome extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addUserForWorkgroup(AdminUser user,
String strWorkgroupKey)
Add user to the workgroup
|
static boolean |
checkExistWorkgroup(String strWorkgroupKey)
Check that the given key points to an existing workgroup
|
static boolean |
checkUserHasWorkgroup(int nIdUser)
Is the user member of the workgroup
|
static AdminWorkgroup |
create(AdminWorkgroup workgroup)
Creation of an instance of workgroup
|
static Collection<AdminWorkgroup> |
findAll()
Returns a collection of workgroups objects
|
static Collection<AdminWorkgroup> |
findByFilter(AdminWorkgroupFilter awFilter)
Find workgroups from a filter
|
static AdminWorkgroup |
findByPrimaryKey(String strWorkgroupKey)
Returns an instance of a workgroup whose identifier is specified in parameter
|
static Collection<AdminUser> |
getUserListForWorkgroup(String strWorkgroupKey)
Returns the list of all users for a workgroup
|
static ReferenceList |
getUserWorkgroups(AdminUser user)
Returns the list of all workgroups the user is member
|
static boolean |
isUserInWorkgroup(AdminUser user,
String strWorkgroup)
Is the user member of the workgroup
|
static void |
remove(String strWorkgroupKey)
Remove the AdminWorkgroup whose identifier is specified in parameter
|
static void |
removeAllUsersForWorkgroup(String strWorkgroupKey)
Remove all users of a workgroup
|
static void |
removeUserFromWorkgroup(AdminUser user,
String strWorkgroupKey)
Remove an user from a workgroup
|
static AdminWorkgroup |
update(AdminWorkgroup workgroup)
Update of the workgroup which is specified in parameter
|
public static AdminWorkgroup create(AdminWorkgroup workgroup)
workgroup
- The instance of the workgroup which contains the informations to storepublic static AdminWorkgroup update(AdminWorkgroup workgroup)
workgroup
- The instance of the workgroup which contains the new data to storepublic static void remove(String strWorkgroupKey)
strWorkgroupKey
- The AdminWorkgroup object to removepublic static AdminWorkgroup findByPrimaryKey(String strWorkgroupKey)
strWorkgroupKey
- The key of the workgrouppublic static Collection<AdminWorkgroup> findAll()
public static boolean checkExistWorkgroup(String strWorkgroupKey)
strWorkgroupKey
- The workgroup keypublic static boolean isUserInWorkgroup(AdminUser user, String strWorkgroup)
user
- The userstrWorkgroup
- The workgroup keypublic static boolean checkUserHasWorkgroup(int nIdUser)
nIdUser
- The user identifierpublic static ReferenceList getUserWorkgroups(AdminUser user)
user
- The userpublic static Collection<AdminUser> getUserListForWorkgroup(String strWorkgroupKey)
strWorkgroupKey
- The workgroup keypublic static void addUserForWorkgroup(AdminUser user, String strWorkgroupKey)
user
- The userstrWorkgroupKey
- The workgroup keypublic static void removeAllUsersForWorkgroup(String strWorkgroupKey)
strWorkgroupKey
- The workgroup keypublic static void removeUserFromWorkgroup(AdminUser user, String strWorkgroupKey)
user
- The userstrWorkgroupKey
- The workgroup keypublic static Collection<AdminWorkgroup> findByFilter(AdminWorkgroupFilter awFilter)
awFilter
- the filterCopyright © 2020 City of Paris. All rights reserved.