|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.business.workgroup.AdminWorkgroupHome
public final class AdminWorkgroupHome
This class provides instances management methods (create, find, ...) for AdminWorkgroup objects
Method Summary | |
---|---|
static void |
addUserForWorkgroup(AdminUser user,
java.lang.String strWorkgroupKey)
Add user to the workgroup |
static boolean |
checkExistWorkgroup(java.lang.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 java.util.Collection<AdminWorkgroup> |
findAll()
Returns a collection of workgroups objects |
static java.util.Collection<AdminWorkgroup> |
findByFilter(AdminWorkgroupFilter awFilter)
Find workgroups from a filter |
static AdminWorkgroup |
findByPrimaryKey(java.lang.String strWorkgroupKey)
Returns an instance of a workgroup whose identifier is specified in parameter |
static java.util.Collection<AdminUser> |
getUserListForWorkgroup(java.lang.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,
java.lang.String strWorkgroup)
Is the user member of the workgroup |
static void |
remove(java.lang.String strWorkgroupKey)
Remove the AdminWorkgroup whose identifier is specified in parameter |
static void |
removeAllUsersForWorkgroup(java.lang.String strWorkgroupKey)
Remove all users of a workgroup |
static void |
removeUserFromWorkgroup(AdminUser user,
java.lang.String strWorkgroupKey)
Remove an user from a workgroup |
static AdminWorkgroup |
update(AdminWorkgroup workgroup)
Update of the workgroup which is specified in parameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AdminWorkgroup create(AdminWorkgroup workgroup)
workgroup
- The instance of the workgroup which contains the informations to store
public static AdminWorkgroup update(AdminWorkgroup workgroup)
workgroup
- The instance of the workgroup which contains the new data to store
public static void remove(java.lang.String strWorkgroupKey)
strWorkgroupKey
- The AdminWorkgroup object to removepublic static AdminWorkgroup findByPrimaryKey(java.lang.String strWorkgroupKey)
strWorkgroupKey
- The key of the workgroup
public static java.util.Collection<AdminWorkgroup> findAll()
public static boolean checkExistWorkgroup(java.lang.String strWorkgroupKey)
strWorkgroupKey
- The workgroup key
public static boolean isUserInWorkgroup(AdminUser user, java.lang.String strWorkgroup)
user
- The userstrWorkgroup
- The workgroup key
public static boolean checkUserHasWorkgroup(int nIdUser)
nIdUser
- The user identifier
public static ReferenceList getUserWorkgroups(AdminUser user)
user
- The user
public static java.util.Collection<AdminUser> getUserListForWorkgroup(java.lang.String strWorkgroupKey)
strWorkgroupKey
- The workgroup key
public static void addUserForWorkgroup(AdminUser user, java.lang.String strWorkgroupKey)
user
- The userstrWorkgroupKey
- The workgroup keypublic static void removeAllUsersForWorkgroup(java.lang.String strWorkgroupKey)
strWorkgroupKey
- The workgroup keypublic static void removeUserFromWorkgroup(AdminUser user, java.lang.String strWorkgroupKey)
user
- The userstrWorkgroupKey
- The workgroup keypublic static java.util.Collection<AdminWorkgroup> findByFilter(AdminWorkgroupFilter awFilter)
awFilter
- the filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |