com.evernote.edam.type
Class BusinessNotebook

java.lang.Object
  extended by com.evernote.edam.type.BusinessNotebook
All Implemented Interfaces:
com.evernote.thrift.TBase<BusinessNotebook>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<BusinessNotebook>

public class BusinessNotebook
extends java.lang.Object
implements com.evernote.thrift.TBase<BusinessNotebook>, java.io.Serializable, java.lang.Cloneable

If a Notebook contained in an Evernote Business account has been published the to business library, the Notebook will have a reference to one of these structures, which specifies how the Notebook will be represented in the library.

notebookDescription
A short description of the notebook's content that will be displayed in the business library user interface. The description may not begin or end with whitespace.
Length: EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MIN - EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MAX
Regex: EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_REGEX
privilege
The privileges that will be granted to users who join the notebook through the business library.
recommended
Whether the notebook should be "recommended" when displayed in the business library user interface.

See Also:
Serialized Form

Constructor Summary
BusinessNotebook()
           
BusinessNotebook(BusinessNotebook other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(BusinessNotebook other)
           
 BusinessNotebook deepCopy()
          Creates a deep copy of the object.
 boolean equals(BusinessNotebook that)
           
 boolean equals(java.lang.Object that)
           
 java.lang.String getNotebookDescription()
           
 SharedNotebookPrivilegeLevel getPrivilege()
           
 int hashCode()
           
 boolean isRecommended()
           
 boolean isSetNotebookDescription()
          Returns true if field notebookDescription is set (has been asigned a value) and false otherwise
 boolean isSetPrivilege()
          Returns true if field privilege is set (has been asigned a value) and false otherwise
 boolean isSetRecommended()
          Returns true if field recommended is set (has been asigned a value) and false otherwise
 void read(com.evernote.thrift.protocol.TProtocol iprot)
          Reads an instance of the object from the given protocol.
 void setNotebookDescription(java.lang.String notebookDescription)
           
 void setNotebookDescriptionIsSet(boolean value)
           
 void setPrivilege(SharedNotebookPrivilegeLevel privilege)
           
 void setPrivilegeIsSet(boolean value)
           
 void setRecommended(boolean recommended)
           
 void setRecommendedIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetNotebookDescription()
           
 void unsetPrivilege()
           
 void unsetRecommended()
           
 void validate()
           
 void write(com.evernote.thrift.protocol.TProtocol oprot)
          Writes the object to the given protocol.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BusinessNotebook

public BusinessNotebook()

BusinessNotebook

public BusinessNotebook(BusinessNotebook other)
Performs a deep copy on other.

Method Detail

deepCopy

public BusinessNotebook deepCopy()
Description copied from interface: com.evernote.thrift.TBase
Creates a deep copy of the object.

Specified by:
deepCopy in interface com.evernote.thrift.TBase<BusinessNotebook>

clear

public void clear()
Description copied from interface: com.evernote.thrift.TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface com.evernote.thrift.TBase<BusinessNotebook>

getNotebookDescription

public java.lang.String getNotebookDescription()

setNotebookDescription

public void setNotebookDescription(java.lang.String notebookDescription)

unsetNotebookDescription

public void unsetNotebookDescription()

isSetNotebookDescription

public boolean isSetNotebookDescription()
Returns true if field notebookDescription is set (has been asigned a value) and false otherwise


setNotebookDescriptionIsSet

public void setNotebookDescriptionIsSet(boolean value)

getPrivilege

public SharedNotebookPrivilegeLevel getPrivilege()
See Also:
SharedNotebookPrivilegeLevel

setPrivilege

public void setPrivilege(SharedNotebookPrivilegeLevel privilege)
See Also:
SharedNotebookPrivilegeLevel

unsetPrivilege

public void unsetPrivilege()

isSetPrivilege

public boolean isSetPrivilege()
Returns true if field privilege is set (has been asigned a value) and false otherwise


setPrivilegeIsSet

public void setPrivilegeIsSet(boolean value)

isRecommended

public boolean isRecommended()

setRecommended

public void setRecommended(boolean recommended)

unsetRecommended

public void unsetRecommended()

isSetRecommended

public boolean isSetRecommended()
Returns true if field recommended is set (has been asigned a value) and false otherwise


setRecommendedIsSet

public void setRecommendedIsSet(boolean value)

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(BusinessNotebook that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(BusinessNotebook other)
Specified by:
compareTo in interface java.lang.Comparable<BusinessNotebook>

read

public void read(com.evernote.thrift.protocol.TProtocol iprot)
          throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Reads an instance of the object from the given protocol.

Specified by:
read in interface com.evernote.thrift.TBase<BusinessNotebook>
Parameters:
iprot - Input protocol
Throws:
com.evernote.thrift.TException

write

public void write(com.evernote.thrift.protocol.TProtocol oprot)
           throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Writes the object to the given protocol.

Specified by:
write in interface com.evernote.thrift.TBase<BusinessNotebook>
Parameters:
oprot - Output protocol
Throws:
com.evernote.thrift.TException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws com.evernote.thrift.TException
Throws:
com.evernote.thrift.TException