public final class AdminWorkgroupService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALL_GROUPS |
Modifier and Type | Method and Description |
---|---|
static <E extends fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource> |
getAuthorizedCollection(Collection<E> collection,
AdminUser user)
Filter a collection of resources for a given user
|
static ReferenceList |
getUserWorkgroups(AdminUser user,
Locale locale)
Gets all workgroups of the user
|
static boolean |
isAuthorized(fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource resource,
AdminUser user)
Check if a resource should be visible to the user according its workgroup
|
static String |
normalizeWorkgroupKey(String strAdminWorkgroup)
Normalized an empty or null workgroup key
|
public static final String ALL_GROUPS
public static boolean isAuthorized(fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource resource, AdminUser user)
resource
- The resource to checkuser
- The current userpublic static <E extends fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource> Collection<E> getAuthorizedCollection(Collection<E> collection, AdminUser user)
E
- The workgroup resourcecollection
- The collection to filteruser
- The userpublic static ReferenceList getUserWorkgroups(AdminUser user, Locale locale)
user
- The current userlocale
- The LocaleCopyright © 2020 City of Paris. All rights reserved.