com.evernote.edam.type
Enum SharedNotebookPrivilegeLevel

java.lang.Object
  extended by java.lang.Enum<SharedNotebookPrivilegeLevel>
      extended by com.evernote.edam.type.SharedNotebookPrivilegeLevel
All Implemented Interfaces:
com.evernote.thrift.TEnum, java.io.Serializable, java.lang.Comparable<SharedNotebookPrivilegeLevel>

public enum SharedNotebookPrivilegeLevel
extends java.lang.Enum<SharedNotebookPrivilegeLevel>
implements com.evernote.thrift.TEnum

Privilege levels for accessing shared notebooks. READ_NOTEBOOK: Recipient is able to read the contents of the shared notebook but does to have access to information about other recipients of the notebook or the activity stream information. MODIFY_NOTEBOOK_PLUS_ACTIVITY: Recipient has rights to read and modify the contents of the shared notebook, including the right to move notes to the trash and to create notes in the notebook. The recipient can also access information about other recipients and the activity stream. READ_NOTEBOOK_PLUS_ACTIVITY: Recipient has READ_NOTEBOOK rights and can also access information about other recipients and the activity stream. GROUP: If the user belongs to a group, such as a Business, that has a defined privilege level, use the privilege level of the group as the privilege for the individual. FULL_ACCESS: Recipient has full rights to the shared notebook and recipient lists, including privilege to revoke and create invitations and to change privilege levels on invitations for individuals. This privilege level is primarily intended for use by individual shares. BUSINESS_FULL_ACCESS: Intended for use with Business Notebooks, a BUSINESS_FULL_ACCESS level is FULL_ACCESS with the additional rights to change how the notebook will appear in the business library, including the rights to publish and unpublish the notebook from the library.


Enum Constant Summary
BUSINESS_FULL_ACCESS
           
FULL_ACCESS
           
GROUP
           
MODIFY_NOTEBOOK_PLUS_ACTIVITY
           
READ_NOTEBOOK
           
READ_NOTEBOOK_PLUS_ACTIVITY
           
 
Method Summary
static SharedNotebookPrivilegeLevel 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 SharedNotebookPrivilegeLevel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SharedNotebookPrivilegeLevel[] 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

READ_NOTEBOOK

public static final SharedNotebookPrivilegeLevel READ_NOTEBOOK

MODIFY_NOTEBOOK_PLUS_ACTIVITY

public static final SharedNotebookPrivilegeLevel MODIFY_NOTEBOOK_PLUS_ACTIVITY

READ_NOTEBOOK_PLUS_ACTIVITY

public static final SharedNotebookPrivilegeLevel READ_NOTEBOOK_PLUS_ACTIVITY

GROUP

public static final SharedNotebookPrivilegeLevel GROUP

FULL_ACCESS

public static final SharedNotebookPrivilegeLevel FULL_ACCESS

BUSINESS_FULL_ACCESS

public static final SharedNotebookPrivilegeLevel BUSINESS_FULL_ACCESS
Method Detail

values

public static SharedNotebookPrivilegeLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SharedNotebookPrivilegeLevel c : SharedNotebookPrivilegeLevel.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SharedNotebookPrivilegeLevel valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValue

public int getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.

Specified by:
getValue in interface com.evernote.thrift.TEnum

findByValue

public static SharedNotebookPrivilegeLevel findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.

Returns:
null if the value is not found.