public final class EmailItem extends Schema<EmailItem>
This schema is used to create indexes for email items.
It supports index fields bccEmail, ccEmail, toEmail,
senderEmail, bccName, ccName, toName,
senderName, content, attachment, and all the fields in
CommonItem.
Among these fields, identifier is mandatory and can be set via the
CommonItem#setIdentifier(String) method.
SystemCapability.Data#DATA_SEARCH| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
ATTACHMENT |
Indicates the index field name of
attachment. |
static String |
BCC_EMAIL |
Indicates the index field name of
bccEmail. |
static String |
BCC_NAME |
Indicates the index field name of
bccName. |
static String |
CC_EMAIL |
Indicates the index field name of
ccEmail. |
static String |
CC_NAME |
Indicates the index field name of
ccName. |
static String |
CONTENT |
Indicates the index field name of
content. |
static String |
SENDER_EMAIL |
Indicates the index field name of
senderEmail. |
static String |
SENDER_NAME |
Indicates the index field name of
senderName. |
static String |
TO_EMAIL |
Indicates the index field name of
toEmail. |
static String |
TO_NAME |
Indicates the index field name of
toName. |
| 构造器 | 说明 |
|---|---|
EmailItem() |
A constructor used to create an
EmailItem instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getAttachment() |
Obtains the value of the
attachment index field. |
String |
getBccEmail() |
Obtains the value of the
bccEmail index field. |
String |
getBccName() |
Obtains the value of the
bccName index field. |
String |
getCcEmail() |
Obtains the value of the
ccEmail index field. |
String |
getCcName() |
Obtains the value of the
ccName index field. |
String |
getContent() |
Obtains the value of the
content index field. |
static List<IndexForm> |
getEmailSchema() |
Obtains a list of index field attributes in this
EmailItem object. |
String |
getSenderEmail() |
Obtains the value of the
senderEmail index field. |
String |
getSenderName() |
Obtains the value of the
senderName index field. |
String |
getToEmail() |
Obtains the value of the
toEmail index field. |
String |
getToName() |
Obtains the value of the
toName index field. |
EmailItem |
setAttachment(String attachment) |
Sets the
attachment index field. |
EmailItem |
setBccEmail(String bccEmail) |
Sets the
bccEmail index field. |
EmailItem |
setBccName(String bccName) |
Sets the
bccName index field. |
EmailItem |
setCcEmail(String ccEmail) |
Sets the
ccEmail index field. |
EmailItem |
setCcName(String ccName) |
Sets the
ccName index field. |
EmailItem |
setContent(String content) |
Sets the
content index field. |
EmailItem |
setSenderEmail(String senderEmail) |
Sets the
senderEmail index field. |
EmailItem |
setSenderName(String senderName) |
Sets the
senderName index field. |
EmailItem |
setToEmail(String toEmail) |
Sets the
toEmail index field. |
EmailItem |
setToName(String toName) |
Sets the
toName index field. |
clear, get, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsString, getValues, isEmpty, put, put, put, put, put, remove, setValues, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlternateName, getCategory, getDateCreate, getDescription, getIdentifier, getKeywords, getName, getPotentialAction, getReserved1, getReserved2, getSubtitle, getThumbnailUrl, getTitle, getUrl, setAlternateName, setCategory, setDateCreate, setDescription, setIdentifier, setKeywords, setName, setPotentialAction, setReserved1, setReserved2, setSubtitle, setThumbnailUrl, setTitle, setUrlpublic static final String ATTACHMENT
attachment.public static final String BCC_EMAIL
bccEmail.public static final String BCC_NAME
bccName.public static final String CC_EMAIL
ccEmail.public static final String CC_NAME
ccName.public static final String CONTENT
content.public static final String SENDER_EMAIL
senderEmail.public static final String SENDER_NAME
senderName.public static final String TO_EMAIL
toEmail.public EmailItem()
EmailItem instance.public static List<IndexForm> getEmailSchema()
EmailItem object.public EmailItem setBccEmail(String bccEmail)
bccEmail index field.
Attributes of this index field:
IndexForm.indexFieldName = "bccEmail";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
bccEmail - Indicates the email address in the blind carbon copy (Bcc) field.EmailItem object.public EmailItem setBccName(String bccName)
bccName index field.
Attributes of this index field:
IndexForm.indexFieldName = "bccName";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
bccName - Indicates the name in the Bcc field.EmailItem object.public EmailItem setCcEmail(String ccEmail)
ccEmail index field.
Attributes of this index field:
IndexForm.indexFieldName = "ccEmail";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
ccEmail - Indicates the email address in the carbon copy (Cc) field.EmailItem object.public EmailItem setCcName(String ccName)
ccName index field.
Attributes of this index field:
IndexForm.indexFieldName = "ccName";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
ccName - Indicates the name in the Cc field.EmailItem object.public EmailItem setToEmail(String toEmail)
toEmail index field.
Attributes of this index field:
IndexForm.indexFieldName = "toEmail";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
toEmail - Indicates the email address in the To field.EmailItem object.public EmailItem setToName(String toName)
toName index field.
Attributes of this index field:
IndexForm.indexFieldName = "toName";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
toName - Indicates the name in the To field.EmailItem object.public EmailItem setSenderEmail(String senderEmail)
senderEmail index field.
Attributes of this index field:
IndexForm.indexFieldName = "senderEmail";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
senderEmail - Indicates the sender's email address.EmailItem object.public EmailItem setSenderName(String senderName)
senderName index field.
Attributes of this index field:
IndexForm.indexFieldName = "senderName";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
senderName - Indicates the sender's name.EmailItem object.public EmailItem setContent(String content)
content index field.
Attributes of this index field:
IndexForm.indexFieldName = "content";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
content - Indicates the email content.EmailItem object.public EmailItem setAttachment(String attachment)
attachment index field.
Attributes of this index field:
IndexForm.indexFieldName = "attachment";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = false;
IndexForm.isSearch = true;
attachment - Indicates the email attachment.EmailItem object.public String getBccEmail()
bccEmail index field.bccEmail index field.public String getBccName()
bccName index field.bccName index field.public String getCcEmail()
ccEmail index field.ccEmail index field.public String getCcName()
ccName index field.ccName index field.public String getToEmail()
toEmail index field.toEmail index field.public String getToName()
toName index field.toName index field.public String getSenderEmail()
senderEmail index field.senderEmail index field.public String getSenderName()
senderName index field.senderName index field.public String getContent()
content index field.content index field.public String getAttachment()
attachment index field.attachment index field.