Class EmailMessageModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.acceleratorservices.model.email.EmailMessageModel
-
- All Implemented Interfaces:
java.io.Serializable
public class EmailMessageModel extends ItemModel
Generated model class for type EmailMessage first defined at extension acceleratorservices.Extending EmailMessage type with additional attributes.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
_BUSINESSPROCESS2EMAILMESSAGEREL
Generated relation code constant for relationBusinessProcess2EmailMessageRel
defining source attributeprocess
in extensionacceleratorservices
.static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
ATTACHMENTS
Generated constant - Attribute key ofEmailMessage.attachments
attribute defined at extensionacceleratorservices
.static java.lang.String
BCCADDRESSES
Generated constant - Attribute key ofEmailMessage.bccAddresses
attribute defined at extensionacceleratorservices
.static java.lang.String
BODY
Generated constant - Attribute key ofEmailMessage.body
attribute defined at extensionacceleratorservices
.static java.lang.String
BODYMEDIA
Generated constant - Attribute key ofEmailMessage.bodyMedia
attribute defined at extensionacceleratorservices
.static java.lang.String
CCADDRESSES
Generated constant - Attribute key ofEmailMessage.ccAddresses
attribute defined at extensionacceleratorservices
.static java.lang.String
FROMADDRESS
Generated constant - Attribute key ofEmailMessage.fromAddress
attribute defined at extensionacceleratorservices
.static java.lang.String
PROCESS
Generated constant - Attribute key ofEmailMessage.process
attribute defined at extensionacceleratorservices
.static java.lang.String
REPLYTOADDRESS
Generated constant - Attribute key ofEmailMessage.replyToAddress
attribute defined at extensionacceleratorservices
.static java.lang.String
SENT
Generated constant - Attribute key ofEmailMessage.sent
attribute defined at extensionacceleratorservices
.static java.lang.String
SENTDATE
Generated constant - Attribute key ofEmailMessage.sentDate
attribute defined at extensionacceleratorservices
.static java.lang.String
SENTMESSAGEID
Generated constant - Attribute key ofEmailMessage.sentMessageID
attribute defined at extensionacceleratorservices
.static java.lang.String
SUBJECT
Generated constant - Attribute key ofEmailMessage.subject
attribute defined at extensionacceleratorservices
.static java.lang.String
TOADDRESSES
Generated constant - Attribute key ofEmailMessage.toAddresses
attribute defined at extensionacceleratorservices
.-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description EmailMessageModel()
Generated constructor - Default constructor for generic creation.EmailMessageModel(ItemModel _owner, java.lang.String _replyToAddress, java.lang.String _subject)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersEmailMessageModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing contextEmailMessageModel(java.lang.String _replyToAddress, java.lang.String _subject)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<EmailAttachmentModel>
getAttachments()
Generated method - Getter of theEmailMessage.attachments
attribute defined at extensionacceleratorservices
.java.util.List<EmailAddressModel>
getBccAddresses()
Generated method - Getter of theEmailMessage.bccAddresses
attribute defined at extensionacceleratorservices
.java.lang.String
getBody()
Generated method - Getter of theEmailMessage.body
attribute defined at extensionacceleratorservices
.MediaModel
getBodyMedia()
Generated method - Getter of theEmailMessage.bodyMedia
attribute defined at extensionacceleratorservices
.java.util.List<EmailAddressModel>
getCcAddresses()
Generated method - Getter of theEmailMessage.ccAddresses
attribute defined at extensionacceleratorservices
.EmailAddressModel
getFromAddress()
Generated method - Getter of theEmailMessage.fromAddress
attribute defined at extensionacceleratorservices
.BusinessProcessModel
getProcess()
Generated method - Getter of theEmailMessage.process
attribute defined at extensionacceleratorservices
.java.lang.String
getReplyToAddress()
Generated method - Getter of theEmailMessage.replyToAddress
attribute defined at extensionacceleratorservices
.java.util.Date
getSentDate()
Generated method - Getter of theEmailMessage.sentDate
attribute defined at extensionacceleratorservices
.java.lang.String
getSentMessageID()
Generated method - Getter of theEmailMessage.sentMessageID
attribute defined at extensionacceleratorservices
.java.lang.String
getSubject()
Generated method - Getter of theEmailMessage.subject
attribute defined at extensionacceleratorservices
.java.util.List<EmailAddressModel>
getToAddresses()
Generated method - Getter of theEmailMessage.toAddresses
attribute defined at extensionacceleratorservices
.boolean
isSent()
Generated method - Getter of theEmailMessage.sent
attribute defined at extensionacceleratorservices
.void
setAttachments(java.util.List<EmailAttachmentModel> value)
Generated method - Setter ofEmailMessage.attachments
attribute defined at extensionacceleratorservices
.void
setBccAddresses(java.util.List<EmailAddressModel> value)
Generated method - Setter ofEmailMessage.bccAddresses
attribute defined at extensionacceleratorservices
.void
setBody(java.lang.String value)
Generated method - Setter ofEmailMessage.body
attribute defined at extensionacceleratorservices
.void
setBodyMedia(MediaModel value)
Generated method - Setter ofEmailMessage.bodyMedia
attribute defined at extensionacceleratorservices
.void
setCcAddresses(java.util.List<EmailAddressModel> value)
Generated method - Setter ofEmailMessage.ccAddresses
attribute defined at extensionacceleratorservices
.void
setFromAddress(EmailAddressModel value)
Generated method - Setter ofEmailMessage.fromAddress
attribute defined at extensionacceleratorservices
.void
setProcess(BusinessProcessModel value)
Generated method - Setter ofEmailMessage.process
attribute defined at extensionacceleratorservices
.void
setReplyToAddress(java.lang.String value)
Generated method - Initial setter ofEmailMessage.replyToAddress
attribute defined at extensionacceleratorservices
.void
setSent(boolean value)
Generated method - Setter ofEmailMessage.sent
attribute defined at extensionacceleratorservices
.void
setSentDate(java.util.Date value)
Generated method - Setter ofEmailMessage.sentDate
attribute defined at extensionacceleratorservices
.void
setSentMessageID(java.lang.String value)
Generated method - Setter ofEmailMessage.sentMessageID
attribute defined at extensionacceleratorservices
.void
setSubject(java.lang.String value)
Generated method - Initial setter ofEmailMessage.subject
attribute defined at extensionacceleratorservices
.void
setToAddresses(java.util.List<EmailAddressModel> value)
Generated method - Setter ofEmailMessage.toAddresses
attribute defined at extensionacceleratorservices
.-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_BUSINESSPROCESS2EMAILMESSAGEREL
public static final java.lang.String _BUSINESSPROCESS2EMAILMESSAGEREL
Generated relation code constant for relationBusinessProcess2EmailMessageRel
defining source attributeprocess
in extensionacceleratorservices
.- See Also:
- Constant Field Values
-
SENT
public static final java.lang.String SENT
Generated constant - Attribute key ofEmailMessage.sent
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
REPLYTOADDRESS
public static final java.lang.String REPLYTOADDRESS
Generated constant - Attribute key ofEmailMessage.replyToAddress
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
SUBJECT
public static final java.lang.String SUBJECT
Generated constant - Attribute key ofEmailMessage.subject
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
BODY
public static final java.lang.String BODY
Generated constant - Attribute key ofEmailMessage.body
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
BODYMEDIA
public static final java.lang.String BODYMEDIA
Generated constant - Attribute key ofEmailMessage.bodyMedia
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
SENTDATE
public static final java.lang.String SENTDATE
Generated constant - Attribute key ofEmailMessage.sentDate
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
SENTMESSAGEID
public static final java.lang.String SENTMESSAGEID
Generated constant - Attribute key ofEmailMessage.sentMessageID
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
TOADDRESSES
public static final java.lang.String TOADDRESSES
Generated constant - Attribute key ofEmailMessage.toAddresses
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
CCADDRESSES
public static final java.lang.String CCADDRESSES
Generated constant - Attribute key ofEmailMessage.ccAddresses
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
BCCADDRESSES
public static final java.lang.String BCCADDRESSES
Generated constant - Attribute key ofEmailMessage.bccAddresses
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
FROMADDRESS
public static final java.lang.String FROMADDRESS
Generated constant - Attribute key ofEmailMessage.fromAddress
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
ATTACHMENTS
public static final java.lang.String ATTACHMENTS
Generated constant - Attribute key ofEmailMessage.attachments
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
PROCESS
public static final java.lang.String PROCESS
Generated constant - Attribute key ofEmailMessage.process
attribute defined at extensionacceleratorservices
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EmailMessageModel
public EmailMessageModel()
Generated constructor - Default constructor for generic creation.
-
EmailMessageModel
public EmailMessageModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
EmailMessageModel
@Deprecated(since="4.1.1", forRemoval=true) public EmailMessageModel(java.lang.String _replyToAddress, java.lang.String _subject)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_replyToAddress
- initial attribute declared by typeEmailMessage
at extensionacceleratorservices
_subject
- initial attribute declared by typeEmailMessage
at extensionacceleratorservices
-
EmailMessageModel
@Deprecated(since="4.1.1", forRemoval=true) public EmailMessageModel(ItemModel _owner, java.lang.String _replyToAddress, java.lang.String _subject)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_owner
- initial attribute declared by typeItem
at extensioncore
_replyToAddress
- initial attribute declared by typeEmailMessage
at extensionacceleratorservices
_subject
- initial attribute declared by typeEmailMessage
at extensionacceleratorservices
-
-
Method Detail
-
getAttachments
@Accessor(qualifier="attachments", type=GETTER) public java.util.List<EmailAttachmentModel> getAttachments()
Generated method - Getter of theEmailMessage.attachments
attribute defined at extensionacceleratorservices
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the attachments
-
getBccAddresses
@Accessor(qualifier="bccAddresses", type=GETTER) public java.util.List<EmailAddressModel> getBccAddresses()
Generated method - Getter of theEmailMessage.bccAddresses
attribute defined at extensionacceleratorservices
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the bccAddresses
-
getBody
@Accessor(qualifier="body", type=GETTER) public java.lang.String getBody()
Generated method - Getter of theEmailMessage.body
attribute defined at extensionacceleratorservices
.- Returns:
- the body - Body of the email message.
-
getBodyMedia
@Accessor(qualifier="bodyMedia", type=GETTER) public MediaModel getBodyMedia()
Generated method - Getter of theEmailMessage.bodyMedia
attribute defined at extensionacceleratorservices
.- Returns:
- the bodyMedia - Body of the email message which is too big to put in 'body' attribute
-
getCcAddresses
@Accessor(qualifier="ccAddresses", type=GETTER) public java.util.List<EmailAddressModel> getCcAddresses()
Generated method - Getter of theEmailMessage.ccAddresses
attribute defined at extensionacceleratorservices
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the ccAddresses
-
getFromAddress
@Accessor(qualifier="fromAddress", type=GETTER) public EmailAddressModel getFromAddress()
Generated method - Getter of theEmailMessage.fromAddress
attribute defined at extensionacceleratorservices
.- Returns:
- the fromAddress
-
getProcess
@Accessor(qualifier="process", type=GETTER) public BusinessProcessModel getProcess()
Generated method - Getter of theEmailMessage.process
attribute defined at extensionacceleratorservices
.- Returns:
- the process
-
getReplyToAddress
@Accessor(qualifier="replyToAddress", type=GETTER) public java.lang.String getReplyToAddress()
Generated method - Getter of theEmailMessage.replyToAddress
attribute defined at extensionacceleratorservices
.- Returns:
- the replyToAddress - It's a string value with email address that message has to be replied to.
-
getSentDate
@Accessor(qualifier="sentDate", type=GETTER) public java.util.Date getSentDate()
Generated method - Getter of theEmailMessage.sentDate
attribute defined at extensionacceleratorservices
.- Returns:
- the sentDate - Date of sending the email message.
-
getSentMessageID
@Accessor(qualifier="sentMessageID", type=GETTER) public java.lang.String getSentMessageID()
Generated method - Getter of theEmailMessage.sentMessageID
attribute defined at extensionacceleratorservices
.- Returns:
- the sentMessageID - Identifier of the email message.
-
getSubject
@Accessor(qualifier="subject", type=GETTER) public java.lang.String getSubject()
Generated method - Getter of theEmailMessage.subject
attribute defined at extensionacceleratorservices
.- Returns:
- the subject - Subject of the email message.
-
getToAddresses
@Accessor(qualifier="toAddresses", type=GETTER) public java.util.List<EmailAddressModel> getToAddresses()
Generated method - Getter of theEmailMessage.toAddresses
attribute defined at extensionacceleratorservices
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the toAddresses
-
isSent
@Accessor(qualifier="sent", type=GETTER) public boolean isSent()
Generated method - Getter of theEmailMessage.sent
attribute defined at extensionacceleratorservices
.- Returns:
- the sent - Is set when the email message has been already sent.
-
setAttachments
@Accessor(qualifier="attachments", type=SETTER) public void setAttachments(java.util.List<EmailAttachmentModel> value)
Generated method - Setter ofEmailMessage.attachments
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the attachments
-
setBccAddresses
@Accessor(qualifier="bccAddresses", type=SETTER) public void setBccAddresses(java.util.List<EmailAddressModel> value)
Generated method - Setter ofEmailMessage.bccAddresses
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the bccAddresses
-
setBody
@Accessor(qualifier="body", type=SETTER) public void setBody(java.lang.String value)
Generated method - Setter ofEmailMessage.body
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the body - Body of the email message.
-
setBodyMedia
@Accessor(qualifier="bodyMedia", type=SETTER) public void setBodyMedia(MediaModel value)
Generated method - Setter ofEmailMessage.bodyMedia
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the bodyMedia - Body of the email message which is too big to put in 'body' attribute
-
setCcAddresses
@Accessor(qualifier="ccAddresses", type=SETTER) public void setCcAddresses(java.util.List<EmailAddressModel> value)
Generated method - Setter ofEmailMessage.ccAddresses
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the ccAddresses
-
setFromAddress
@Accessor(qualifier="fromAddress", type=SETTER) public void setFromAddress(EmailAddressModel value)
Generated method - Setter ofEmailMessage.fromAddress
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the fromAddress
-
setProcess
@Accessor(qualifier="process", type=SETTER) public void setProcess(BusinessProcessModel value)
Generated method - Setter ofEmailMessage.process
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the process
-
setReplyToAddress
@Accessor(qualifier="replyToAddress", type=SETTER) public void setReplyToAddress(java.lang.String value)
Generated method - Initial setter ofEmailMessage.replyToAddress
attribute defined at extensionacceleratorservices
. Can only be used at creation of model - before first save.- Parameters:
value
- the replyToAddress - It's a string value with email address that message has to be replied to.
-
setSent
@Accessor(qualifier="sent", type=SETTER) public void setSent(boolean value)
Generated method - Setter ofEmailMessage.sent
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the sent - Is set when the email message has been already sent.
-
setSentDate
@Accessor(qualifier="sentDate", type=SETTER) public void setSentDate(java.util.Date value)
Generated method - Setter ofEmailMessage.sentDate
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the sentDate - Date of sending the email message.
-
setSentMessageID
@Accessor(qualifier="sentMessageID", type=SETTER) public void setSentMessageID(java.lang.String value)
Generated method - Setter ofEmailMessage.sentMessageID
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the sentMessageID - Identifier of the email message.
-
setSubject
@Accessor(qualifier="subject", type=SETTER) public void setSubject(java.lang.String value)
Generated method - Initial setter ofEmailMessage.subject
attribute defined at extensionacceleratorservices
. Can only be used at creation of model - before first save.- Parameters:
value
- the subject - Subject of the email message.
-
setToAddresses
@Accessor(qualifier="toAddresses", type=SETTER) public void setToAddresses(java.util.List<EmailAddressModel> value)
Generated method - Setter ofEmailMessage.toAddresses
attribute defined at extensionacceleratorservices
.- Parameters:
value
- the toAddresses
-
-