Class EmailMessageModel

All Implemented Interfaces:
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:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _BUSINESSPROCESS2EMAILMESSAGEREL

      public static final String _BUSINESSPROCESS2EMAILMESSAGEREL
      Generated relation code constant for relation BusinessProcess2EmailMessageRel defining source attribute process in extension acceleratorservices.
      See Also:
    • SENT

      public static final String SENT
      Generated constant - Attribute key of EmailMessage.sent attribute defined at extension acceleratorservices.
      See Also:
    • REPLYTOADDRESS

      public static final String REPLYTOADDRESS
      Generated constant - Attribute key of EmailMessage.replyToAddress attribute defined at extension acceleratorservices.
      See Also:
    • SUBJECT

      public static final String SUBJECT
      Generated constant - Attribute key of EmailMessage.subject attribute defined at extension acceleratorservices.
      See Also:
    • BODY

      public static final String BODY
      Generated constant - Attribute key of EmailMessage.body attribute defined at extension acceleratorservices.
      See Also:
    • BODYMEDIA

      public static final String BODYMEDIA
      Generated constant - Attribute key of EmailMessage.bodyMedia attribute defined at extension acceleratorservices.
      See Also:
    • SENTDATE

      public static final String SENTDATE
      Generated constant - Attribute key of EmailMessage.sentDate attribute defined at extension acceleratorservices.
      See Also:
    • SENTMESSAGEID

      public static final String SENTMESSAGEID
      Generated constant - Attribute key of EmailMessage.sentMessageID attribute defined at extension acceleratorservices.
      See Also:
    • TOADDRESSES

      public static final String TOADDRESSES
      Generated constant - Attribute key of EmailMessage.toAddresses attribute defined at extension acceleratorservices.
      See Also:
    • CCADDRESSES

      public static final String CCADDRESSES
      Generated constant - Attribute key of EmailMessage.ccAddresses attribute defined at extension acceleratorservices.
      See Also:
    • BCCADDRESSES

      public static final String BCCADDRESSES
      Generated constant - Attribute key of EmailMessage.bccAddresses attribute defined at extension acceleratorservices.
      See Also:
    • FROMADDRESS

      public static final String FROMADDRESS
      Generated constant - Attribute key of EmailMessage.fromAddress attribute defined at extension acceleratorservices.
      See Also:
    • ATTACHMENTS

      public static final String ATTACHMENTS
      Generated constant - Attribute key of EmailMessage.attachments attribute defined at extension acceleratorservices.
      See Also:
    • PROCESS

      public static final String PROCESS
      Generated constant - Attribute key of EmailMessage.process attribute defined at extension acceleratorservices.
      See Also:
  • Constructor Details

    • 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(String _replyToAddress, 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
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _replyToAddress - initial attribute declared by type EmailMessage at extension acceleratorservices
      _subject - initial attribute declared by type EmailMessage at extension acceleratorservices
    • EmailMessageModel

      @Deprecated(since="4.1.1", forRemoval=true) public EmailMessageModel(ItemModel _owner, String _replyToAddress, 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
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _owner - initial attribute declared by type Item at extension core
      _replyToAddress - initial attribute declared by type EmailMessage at extension acceleratorservices
      _subject - initial attribute declared by type EmailMessage at extension acceleratorservices
  • Method Details

    • getAttachments

      @Accessor(qualifier="attachments", type=GETTER) public List<EmailAttachmentModel> getAttachments()
      Generated method - Getter of the EmailMessage.attachments attribute defined at extension acceleratorservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the attachments
    • getBccAddresses

      @Accessor(qualifier="bccAddresses", type=GETTER) public List<EmailAddressModel> getBccAddresses()
      Generated method - Getter of the EmailMessage.bccAddresses attribute defined at extension acceleratorservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the bccAddresses
    • getBody

      @Accessor(qualifier="body", type=GETTER) public String getBody()
      Generated method - Getter of the EmailMessage.body attribute defined at extension acceleratorservices.
      Returns:
      the body - Body of the email message.
    • getBodyMedia

      @Accessor(qualifier="bodyMedia", type=GETTER) public MediaModel getBodyMedia()
      Generated method - Getter of the EmailMessage.bodyMedia attribute defined at extension acceleratorservices.
      Returns:
      the bodyMedia - Body of the email message which is too big to put in 'body' attribute
    • getCcAddresses

      @Accessor(qualifier="ccAddresses", type=GETTER) public List<EmailAddressModel> getCcAddresses()
      Generated method - Getter of the EmailMessage.ccAddresses attribute defined at extension acceleratorservices. 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 the EmailMessage.fromAddress attribute defined at extension acceleratorservices.
      Returns:
      the fromAddress
    • getProcess

      @Accessor(qualifier="process", type=GETTER) public BusinessProcessModel getProcess()
      Generated method - Getter of the EmailMessage.process attribute defined at extension acceleratorservices.
      Returns:
      the process
    • getReplyToAddress

      @Accessor(qualifier="replyToAddress", type=GETTER) public String getReplyToAddress()
      Generated method - Getter of the EmailMessage.replyToAddress attribute defined at extension acceleratorservices.
      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 Date getSentDate()
      Generated method - Getter of the EmailMessage.sentDate attribute defined at extension acceleratorservices.
      Returns:
      the sentDate - Date of sending the email message.
    • getSentMessageID

      @Accessor(qualifier="sentMessageID", type=GETTER) public String getSentMessageID()
      Generated method - Getter of the EmailMessage.sentMessageID attribute defined at extension acceleratorservices.
      Returns:
      the sentMessageID - Identifier of the email message.
    • getSubject

      @Accessor(qualifier="subject", type=GETTER) public String getSubject()
      Generated method - Getter of the EmailMessage.subject attribute defined at extension acceleratorservices.
      Returns:
      the subject - Subject of the email message.
    • getToAddresses

      @Accessor(qualifier="toAddresses", type=GETTER) public List<EmailAddressModel> getToAddresses()
      Generated method - Getter of the EmailMessage.toAddresses attribute defined at extension acceleratorservices. 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 the EmailMessage.sent attribute defined at extension acceleratorservices.
      Returns:
      the sent - Is set when the email message has been already sent.
    • setAttachments

      @Accessor(qualifier="attachments", type=SETTER) public void setAttachments(List<EmailAttachmentModel> value)
      Generated method - Setter of EmailMessage.attachments attribute defined at extension acceleratorservices.
      Parameters:
      value - the attachments
    • setBccAddresses

      @Accessor(qualifier="bccAddresses", type=SETTER) public void setBccAddresses(List<EmailAddressModel> value)
      Generated method - Setter of EmailMessage.bccAddresses attribute defined at extension acceleratorservices.
      Parameters:
      value - the bccAddresses
    • setBody

      @Accessor(qualifier="body", type=SETTER) public void setBody(String value)
      Generated method - Setter of EmailMessage.body attribute defined at extension acceleratorservices.
      Parameters:
      value - the body - Body of the email message.
    • setBodyMedia

      @Accessor(qualifier="bodyMedia", type=SETTER) public void setBodyMedia(MediaModel value)
      Generated method - Setter of EmailMessage.bodyMedia attribute defined at extension acceleratorservices.
      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(List<EmailAddressModel> value)
      Generated method - Setter of EmailMessage.ccAddresses attribute defined at extension acceleratorservices.
      Parameters:
      value - the ccAddresses
    • setFromAddress

      @Accessor(qualifier="fromAddress", type=SETTER) public void setFromAddress(EmailAddressModel value)
      Generated method - Setter of EmailMessage.fromAddress attribute defined at extension acceleratorservices.
      Parameters:
      value - the fromAddress
    • setProcess

      @Accessor(qualifier="process", type=SETTER) public void setProcess(BusinessProcessModel value)
      Generated method - Setter of EmailMessage.process attribute defined at extension acceleratorservices.
      Parameters:
      value - the process
    • setReplyToAddress

      @Accessor(qualifier="replyToAddress", type=SETTER) public void setReplyToAddress(String value)
      Generated method - Initial setter of EmailMessage.replyToAddress attribute defined at extension acceleratorservices. 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 of EmailMessage.sent attribute defined at extension acceleratorservices.
      Parameters:
      value - the sent - Is set when the email message has been already sent.
    • setSentDate

      @Accessor(qualifier="sentDate", type=SETTER) public void setSentDate(Date value)
      Generated method - Setter of EmailMessage.sentDate attribute defined at extension acceleratorservices.
      Parameters:
      value - the sentDate - Date of sending the email message.
    • setSentMessageID

      @Accessor(qualifier="sentMessageID", type=SETTER) public void setSentMessageID(String value)
      Generated method - Setter of EmailMessage.sentMessageID attribute defined at extension acceleratorservices.
      Parameters:
      value - the sentMessageID - Identifier of the email message.
    • setSubject

      @Accessor(qualifier="subject", type=SETTER) public void setSubject(String value)
      Generated method - Initial setter of EmailMessage.subject attribute defined at extension acceleratorservices. 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(List<EmailAddressModel> value)
      Generated method - Setter of EmailMessage.toAddresses attribute defined at extension acceleratorservices.
      Parameters:
      value - the toAddresses