com.google.gdata.data.appsforyourdomain.migration
Class MailItemEntry
java.lang.Object
com.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.BaseEntry<MailItemEntry>
com.google.gdata.data.appsforyourdomain.migration.MailItemEntry
- All Implemented Interfaces:
- Extension, IEntry, Kind.Adaptable, Kind.Adaptor
public class MailItemEntry
- extends BaseEntry<MailItemEntry>
Used by a MailItemFeedProvider to represent a single MailItemEntry in a list
of MailItems. MailItems are representations of email messages from a domain's
legacy systems destined for Google.
Field Summary |
static Category |
MAILITEM_CATEGORY
Kind category used to label feeds or entries that have MailItem
extension data. |
static java.lang.String |
MAILITEM_KIND
Kind term value for MailItem category labels. |
Methods inherited from class com.google.gdata.data.BaseEntry |
addAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContentHandlerInfo, getContributors, getEdited, getEditLink, getEtag, getHandler, getHtmlLink, getId, getLink, getLinks, getLinks, getMediaEditLink, getPlainTextContent, getPubControl, getPublished, getRights, getSelf, getSelfLink, getService, getSource, getSummary, getTextContent, getTitle, getUpdated, getVersionId, isDraft, parseAtom, parseAtom, parseAtom, readEntry, readEntry, removeLinks, setCanEdit, setContent, setContent, setDraft, setEdited, setEtag, setId, setPubControl, setPublished, setRights, setService, setSource, setSummary, setTitle, setUpdated, setVersionId, update, visitChildren |
Methods inherited from class com.google.gdata.data.ExtensionPoint |
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild |
Methods inherited from class com.google.gdata.data.AbstractExtension |
consumeAttributes, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAILITEM_KIND
public static final java.lang.String MAILITEM_KIND
- Kind term value for MailItem category labels.
- See Also:
- Constant Field Values
MAILITEM_CATEGORY
public static final Category MAILITEM_CATEGORY
- Kind category used to label feeds or entries that have MailItem
extension data.
MailItemEntry
public MailItemEntry()
- Constructs a new MailItemEntry instance
MailItemEntry
public MailItemEntry(BaseEntry<MailItemEntry> sourceEntry)
- Constructs a new MailItemEntry instance by doing a shallow copy of data
from an existing BaseEntry instance.
- Parameters:
sourceEntry
- the BaseEntry object to copy from
declareExtensions
public void declareExtensions(ExtensionProfile extProfile)
- Initializes an ExtensionProfile based upon the extensions expected
by a MailItemEntry.
- Specified by:
declareExtensions
in interface Kind.Adaptor
- Overrides:
declareExtensions
in class ExtensionPoint
- Parameters:
extProfile
- the ExtensionProfile to initialize.- See Also:
ExtensionProfile.addDeclarations(Kind.Adaptor)
getRfc822Msg
public Rfc822Msg getRfc822Msg()
- Returns:
- the rfc822 compliant encoding of the mail message
setRfc822Msg
public void setRfc822Msg(Rfc822Msg rfc822Msg)
- Sets the rfc822Msg for this MailItem
getMailProperties
public java.util.List<MailItemProperty> getMailProperties()
- Returns:
- the mail settings (read status, starred status, etc.) of the mail
message
addMailProperty
public void addMailProperty(MailItemProperty mailProperty)
- Sets mail settings (read status, starred status, etc.) for this message.
getLabels
public java.util.List<Label> getLabels()
- Returns:
- a list of Labels to be applied to this message upon insertion in
GMail
addLabel
public void addLabel(Label label)
- Adds a label to this MailItem
- Parameters:
label
- the label to add to the message when it is imported into GMail