|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.workgroup.AdminWorkgroupService
public final class AdminWorkgroupService
AdminWorkgroupService
| Field Summary | |
|---|---|
static java.lang.String |
ALL_GROUPS
|
| Method Summary | ||
|---|---|---|
static
|
getAuthorizedCollection(java.util.Collection<E> collection,
AdminUser user)
Filter a collection of resources for a given user |
|
static ReferenceList |
getUserWorkgroups(AdminUser user,
java.util.Locale locale)
Gets all workgroups of the user |
|
static boolean |
isAuthorized(AdminWorkgroupResource resource,
AdminUser user)
Check if a resource should be visible to the user according its workgroup |
|
static java.lang.String |
normalizeWorkgroupKey(java.lang.String strAdminWorkgroup)
Normalized an empty or null workgroup key |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ALL_GROUPS
| Method Detail |
|---|
public static boolean isAuthorized(AdminWorkgroupResource resource,
AdminUser user)
resource - The resource to checkuser - The current user
public static <E extends AdminWorkgroupResource> java.util.Collection<E> getAuthorizedCollection(java.util.Collection<E> collection,
AdminUser user)
collection - The collection to filteruser - The user
public static ReferenceList getUserWorkgroups(AdminUser user,
java.util.Locale locale)
user - The current userlocale - The Locale
public static java.lang.String normalizeWorkgroupKey(java.lang.String strAdminWorkgroup)
strAdminWorkgroup - The workgroup key to normalize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||