|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<PrivilegeLevel>
com.evernote.edam.type.PrivilegeLevel
public enum PrivilegeLevel
This enumeration defines the possible permission levels for a user. Free accounts will have a level of NORMAL and paid Premium accounts will have a level of PREMIUM.
| Enum Constant Summary | |
|---|---|
ADMIN
|
|
MANAGER
|
|
NORMAL
|
|
PREMIUM
|
|
SUPPORT
|
|
VIP
|
|
| Method Summary | |
|---|---|
static PrivilegeLevel |
findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL. |
int |
getValue()
Get the integer value of this enum value, as defined in the Thrift IDL. |
static PrivilegeLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PrivilegeLevel[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, 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 PrivilegeLevel NORMAL
public static final PrivilegeLevel PREMIUM
public static final PrivilegeLevel VIP
public static final PrivilegeLevel MANAGER
public static final PrivilegeLevel SUPPORT
public static final PrivilegeLevel ADMIN
| Method Detail |
|---|
public static PrivilegeLevel[] values()
for (PrivilegeLevel c : PrivilegeLevel.values()) System.out.println(c);
public static PrivilegeLevel valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic int getValue()
getValue in interface com.evernote.thrift.TEnumpublic static PrivilegeLevel findByValue(int value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||