|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SilverpeasRole>
com.stratelia.webactiv.SilverpeasRole
public enum SilverpeasRole
Enum Constant Summary | |
---|---|
admin
|
|
Manager
|
|
privilegedUser
|
|
publisher
|
|
reader
|
|
supervisor
|
|
user
|
|
writer
|
Field Summary | |
---|---|
static EnumSet<SilverpeasRole> |
READER_ROLES
|
Method Summary | |
---|---|
static String |
asString(Set<SilverpeasRole> roles)
Gets on or several roles as a string. |
static boolean |
exists(String name)
|
static SilverpeasRole |
from(String name)
|
static Set<SilverpeasRole> |
from(String[] roles)
|
static SilverpeasRole |
getGreaterFrom(Collection<SilverpeasRole> roles)
Deprecated. use instead getGreatestFrom(Collection) |
static SilverpeasRole |
getGreaterFrom(SilverpeasRole... roles)
Deprecated. use instead getGreatestFrom(SilverpeasRole...) |
static SilverpeasRole |
getGreatestFrom(Collection<SilverpeasRole> roles)
Gets the greater role from the given ones. |
static SilverpeasRole |
getGreatestFrom(SilverpeasRole... roles)
Gets the greatest role from the given ones. |
static SilverpeasRole |
getGreatestOfCurrentUserOn(String componentInstanceId)
Gets the greatest role on the component represented by the given identifier the current user has. |
String |
getName()
|
boolean |
isGreaterThan(SilverpeasRole role)
Indicates if a role is greater than an other one. |
boolean |
isGreaterThanOrEquals(SilverpeasRole role)
Indicates if a role is greater than or equals an other one. |
boolean |
isInRole(String... roles)
|
static Set<SilverpeasRole> |
listFrom(String roles)
Lists the roles from a string. |
static SilverpeasRole |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SilverpeasRole[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SilverpeasRole admin
public static final SilverpeasRole Manager
public static final SilverpeasRole publisher
public static final SilverpeasRole writer
public static final SilverpeasRole privilegedUser
public static final SilverpeasRole user
public static final SilverpeasRole reader
public static final SilverpeasRole supervisor
Field Detail |
---|
public static EnumSet<SilverpeasRole> READER_ROLES
Method Detail |
---|
public static SilverpeasRole[] values()
for (SilverpeasRole c : SilverpeasRole.values()) System.out.println(c);
public static SilverpeasRole valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getName()
public boolean isGreaterThan(SilverpeasRole role)
role
-
public boolean isGreaterThanOrEquals(SilverpeasRole role)
role
-
public static SilverpeasRole from(String name)
public static boolean exists(String name)
public static Set<SilverpeasRole> listFrom(String roles)
roles
-
public static Set<SilverpeasRole> from(String[] roles)
public boolean isInRole(String... roles)
public static String asString(Set<SilverpeasRole> roles)
roles
-
public static SilverpeasRole getGreaterFrom(SilverpeasRole... roles)
getGreatestFrom(SilverpeasRole...)
public static SilverpeasRole getGreatestFrom(SilverpeasRole... roles)
roles
-
public static SilverpeasRole getGreaterFrom(Collection<SilverpeasRole> roles)
getGreatestFrom(Collection)
public static SilverpeasRole getGreatestFrom(Collection<SilverpeasRole> roles)
roles
-
public static SilverpeasRole getGreatestOfCurrentUserOn(String componentInstanceId)
componentInstanceId
- a component instance identifier.
SilverpeasRole
instance or null if none.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |