public class MailItemEntry extends MediaEntry<MailItemEntry>
BaseEntry.AtomHandler, BaseEntry.EntryStateExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandler| Modifier and Type | Field and Description |
|---|---|
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.
|
xmlBloblocalName, namespace| Constructor and Description |
|---|
MailItemEntry()
Constructs a new MailItemEntry instance
|
MailItemEntry(BaseEntry<MailItemEntry> sourceEntry)
Constructs a new MailItemEntry instance by doing a shallow copy of data
from an existing BaseEntry instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(Label label)
Adds a label to this MailItem
|
void |
addMailProperty(MailItemProperty mailProperty)
Sets mail settings (read status, starred status, etc.) for this message.
|
void |
addRecipient(Email recipient)
Adds a recipient email to the Mail Item.
|
void |
declareExtensions(ExtensionProfile extProfile)
Initializes an ExtensionProfile based upon the extensions expected
by a MailItemEntry.
|
java.util.List<Label> |
getLabels() |
java.util.List<MailItemProperty> |
getMailProperties() |
java.util.List<Email> |
getRecipients()
This is relevant only for multi recipient feed.
|
Rfc822Msg |
getRfc822Msg() |
void |
setRfc822Msg(Rfc822Msg rfc822Msg)
Sets the rfc822Msg for this MailItem
|
getContentHandlerInfo, getMediaEditLink, getMediaSource, setMediaSource, setService, updateMediaaddAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContributors, getEdited, getEditLink, getEtag, getHandler, getHtmlLink, getId, getKind, getLink, getLinks, getLinks, getPlainTextContent, getPubControl, getPublished, getResumableEditMediaLink, getRights, getSelectedFields, getSelf, getSelfLink, getService, getSource, getSummary, getTextContent, getTitle, getUpdated, getVersionId, isDraft, parseAtom, parseAtom, parseAtom, readEntry, readEntry, removeLinks, removeLinks, setCanEdit, setContent, setContent, setDraft, setEdited, setEtag, setId, setKind, setPubControl, setPublished, setRights, setSelectedFields, setSource, setSummary, setTitle, setUpdated, setVersionId, update, visitChildrenaddExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChildconsumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCanEdit, getContent, getEdited, getEditLink, getPublished, getResumableEditMediaLink, getSelectedFields, getSummary, setCanEdit, setEdited, setPublished, setSelectedFieldsaddLink, getAuthors, getCategories, getEtag, getId, getKind, getLink, getLinks, getSelfLink, getTitle, getUpdated, getVersionId, removeLinks, removeLinks, setEtag, setId, setKind, setUpdated, setVersionIdpublic static final java.lang.String MAILITEM_KIND
public static final Category MAILITEM_CATEGORY
public MailItemEntry()
public MailItemEntry(BaseEntry<MailItemEntry> sourceEntry)
sourceEntry - the BaseEntry object to copy frompublic void declareExtensions(ExtensionProfile extProfile)
declareExtensions in interface Kind.AdaptordeclareExtensions in class ExtensionPointextProfile - the ExtensionProfile to initialize.ExtensionProfile.addDeclarations(Kind.Adaptor)public Rfc822Msg getRfc822Msg()
public void setRfc822Msg(Rfc822Msg rfc822Msg)
public java.util.List<MailItemProperty> getMailProperties()
public void addMailProperty(MailItemProperty mailProperty)
public java.util.List<Label> getLabels()
public void addLabel(Label label)
label - the label to add to the message when it is imported into GMailpublic java.util.List<Email> getRecipients()
public void addRecipient(Email recipient)
recipient - the recipient email to be attached with the message