public enum Role extends Enum<Role>
| Modifier and Type | Method and Description |
|---|---|
static Role |
fromGrouperPrivileges(edu.internet2.middleware.grouperClient.ws.beans.WsGrouperPrivilegeResult[] wsPrivilegeResults)
Get the Teams role, by the set of privileges as returned by Grouper WS
Grouper UI explains:
|
static Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Role Admin
public static final Role Member
public static final Role Manager
public static final Role None
public static Role[] values()
for (Role c : Role.values()) System.out.println(c);
public static Role valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static Role fromGrouperPrivileges(edu.internet2.middleware.grouperClient.ws.beans.WsGrouperPrivilegeResult[] wsPrivilegeResults)
MEMBER: Entity is a member of this group OPTOUT: Entity may choose to leave this group OPTIN: Entity may choose to join this group VIEW: Entity may see that this group exists READ: Entity may see the membership list for this group UPDATE: Entity may modify the membership of this group ADMIN: Entity may modify group attributes, delete this group, or assign any privilege to any entity
wsPrivilegeResults - the Grouper WS results from getGrouperPrivilegesCopyright © 2009–2014 SURFnet bv, The Netherlands. All rights reserved.