Interface IAdminWorkgroupDAO
- All Known Implementing Classes:
AdminWorkgroupDAO
public interface IAdminWorkgroupDAO
Interface for AdminWorkgroup DAO
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckExistWorkgroup(String strWorkgroupKey) Check that the given key points to an existing workgroupbooleancheckUserHasWorkgroup(int nIdUser) Is the user member of the workgroupvoidDelete a record from the tablevoiddeleteAllUsersForWorkgroup(String strWorkgroupKey) Remove all users of a workgroupvoiddeleteUserFromWorkgroup(int userId, String strWorkgroupKey) Remove an user from a workgroupgetUsersListForWorkgroup(String strWorkgroupKey) Returns the list of all users for a workgroupgetUserWorkgroups(int nIdUser) Returns the list of all workgroups the user is membervoidinsert(AdminWorkgroup workgroup) Insert a new record in the table.voidinsertUserForWorkgroup(AdminUser user, String strWorkgroupKey) Insert a user into a workgroupbooleanisUserInWorkgroup(int nIdUser, String strWorkgroup) Is the user member of the workgroupLoad the data of AdminWorkgroup from the tableLoad the list of workgroupsselectWorkgroupsByFilter(AdminWorkgroupFilter awFilter) Find workgroups from a filtervoidstore(AdminWorkgroup workgroup) Update the record identified by the given workgroup key with the given workgroup in the table
-
Method Details
-
checkExistWorkgroup
Check that the given key points to an existing workgroup- Parameters:
strWorkgroupKey- The workgroup key- Returns:
- true if the workgroup exists, false otherwise
-
delete
Delete a record from the table- Parameters:
strWorkgroupKey- The workgroup key
-
insert
Insert a new record in the table.- Parameters:
workgroup- The workgroup object
-
load
Load the data of AdminWorkgroup from the table- Parameters:
strWorkgroupKey- The workgroup key- Returns:
- the instance of the AdminWorkgroup
-
selectWorkgroupList
Collection<AdminWorkgroup> selectWorkgroupList()Load the list of workgroups- Returns:
- The Collection of the Workgroups
-
store
Update the record identified by the given workgroup key with the given workgroup in the table- Parameters:
workgroup- The reference of workgroup to be the new one
-
isUserInWorkgroup
Is the user member of the workgroup- Parameters:
nIdUser- The user IdstrWorkgroup- The workgroup key- Returns:
- True if the user is in the workgroup, otherwise false
-
checkUserHasWorkgroup
boolean checkUserHasWorkgroup(int nIdUser) Is the user member of the workgroup- Parameters:
nIdUser- The user Id- Returns:
- True if the user has workgroup
-
getUserWorkgroups
Returns the list of all workgroups the user is member- Parameters:
nIdUser- The user Id- Returns:
- The list of all user's workgroups
-
getUsersListForWorkgroup
Returns the list of all users for a workgroup- Parameters:
strWorkgroupKey- The workgroup key- Returns:
- The collection of all users of a workgroup
-
deleteAllUsersForWorkgroup
Remove all users of a workgroup- Parameters:
strWorkgroupKey- The workgroup key
-
insertUserForWorkgroup
Insert a user into a workgroup- Parameters:
user- The user to insertstrWorkgroupKey- the key workgroup
-
deleteUserFromWorkgroup
Remove an user from a workgroup- Parameters:
userId- The user IDstrWorkgroupKey- The workgroup key
-
selectWorkgroupsByFilter
Find workgroups from a filter- Parameters:
awFilter- the filter- Returns:
- the list of workgroups
-