@Unstable public enum UserType extends Enum<UserType>
Enum Constant and Description |
---|
ADVANCED
Advanced user (sees all possible actions in the UI).
|
SIMPLE
Simple user (hides complex actions in the UI for simplicity).
|
Modifier and Type | Method and Description |
---|---|
static UserType |
fromString(String typeAsString) |
static UserType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserType SIMPLE
public static final UserType ADVANCED
public static UserType[] values()
for (UserType c : UserType.values()) System.out.println(c);
public static UserType 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 UserType fromString(String typeAsString)
typeAsString
- the user type represented as a string ("Simple", "Advanced"). The case is ignored.UserType
object matching the passed string representation. All values different than
advanced
are considered to represent a simple userCopyright © 2004–2021 XWiki. All rights reserved.