public interface IAdminWorkgroupDAO
Modifier and Type | Method and Description |
---|---|
boolean |
checkExistWorkgroup(String strWorkgroupKey)
Check that the given key points to an existing workgroup
|
boolean |
checkUserHasWorkgroup(int nIdUser)
Is the user member of the workgroup
|
void |
delete(String strWorkgroupKey)
Delete a record from the table
|
void |
deleteAllUsersForWorkgroup(String strWorkgroupKey)
Remove all users of a workgroup
|
void |
deleteUserFromWorkgroup(int userId,
String strWorkgroupKey)
Remove an user from a workgroup
|
Collection<AdminUser> |
getUsersListForWorkgroup(String strWorkgroupKey)
Returns the list of all users for a workgroup
|
ReferenceList |
getUserWorkgroups(int nIdUser)
Returns the list of all workgroups the user is member
|
void |
insert(AdminWorkgroup workgroup)
Insert a new record in the table.
|
void |
insertUserForWorkgroup(AdminUser user,
String strWorkgroupKey)
Insert a user into a workgroup
|
boolean |
isUserInWorkgroup(int nIdUser,
String strWorkgroup)
Is the user member of the workgroup
|
AdminWorkgroup |
load(String strWorkgroupKey)
Load the data of AdminWorkgroup from the table
|
Collection<AdminWorkgroup> |
selectWorkgroupList()
Load the list of workgroups
|
Collection<AdminWorkgroup> |
selectWorkgroupsByFilter(AdminWorkgroupFilter awFilter)
Find workgroups from a filter
|
void |
store(AdminWorkgroup workgroup)
Update the record identified by the given workgroup key with the given workgroup in the table
|
boolean checkExistWorkgroup(String strWorkgroupKey)
strWorkgroupKey
- The workgroup keyvoid delete(String strWorkgroupKey)
strWorkgroupKey
- The workgroup keyvoid insert(AdminWorkgroup workgroup)
workgroup
- The workgroup objectAdminWorkgroup load(String strWorkgroupKey)
strWorkgroupKey
- The workgroup keyCollection<AdminWorkgroup> selectWorkgroupList()
void store(AdminWorkgroup workgroup)
workgroup
- The reference of workgroup to be the new oneboolean isUserInWorkgroup(int nIdUser, String strWorkgroup)
nIdUser
- The user IdstrWorkgroup
- The workgroup keyboolean checkUserHasWorkgroup(int nIdUser)
nIdUser
- The user IdReferenceList getUserWorkgroups(int nIdUser)
nIdUser
- The user IdCollection<AdminUser> getUsersListForWorkgroup(String strWorkgroupKey)
strWorkgroupKey
- The workgroup keyvoid deleteAllUsersForWorkgroup(String strWorkgroupKey)
strWorkgroupKey
- The workgroup keyvoid insertUserForWorkgroup(AdminUser user, String strWorkgroupKey)
user
- The user to insertstrWorkgroupKey
- the key workgroupvoid deleteUserFromWorkgroup(int userId, String strWorkgroupKey)
userId
- The user IDstrWorkgroupKey
- The workgroup keyCollection<AdminWorkgroup> selectWorkgroupsByFilter(AdminWorkgroupFilter awFilter)
awFilter
- the filterCopyright © 2020 City of Paris. All rights reserved.