com.evernote.edam.type
Class Publishing

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

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

If a Notebook has been opened to the public, the Notebook will have a reference to one of these structures, which gives the location and optional description of the externally-visible public Notebook.

uri
If this field is present, then the notebook is published for mass consumption on the Internet under the provided URI, which is relative to a defined base publishing URI defined by the service. This field can only be modified via the web service GUI ... publishing cannot be modified via an offline client.
Length: EDAM_PUBLISHING_URI_LEN_MIN - EDAM_PUBLISHING_URI_LEN_MAX
Regex: EDAM_PUBLISHING_URI_REGEX
order
When the notes are publicly displayed, they will be sorted based on the requested criteria.
ascending
If this is set to true, then the public notes will be displayed in ascending order (e.g. from oldest to newest). Otherwise, the notes will be displayed in descending order (e.g. newest to oldest).
publicDescription
This field may be used to provide a short description of the notebook, which may be displayed when (e.g.) the notebook is shown in a public view. Can't begin or end with a space.
Length: EDAM_PUBLISHING_DESCRIPTION_LEN_MIN - EDAM_PUBLISHING_DESCRIPTION_LEN_MAX
Regex: EDAM_PUBLISHING_DESCRIPTION_REGEX

See Also:
Serialized Form

Nested Class Summary
static class Publishing._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<Publishing._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
Publishing()
           
Publishing(Publishing other)
          Performs a deep copy on other.
 
Method Summary
 Publishing clone()
          Deprecated. 
 int compareTo(Publishing other)
           
 Publishing deepCopy()
           
 boolean equals(java.lang.Object that)
           
 boolean equals(Publishing that)
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(Publishing._Fields field)
           
 NoteSortOrder getOrder()
           
 java.lang.String getPublicDescription()
           
 java.lang.String getUri()
           
 int hashCode()
           
 boolean isAscending()
           
 boolean isSet(int fieldID)
           
 boolean isSet(Publishing._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetAscending()
          Returns true if field ascending is set (has been asigned a value) and false otherwise
 boolean isSetOrder()
          Returns true if field order is set (has been asigned a value) and false otherwise
 boolean isSetPublicDescription()
          Returns true if field publicDescription is set (has been asigned a value) and false otherwise
 boolean isSetUri()
          Returns true if field uri is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setAscending(boolean ascending)
           
 void setAscendingIsSet(boolean value)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(Publishing._Fields field, java.lang.Object value)
           
 void setOrder(NoteSortOrder order)
           
 void setOrderIsSet(boolean value)
           
 void setPublicDescription(java.lang.String publicDescription)
           
 void setPublicDescriptionIsSet(boolean value)
           
 void setUri(java.lang.String uri)
           
 void setUriIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetAscending()
           
 void unsetOrder()
           
 void unsetPublicDescription()
           
 void unsetUri()
           
 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<Publishing._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

Publishing

public Publishing()

Publishing

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

Method Detail

deepCopy

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

clone

@Deprecated
public Publishing clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getUri

public java.lang.String getUri()

setUri

public void setUri(java.lang.String uri)

unsetUri

public void unsetUri()

isSetUri

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


setUriIsSet

public void setUriIsSet(boolean value)

getOrder

public NoteSortOrder getOrder()
See Also:
NoteSortOrder

setOrder

public void setOrder(NoteSortOrder order)
See Also:
NoteSortOrder

unsetOrder

public void unsetOrder()

isSetOrder

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


setOrderIsSet

public void setOrderIsSet(boolean value)

isAscending

public boolean isAscending()

setAscending

public void setAscending(boolean ascending)

unsetAscending

public void unsetAscending()

isSetAscending

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


setAscendingIsSet

public void setAscendingIsSet(boolean value)

getPublicDescription

public java.lang.String getPublicDescription()

setPublicDescription

public void setPublicDescription(java.lang.String publicDescription)

unsetPublicDescription

public void unsetPublicDescription()

isSetPublicDescription

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


setPublicDescriptionIsSet

public void setPublicDescriptionIsSet(boolean value)

setFieldValue

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

setFieldValue

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

getFieldValue

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

getFieldValue

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

isSet

public boolean isSet(Publishing._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<Publishing._Fields>

isSet

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

equals

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

equals

public boolean equals(Publishing that)

hashCode

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

compareTo

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

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<Publishing._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<Publishing._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