Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String _BUSINESSPROCESS2EMAILMESSAGEREL
      Generated relation code constant for relation BusinessProcess2EmailMessageRel defining source attribute process in extension acceleratorservices.
      static java.lang.String _TYPECODE
      Generated model type code constant.
      static java.lang.String ATTACHMENTS
      Generated constant - Attribute key of EmailMessage.attachments attribute defined at extension acceleratorservices.
      static java.lang.String BCCADDRESSES
      Generated constant - Attribute key of EmailMessage.bccAddresses attribute defined at extension acceleratorservices.
      static java.lang.String BODY
      Generated constant - Attribute key of EmailMessage.body attribute defined at extension acceleratorservices.
      static java.lang.String BODYMEDIA
      Generated constant - Attribute key of EmailMessage.bodyMedia attribute defined at extension acceleratorservices.
      static java.lang.String CCADDRESSES
      Generated constant - Attribute key of EmailMessage.ccAddresses attribute defined at extension acceleratorservices.
      static java.lang.String FROMADDRESS
      Generated constant - Attribute key of EmailMessage.fromAddress attribute defined at extension acceleratorservices.
      static java.lang.String PROCESS
      Generated constant - Attribute key of EmailMessage.process attribute defined at extension acceleratorservices.
      static java.lang.String REPLYTOADDRESS
      Generated constant - Attribute key of EmailMessage.replyToAddress attribute defined at extension acceleratorservices.
      static java.lang.String SENT
      Generated constant - Attribute key of EmailMessage.sent attribute defined at extension acceleratorservices.
      static java.lang.String SENTDATE
      Generated constant - Attribute key of EmailMessage.sentDate attribute defined at extension acceleratorservices.
      static java.lang.String SENTMESSAGEID
      Generated constant - Attribute key of EmailMessage.sentMessageID attribute defined at extension acceleratorservices.
      static java.lang.String SUBJECT
      Generated constant - Attribute key of EmailMessage.subject attribute defined at extension acceleratorservices.
      static java.lang.String TOADDRESSES
      Generated constant - Attribute key of EmailMessage.toAddresses attribute defined at extension acceleratorservices.
    • 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 parameters
      EmailMessageModel​(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      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 parameters
    • 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 relation BusinessProcess2EmailMessageRel defining source attribute process in extension acceleratorservices.
        See Also:
        Constant Field Values
      • SENT

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

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

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

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

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

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

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

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

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

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

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

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

        public static final java.lang.String PROCESS
        Generated constant - Attribute key of EmailMessage.process attribute defined at extension acceleratorservices.
        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 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,
                                 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
        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 Detail

      • getAttachments

        @Accessor(qualifier="attachments",
                  type=GETTER)
        public java.util.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 java.util.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 java.lang.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 java.util.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
      • getReplyToAddress

        @Accessor(qualifier="replyToAddress",
                  type=GETTER)
        public java.lang.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 java.util.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 java.lang.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 java.lang.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 java.util.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​(java.util.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​(java.util.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​(java.lang.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​(java.util.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​(java.lang.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​(java.util.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​(java.lang.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​(java.lang.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​(java.util.List<EmailAddressModel> value)
        Generated method - Setter of EmailMessage.toAddresses attribute defined at extension acceleratorservices.
        Parameters:
        value - the toAddresses