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_BUSINESSPROCESS2EMAILMESSAGERELGenerated relation code constant for relationBusinessProcess2EmailMessageReldefining source attributeprocessin extensionacceleratorservices.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringATTACHMENTSGenerated constant - Attribute key ofEmailMessage.attachmentsattribute defined at extensionacceleratorservices.static java.lang.StringBCCADDRESSESGenerated constant - Attribute key ofEmailMessage.bccAddressesattribute defined at extensionacceleratorservices.static java.lang.StringBODYGenerated constant - Attribute key ofEmailMessage.bodyattribute defined at extensionacceleratorservices.static java.lang.StringBODYMEDIAGenerated constant - Attribute key ofEmailMessage.bodyMediaattribute defined at extensionacceleratorservices.static java.lang.StringCCADDRESSESGenerated constant - Attribute key ofEmailMessage.ccAddressesattribute defined at extensionacceleratorservices.static java.lang.StringFROMADDRESSGenerated constant - Attribute key ofEmailMessage.fromAddressattribute defined at extensionacceleratorservices.static java.lang.StringPROCESSGenerated constant - Attribute key ofEmailMessage.processattribute defined at extensionacceleratorservices.static java.lang.StringREPLYTOADDRESSGenerated constant - Attribute key ofEmailMessage.replyToAddressattribute defined at extensionacceleratorservices.static java.lang.StringSENTGenerated constant - Attribute key ofEmailMessage.sentattribute defined at extensionacceleratorservices.static java.lang.StringSENTDATEGenerated constant - Attribute key ofEmailMessage.sentDateattribute defined at extensionacceleratorservices.static java.lang.StringSENTMESSAGEIDGenerated constant - Attribute key ofEmailMessage.sentMessageIDattribute defined at extensionacceleratorservices.static java.lang.StringSUBJECTGenerated constant - Attribute key ofEmailMessage.subjectattribute defined at extensionacceleratorservices.static java.lang.StringTOADDRESSESGenerated constant - Attribute key ofEmailMessage.toAddressesattribute 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.attachmentsattribute defined at extensionacceleratorservices.java.util.List<EmailAddressModel>getBccAddresses()Generated method - Getter of theEmailMessage.bccAddressesattribute defined at extensionacceleratorservices.java.lang.StringgetBody()Generated method - Getter of theEmailMessage.bodyattribute defined at extensionacceleratorservices.MediaModelgetBodyMedia()Generated method - Getter of theEmailMessage.bodyMediaattribute defined at extensionacceleratorservices.java.util.List<EmailAddressModel>getCcAddresses()Generated method - Getter of theEmailMessage.ccAddressesattribute defined at extensionacceleratorservices.EmailAddressModelgetFromAddress()Generated method - Getter of theEmailMessage.fromAddressattribute defined at extensionacceleratorservices.BusinessProcessModelgetProcess()Generated method - Getter of theEmailMessage.processattribute defined at extensionacceleratorservices.java.lang.StringgetReplyToAddress()Generated method - Getter of theEmailMessage.replyToAddressattribute defined at extensionacceleratorservices.java.util.DategetSentDate()Generated method - Getter of theEmailMessage.sentDateattribute defined at extensionacceleratorservices.java.lang.StringgetSentMessageID()Generated method - Getter of theEmailMessage.sentMessageIDattribute defined at extensionacceleratorservices.java.lang.StringgetSubject()Generated method - Getter of theEmailMessage.subjectattribute defined at extensionacceleratorservices.java.util.List<EmailAddressModel>getToAddresses()Generated method - Getter of theEmailMessage.toAddressesattribute defined at extensionacceleratorservices.booleanisSent()Generated method - Getter of theEmailMessage.sentattribute defined at extensionacceleratorservices.voidsetAttachments(java.util.List<EmailAttachmentModel> value)Generated method - Setter ofEmailMessage.attachmentsattribute defined at extensionacceleratorservices.voidsetBccAddresses(java.util.List<EmailAddressModel> value)Generated method - Setter ofEmailMessage.bccAddressesattribute defined at extensionacceleratorservices.voidsetBody(java.lang.String value)Generated method - Setter ofEmailMessage.bodyattribute defined at extensionacceleratorservices.voidsetBodyMedia(MediaModel value)Generated method - Setter ofEmailMessage.bodyMediaattribute defined at extensionacceleratorservices.voidsetCcAddresses(java.util.List<EmailAddressModel> value)Generated method - Setter ofEmailMessage.ccAddressesattribute defined at extensionacceleratorservices.voidsetFromAddress(EmailAddressModel value)Generated method - Setter ofEmailMessage.fromAddressattribute defined at extensionacceleratorservices.voidsetProcess(BusinessProcessModel value)Generated method - Setter ofEmailMessage.processattribute defined at extensionacceleratorservices.voidsetReplyToAddress(java.lang.String value)Generated method - Initial setter ofEmailMessage.replyToAddressattribute defined at extensionacceleratorservices.voidsetSent(boolean value)Generated method - Setter ofEmailMessage.sentattribute defined at extensionacceleratorservices.voidsetSentDate(java.util.Date value)Generated method - Setter ofEmailMessage.sentDateattribute defined at extensionacceleratorservices.voidsetSentMessageID(java.lang.String value)Generated method - Setter ofEmailMessage.sentMessageIDattribute defined at extensionacceleratorservices.voidsetSubject(java.lang.String value)Generated method - Initial setter ofEmailMessage.subjectattribute defined at extensionacceleratorservices.voidsetToAddresses(java.util.List<EmailAddressModel> value)Generated method - Setter ofEmailMessage.toAddressesattribute 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 relationBusinessProcess2EmailMessageReldefining source attributeprocessin extensionacceleratorservices.- See Also:
- Constant Field Values
-
SENT
public static final java.lang.String SENT
Generated constant - Attribute key ofEmailMessage.sentattribute defined at extensionacceleratorservices.- See Also:
- Constant Field Values
-
REPLYTOADDRESS
public static final java.lang.String REPLYTOADDRESS
Generated constant - Attribute key ofEmailMessage.replyToAddressattribute defined at extensionacceleratorservices.- See Also:
- Constant Field Values
-
SUBJECT
public static final java.lang.String SUBJECT
Generated constant - Attribute key ofEmailMessage.subjectattribute defined at extensionacceleratorservices.- See Also:
- Constant Field Values
-
BODY
public static final java.lang.String BODY
Generated constant - Attribute key ofEmailMessage.bodyattribute defined at extensionacceleratorservices.- See Also:
- Constant Field Values
-
BODYMEDIA
public static final java.lang.String BODYMEDIA
Generated constant - Attribute key ofEmailMessage.bodyMediaattribute defined at extensionacceleratorservices.- See Also:
- Constant Field Values
-
SENTDATE
public static final java.lang.String SENTDATE
Generated constant - Attribute key ofEmailMessage.sentDateattribute defined at extensionacceleratorservices.- See Also:
- Constant Field Values
-
SENTMESSAGEID
public static final java.lang.String SENTMESSAGEID
Generated constant - Attribute key ofEmailMessage.sentMessageIDattribute defined at extensionacceleratorservices.- See Also:
- Constant Field Values
-
TOADDRESSES
public static final java.lang.String TOADDRESSES
Generated constant - Attribute key ofEmailMessage.toAddressesattribute defined at extensionacceleratorservices.- See Also:
- Constant Field Values
-
CCADDRESSES
public static final java.lang.String CCADDRESSES
Generated constant - Attribute key ofEmailMessage.ccAddressesattribute defined at extensionacceleratorservices.- See Also:
- Constant Field Values
-
BCCADDRESSES
public static final java.lang.String BCCADDRESSES
Generated constant - Attribute key ofEmailMessage.bccAddressesattribute defined at extensionacceleratorservices.- See Also:
- Constant Field Values
-
FROMADDRESS
public static final java.lang.String FROMADDRESS
Generated constant - Attribute key ofEmailMessage.fromAddressattribute defined at extensionacceleratorservices.- See Also:
- Constant Field Values
-
ATTACHMENTS
public static final java.lang.String ATTACHMENTS
Generated constant - Attribute key ofEmailMessage.attachmentsattribute defined at extensionacceleratorservices.- See Also:
- Constant Field Values
-
PROCESS
public static final java.lang.String PROCESS
Generated constant - Attribute key ofEmailMessage.processattribute 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 typeEmailMessageat extensionacceleratorservices_subject- initial attribute declared by typeEmailMessageat 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 typeItemat extensioncore_replyToAddress- initial attribute declared by typeEmailMessageat extensionacceleratorservices_subject- initial attribute declared by typeEmailMessageat extensionacceleratorservices
-
-
Method Detail
-
getAttachments
@Accessor(qualifier="attachments", type=GETTER) public java.util.List<EmailAttachmentModel> getAttachments()
Generated method - Getter of theEmailMessage.attachmentsattribute 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.bccAddressesattribute 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.bodyattribute 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.bodyMediaattribute 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.ccAddressesattribute 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.fromAddressattribute defined at extensionacceleratorservices.- Returns:
- the fromAddress
-
getProcess
@Accessor(qualifier="process", type=GETTER) public BusinessProcessModel getProcess()
Generated method - Getter of theEmailMessage.processattribute defined at extensionacceleratorservices.- Returns:
- the process
-
getReplyToAddress
@Accessor(qualifier="replyToAddress", type=GETTER) public java.lang.String getReplyToAddress()
Generated method - Getter of theEmailMessage.replyToAddressattribute 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.sentDateattribute 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.sentMessageIDattribute 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.subjectattribute 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.toAddressesattribute 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.sentattribute 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.attachmentsattribute 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.bccAddressesattribute defined at extensionacceleratorservices.- Parameters:
value- the bccAddresses
-
setBody
@Accessor(qualifier="body", type=SETTER) public void setBody(java.lang.String value)
Generated method - Setter ofEmailMessage.bodyattribute 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.bodyMediaattribute 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.ccAddressesattribute defined at extensionacceleratorservices.- Parameters:
value- the ccAddresses
-
setFromAddress
@Accessor(qualifier="fromAddress", type=SETTER) public void setFromAddress(EmailAddressModel value)
Generated method - Setter ofEmailMessage.fromAddressattribute defined at extensionacceleratorservices.- Parameters:
value- the fromAddress
-
setProcess
@Accessor(qualifier="process", type=SETTER) public void setProcess(BusinessProcessModel value)
Generated method - Setter ofEmailMessage.processattribute 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.replyToAddressattribute 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.sentattribute 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.sentDateattribute 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.sentMessageIDattribute 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.subjectattribute 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.toAddressesattribute defined at extensionacceleratorservices.- Parameters:
value- the toAddresses
-
-