com.evernote.edam.type
Class SharedNotebook

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

public class SharedNotebook
extends java.lang.Object
implements org.apache.thrift.TBase<SharedNotebook._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<SharedNotebook>

Shared notebooks represent a relationship between a notebook and a single share invitation recipient.

id
the primary identifier of the share
userId
The user id of the owner of the notebook
notebookGuid
the GUID of the notebooks that's being shared.
email
the email address of the recipient - used by the notebook owner to identify who they shared with.
notebookModifiable
a flag indicating the a share is read/write -otherwise it's read only
requireLogin
indicates that a user must login to access the share
serviceCreated
the date the owner first created the share with the specific email address
username
the username of the user who can access this share. Once it's assigned it cannot be changed.

See Also:
Serialized Form

Nested Class Summary
static class SharedNotebook._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<SharedNotebook._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
SharedNotebook()
           
SharedNotebook(SharedNotebook other)
          Performs a deep copy on other.
 
Method Summary
 SharedNotebook clone()
          Deprecated. 
 int compareTo(SharedNotebook other)
           
 SharedNotebook deepCopy()
           
 boolean equals(java.lang.Object that)
           
 boolean equals(SharedNotebook that)
           
 java.lang.String getEmail()
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(SharedNotebook._Fields field)
           
 long getId()
           
 java.lang.String getNotebookGuid()
           
 long getServiceCreated()
           
 java.lang.String getShareKey()
           
 int getUserId()
           
 java.lang.String getUsername()
           
 int hashCode()
           
 boolean isNotebookModifiable()
           
 boolean isRequireLogin()
           
 boolean isSet(int fieldID)
           
 boolean isSet(SharedNotebook._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetEmail()
          Returns true if field email is set (has been asigned a value) and false otherwise
 boolean isSetId()
          Returns true if field id is set (has been asigned a value) and false otherwise
 boolean isSetNotebookGuid()
          Returns true if field notebookGuid is set (has been asigned a value) and false otherwise
 boolean isSetNotebookModifiable()
          Returns true if field notebookModifiable is set (has been asigned a value) and false otherwise
 boolean isSetRequireLogin()
          Returns true if field requireLogin is set (has been asigned a value) and false otherwise
 boolean isSetServiceCreated()
          Returns true if field serviceCreated is set (has been asigned a value) and false otherwise
 boolean isSetShareKey()
          Returns true if field shareKey is set (has been asigned a value) and false otherwise
 boolean isSetUserId()
          Returns true if field userId is set (has been asigned a value) and false otherwise
 boolean isSetUsername()
          Returns true if field username is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setEmail(java.lang.String email)
           
 void setEmailIsSet(boolean value)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(SharedNotebook._Fields field, java.lang.Object value)
           
 void setId(long id)
           
 void setIdIsSet(boolean value)
           
 void setNotebookGuid(java.lang.String notebookGuid)
           
 void setNotebookGuidIsSet(boolean value)
           
 void setNotebookModifiable(boolean notebookModifiable)
           
 void setNotebookModifiableIsSet(boolean value)
           
 void setRequireLogin(boolean requireLogin)
           
 void setRequireLoginIsSet(boolean value)
           
 void setServiceCreated(long serviceCreated)
           
 void setServiceCreatedIsSet(boolean value)
           
 void setShareKey(java.lang.String shareKey)
           
 void setShareKeyIsSet(boolean value)
           
 void setUserId(int userId)
           
 void setUserIdIsSet(boolean value)
           
 void setUsername(java.lang.String username)
           
 void setUsernameIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetEmail()
           
 void unsetId()
           
 void unsetNotebookGuid()
           
 void unsetNotebookModifiable()
           
 void unsetRequireLogin()
           
 void unsetServiceCreated()
           
 void unsetShareKey()
           
 void unsetUserId()
           
 void unsetUsername()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final java.util.Map<SharedNotebook._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

SharedNotebook

public SharedNotebook()

SharedNotebook

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

Method Detail

deepCopy

public SharedNotebook deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<SharedNotebook._Fields>

clone

@Deprecated
public SharedNotebook clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getId

public long getId()

setId

public void setId(long id)

unsetId

public void unsetId()

isSetId

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


setIdIsSet

public void setIdIsSet(boolean value)

getUserId

public int getUserId()

setUserId

public void setUserId(int userId)

unsetUserId

public void unsetUserId()

isSetUserId

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


setUserIdIsSet

public void setUserIdIsSet(boolean value)

getNotebookGuid

public java.lang.String getNotebookGuid()

setNotebookGuid

public void setNotebookGuid(java.lang.String notebookGuid)

unsetNotebookGuid

public void unsetNotebookGuid()

isSetNotebookGuid

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


setNotebookGuidIsSet

public void setNotebookGuidIsSet(boolean value)

getEmail

public java.lang.String getEmail()

setEmail

public void setEmail(java.lang.String email)

unsetEmail

public void unsetEmail()

isSetEmail

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


setEmailIsSet

public void setEmailIsSet(boolean value)

isNotebookModifiable

public boolean isNotebookModifiable()

setNotebookModifiable

public void setNotebookModifiable(boolean notebookModifiable)

unsetNotebookModifiable

public void unsetNotebookModifiable()

isSetNotebookModifiable

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


setNotebookModifiableIsSet

public void setNotebookModifiableIsSet(boolean value)

isRequireLogin

public boolean isRequireLogin()

setRequireLogin

public void setRequireLogin(boolean requireLogin)

unsetRequireLogin

public void unsetRequireLogin()

isSetRequireLogin

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


setRequireLoginIsSet

public void setRequireLoginIsSet(boolean value)

getServiceCreated

public long getServiceCreated()

setServiceCreated

public void setServiceCreated(long serviceCreated)

unsetServiceCreated

public void unsetServiceCreated()

isSetServiceCreated

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


setServiceCreatedIsSet

public void setServiceCreatedIsSet(boolean value)

getShareKey

public java.lang.String getShareKey()

setShareKey

public void setShareKey(java.lang.String shareKey)

unsetShareKey

public void unsetShareKey()

isSetShareKey

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


setShareKeyIsSet

public void setShareKeyIsSet(boolean value)

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

unsetUsername

public void unsetUsername()

isSetUsername

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


setUsernameIsSet

public void setUsernameIsSet(boolean value)

setFieldValue

public void setFieldValue(SharedNotebook._Fields field,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<SharedNotebook._Fields>

setFieldValue

public void setFieldValue(int fieldID,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<SharedNotebook._Fields>

getFieldValue

public java.lang.Object getFieldValue(SharedNotebook._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<SharedNotebook._Fields>

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<SharedNotebook._Fields>

isSet

public boolean isSet(SharedNotebook._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<SharedNotebook._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<SharedNotebook._Fields>

equals

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

equals

public boolean equals(SharedNotebook that)

hashCode

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

compareTo

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

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<SharedNotebook._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<SharedNotebook._Fields>
Throws:
org.apache.thrift.TException

toString

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

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException