Class GeneratedEmailMessage

    • Field Detail

      • SENT

        public static final java.lang.String SENT
        Qualifier of the EmailMessage.sent attribute
        See Also:
        Constant Field Values
      • REPLYTOADDRESS

        public static final java.lang.String REPLYTOADDRESS
        Qualifier of the EmailMessage.replyToAddress attribute
        See Also:
        Constant Field Values
      • SUBJECT

        public static final java.lang.String SUBJECT
        Qualifier of the EmailMessage.subject attribute
        See Also:
        Constant Field Values
      • BODY

        public static final java.lang.String BODY
        Qualifier of the EmailMessage.body attribute
        See Also:
        Constant Field Values
      • BODYMEDIA

        public static final java.lang.String BODYMEDIA
        Qualifier of the EmailMessage.bodyMedia attribute
        See Also:
        Constant Field Values
      • SENTDATE

        public static final java.lang.String SENTDATE
        Qualifier of the EmailMessage.sentDate attribute
        See Also:
        Constant Field Values
      • SENTMESSAGEID

        public static final java.lang.String SENTMESSAGEID
        Qualifier of the EmailMessage.sentMessageID attribute
        See Also:
        Constant Field Values
      • TOADDRESSES

        public static final java.lang.String TOADDRESSES
        Qualifier of the EmailMessage.toAddresses attribute
        See Also:
        Constant Field Values
      • EMAILMESSAGE2TOADDRESSESREL_SRC_ORDERED

        protected static java.lang.String EMAILMESSAGE2TOADDRESSESREL_SRC_ORDERED
        Relation ordering override parameter constants for EmailMessage2ToAddressesRel from ((acceleratorservices))
      • EMAILMESSAGE2TOADDRESSESREL_TGT_ORDERED

        protected static java.lang.String EMAILMESSAGE2TOADDRESSESREL_TGT_ORDERED
      • EMAILMESSAGE2TOADDRESSESREL_MARKMODIFIED

        protected static java.lang.String EMAILMESSAGE2TOADDRESSESREL_MARKMODIFIED
        Relation disable markmodifed parameter constants for EmailMessage2ToAddressesRel from ((acceleratorservices))
      • CCADDRESSES

        public static final java.lang.String CCADDRESSES
        Qualifier of the EmailMessage.ccAddresses attribute
        See Also:
        Constant Field Values
      • EMAILMESSAGE2CCADDRESSESREL_SRC_ORDERED

        protected static java.lang.String EMAILMESSAGE2CCADDRESSESREL_SRC_ORDERED
        Relation ordering override parameter constants for EmailMessage2CcAddressesRel from ((acceleratorservices))
      • EMAILMESSAGE2CCADDRESSESREL_TGT_ORDERED

        protected static java.lang.String EMAILMESSAGE2CCADDRESSESREL_TGT_ORDERED
      • EMAILMESSAGE2CCADDRESSESREL_MARKMODIFIED

        protected static java.lang.String EMAILMESSAGE2CCADDRESSESREL_MARKMODIFIED
        Relation disable markmodifed parameter constants for EmailMessage2CcAddressesRel from ((acceleratorservices))
      • BCCADDRESSES

        public static final java.lang.String BCCADDRESSES
        Qualifier of the EmailMessage.bccAddresses attribute
        See Also:
        Constant Field Values
      • EMAILMESSAGE2BCCADDRESSESREL_SRC_ORDERED

        protected static java.lang.String EMAILMESSAGE2BCCADDRESSESREL_SRC_ORDERED
        Relation ordering override parameter constants for EmailMessage2BccAddressesRel from ((acceleratorservices))
      • EMAILMESSAGE2BCCADDRESSESREL_TGT_ORDERED

        protected static java.lang.String EMAILMESSAGE2BCCADDRESSESREL_TGT_ORDERED
      • EMAILMESSAGE2BCCADDRESSESREL_MARKMODIFIED

        protected static java.lang.String EMAILMESSAGE2BCCADDRESSESREL_MARKMODIFIED
        Relation disable markmodifed parameter constants for EmailMessage2BccAddressesRel from ((acceleratorservices))
      • FROMADDRESS

        public static final java.lang.String FROMADDRESS
        Qualifier of the EmailMessage.fromAddress attribute
        See Also:
        Constant Field Values
      • ATTACHMENTS

        public static final java.lang.String ATTACHMENTS
        Qualifier of the EmailMessage.attachments attribute
        See Also:
        Constant Field Values
      • PROCESS

        public static final java.lang.String PROCESS
        Qualifier of the EmailMessage.process attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedEmailMessage

        public GeneratedEmailMessage()
    • Method Detail

      • getAttachments

        public java.util.List<EmailAttachment> getAttachments​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.attachments attribute.
        Returns:
        the attachments
      • getAttachments

        public java.util.List<EmailAttachment> getAttachments()
        Generated method - Getter of the EmailMessage.attachments attribute.
        Returns:
        the attachments
      • setAttachments

        public void setAttachments​(SessionContext ctx,
                                   java.util.List<EmailAttachment> value)
        Generated method - Setter of the EmailMessage.attachments attribute.
        Parameters:
        value - the attachments
      • setAttachments

        public void setAttachments​(java.util.List<EmailAttachment> value)
        Generated method - Setter of the EmailMessage.attachments attribute.
        Parameters:
        value - the attachments
      • addToAttachments

        public void addToAttachments​(SessionContext ctx,
                                     EmailAttachment value)
        Generated method - Adds value to attachments.
        Parameters:
        value - the item to add to attachments
      • addToAttachments

        public void addToAttachments​(EmailAttachment value)
        Generated method - Adds value to attachments.
        Parameters:
        value - the item to add to attachments
      • removeFromAttachments

        public void removeFromAttachments​(SessionContext ctx,
                                          EmailAttachment value)
        Generated method - Removes value from attachments.
        Parameters:
        value - the item to remove from attachments
      • removeFromAttachments

        public void removeFromAttachments​(EmailAttachment value)
        Generated method - Removes value from attachments.
        Parameters:
        value - the item to remove from attachments
      • getBccAddresses

        public java.util.List<EmailAddress> getBccAddresses​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.bccAddresses attribute.
        Returns:
        the bccAddresses
      • getBccAddresses

        public java.util.List<EmailAddress> getBccAddresses()
        Generated method - Getter of the EmailMessage.bccAddresses attribute.
        Returns:
        the bccAddresses
      • getBccAddressesCount

        public long getBccAddressesCount​(SessionContext ctx)
      • getBccAddressesCount

        public long getBccAddressesCount()
      • setBccAddresses

        public void setBccAddresses​(SessionContext ctx,
                                    java.util.List<EmailAddress> value)
        Generated method - Setter of the EmailMessage.bccAddresses attribute.
        Parameters:
        value - the bccAddresses
      • setBccAddresses

        public void setBccAddresses​(java.util.List<EmailAddress> value)
        Generated method - Setter of the EmailMessage.bccAddresses attribute.
        Parameters:
        value - the bccAddresses
      • addToBccAddresses

        public void addToBccAddresses​(SessionContext ctx,
                                      EmailAddress value)
        Generated method - Adds value to bccAddresses.
        Parameters:
        value - the item to add to bccAddresses
      • addToBccAddresses

        public void addToBccAddresses​(EmailAddress value)
        Generated method - Adds value to bccAddresses.
        Parameters:
        value - the item to add to bccAddresses
      • removeFromBccAddresses

        public void removeFromBccAddresses​(SessionContext ctx,
                                           EmailAddress value)
        Generated method - Removes value from bccAddresses.
        Parameters:
        value - the item to remove from bccAddresses
      • removeFromBccAddresses

        public void removeFromBccAddresses​(EmailAddress value)
        Generated method - Removes value from bccAddresses.
        Parameters:
        value - the item to remove from bccAddresses
      • getBody

        public java.lang.String getBody​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.body attribute.
        Returns:
        the body - Body of the email message.
      • getBody

        public java.lang.String getBody()
        Generated method - Getter of the EmailMessage.body attribute.
        Returns:
        the body - Body of the email message.
      • setBody

        public void setBody​(SessionContext ctx,
                            java.lang.String value)
        Generated method - Setter of the EmailMessage.body attribute.
        Parameters:
        value - the body - Body of the email message.
      • setBody

        public void setBody​(java.lang.String value)
        Generated method - Setter of the EmailMessage.body attribute.
        Parameters:
        value - the body - Body of the email message.
      • getBodyMedia

        public Media getBodyMedia​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.bodyMedia attribute.
        Returns:
        the bodyMedia - Body of the email message which is too big to put in 'body' attribute
      • getBodyMedia

        public Media getBodyMedia()
        Generated method - Getter of the EmailMessage.bodyMedia attribute.
        Returns:
        the bodyMedia - Body of the email message which is too big to put in 'body' attribute
      • setBodyMedia

        public void setBodyMedia​(SessionContext ctx,
                                 Media value)
        Generated method - Setter of the EmailMessage.bodyMedia attribute.
        Parameters:
        value - the bodyMedia - Body of the email message which is too big to put in 'body' attribute
      • setBodyMedia

        public void setBodyMedia​(Media value)
        Generated method - Setter of the EmailMessage.bodyMedia attribute.
        Parameters:
        value - the bodyMedia - Body of the email message which is too big to put in 'body' attribute
      • getCcAddresses

        public java.util.List<EmailAddress> getCcAddresses​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.ccAddresses attribute.
        Returns:
        the ccAddresses
      • getCcAddresses

        public java.util.List<EmailAddress> getCcAddresses()
        Generated method - Getter of the EmailMessage.ccAddresses attribute.
        Returns:
        the ccAddresses
      • getCcAddressesCount

        public long getCcAddressesCount​(SessionContext ctx)
      • getCcAddressesCount

        public long getCcAddressesCount()
      • setCcAddresses

        public void setCcAddresses​(SessionContext ctx,
                                   java.util.List<EmailAddress> value)
        Generated method - Setter of the EmailMessage.ccAddresses attribute.
        Parameters:
        value - the ccAddresses
      • setCcAddresses

        public void setCcAddresses​(java.util.List<EmailAddress> value)
        Generated method - Setter of the EmailMessage.ccAddresses attribute.
        Parameters:
        value - the ccAddresses
      • addToCcAddresses

        public void addToCcAddresses​(SessionContext ctx,
                                     EmailAddress value)
        Generated method - Adds value to ccAddresses.
        Parameters:
        value - the item to add to ccAddresses
      • addToCcAddresses

        public void addToCcAddresses​(EmailAddress value)
        Generated method - Adds value to ccAddresses.
        Parameters:
        value - the item to add to ccAddresses
      • removeFromCcAddresses

        public void removeFromCcAddresses​(SessionContext ctx,
                                          EmailAddress value)
        Generated method - Removes value from ccAddresses.
        Parameters:
        value - the item to remove from ccAddresses
      • removeFromCcAddresses

        public void removeFromCcAddresses​(EmailAddress value)
        Generated method - Removes value from ccAddresses.
        Parameters:
        value - the item to remove from ccAddresses
      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        Description copied from class: Item
        Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

        In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
        Sn example:

        
         public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
         ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
         man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
         // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
         SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
         super.getNonInitialAttributes( ctx, allAttributes );
         // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
        
         
        Overrides:
        createItem in class GenericItem
        Parameters:
        ctx - the current session context which this item is created within
        type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • getFromAddress

        public EmailAddress getFromAddress​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.fromAddress attribute.
        Returns:
        the fromAddress
      • getFromAddress

        public EmailAddress getFromAddress()
        Generated method - Getter of the EmailMessage.fromAddress attribute.
        Returns:
        the fromAddress
      • setFromAddress

        public void setFromAddress​(SessionContext ctx,
                                   EmailAddress value)
        Generated method - Setter of the EmailMessage.fromAddress attribute.
        Parameters:
        value - the fromAddress
      • setFromAddress

        public void setFromAddress​(EmailAddress value)
        Generated method - Setter of the EmailMessage.fromAddress attribute.
        Parameters:
        value - the fromAddress
      • getProcess

        public BusinessProcess getProcess​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.process attribute.
        Returns:
        the process
      • getProcess

        public BusinessProcess getProcess()
        Generated method - Getter of the EmailMessage.process attribute.
        Returns:
        the process
      • setProcess

        public void setProcess​(SessionContext ctx,
                               BusinessProcess value)
        Generated method - Setter of the EmailMessage.process attribute.
        Parameters:
        value - the process
      • setProcess

        public void setProcess​(BusinessProcess value)
        Generated method - Setter of the EmailMessage.process attribute.
        Parameters:
        value - the process
      • getReplyToAddress

        public java.lang.String getReplyToAddress​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.replyToAddress attribute.
        Returns:
        the replyToAddress - It's a string value with email address that message has to be replied to.
      • getReplyToAddress

        public java.lang.String getReplyToAddress()
        Generated method - Getter of the EmailMessage.replyToAddress attribute.
        Returns:
        the replyToAddress - It's a string value with email address that message has to be replied to.
      • setReplyToAddress

        protected void setReplyToAddress​(SessionContext ctx,
                                         java.lang.String value)
        Generated method - Setter of the EmailMessage.replyToAddress attribute.
        Parameters:
        value - the replyToAddress - It's a string value with email address that message has to be replied to.
      • setReplyToAddress

        protected void setReplyToAddress​(java.lang.String value)
        Generated method - Setter of the EmailMessage.replyToAddress attribute.
        Parameters:
        value - the replyToAddress - It's a string value with email address that message has to be replied to.
      • isSent

        public java.lang.Boolean isSent​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.sent attribute.
        Returns:
        the sent - Is set when the email message has been already sent.
      • isSent

        public java.lang.Boolean isSent()
        Generated method - Getter of the EmailMessage.sent attribute.
        Returns:
        the sent - Is set when the email message has been already sent.
      • isSentAsPrimitive

        public boolean isSentAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.sent attribute.
        Returns:
        the sent - Is set when the email message has been already sent.
      • isSentAsPrimitive

        public boolean isSentAsPrimitive()
        Generated method - Getter of the EmailMessage.sent attribute.
        Returns:
        the sent - Is set when the email message has been already sent.
      • setSent

        public void setSent​(SessionContext ctx,
                            java.lang.Boolean value)
        Generated method - Setter of the EmailMessage.sent attribute.
        Parameters:
        value - the sent - Is set when the email message has been already sent.
      • setSent

        public void setSent​(java.lang.Boolean value)
        Generated method - Setter of the EmailMessage.sent attribute.
        Parameters:
        value - the sent - Is set when the email message has been already sent.
      • setSent

        public void setSent​(SessionContext ctx,
                            boolean value)
        Generated method - Setter of the EmailMessage.sent attribute.
        Parameters:
        value - the sent - Is set when the email message has been already sent.
      • setSent

        public void setSent​(boolean value)
        Generated method - Setter of the EmailMessage.sent attribute.
        Parameters:
        value - the sent - Is set when the email message has been already sent.
      • getSentDate

        public java.util.Date getSentDate​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.sentDate attribute.
        Returns:
        the sentDate - Date of sending the email message.
      • getSentDate

        public java.util.Date getSentDate()
        Generated method - Getter of the EmailMessage.sentDate attribute.
        Returns:
        the sentDate - Date of sending the email message.
      • setSentDate

        public void setSentDate​(SessionContext ctx,
                                java.util.Date value)
        Generated method - Setter of the EmailMessage.sentDate attribute.
        Parameters:
        value - the sentDate - Date of sending the email message.
      • setSentDate

        public void setSentDate​(java.util.Date value)
        Generated method - Setter of the EmailMessage.sentDate attribute.
        Parameters:
        value - the sentDate - Date of sending the email message.
      • getSentMessageID

        public java.lang.String getSentMessageID​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.sentMessageID attribute.
        Returns:
        the sentMessageID - Identifier of the email message.
      • getSentMessageID

        public java.lang.String getSentMessageID()
        Generated method - Getter of the EmailMessage.sentMessageID attribute.
        Returns:
        the sentMessageID - Identifier of the email message.
      • setSentMessageID

        public void setSentMessageID​(SessionContext ctx,
                                     java.lang.String value)
        Generated method - Setter of the EmailMessage.sentMessageID attribute.
        Parameters:
        value - the sentMessageID - Identifier of the email message.
      • setSentMessageID

        public void setSentMessageID​(java.lang.String value)
        Generated method - Setter of the EmailMessage.sentMessageID attribute.
        Parameters:
        value - the sentMessageID - Identifier of the email message.
      • getSubject

        public java.lang.String getSubject​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.subject attribute.
        Returns:
        the subject - Subject of the email message.
      • getSubject

        public java.lang.String getSubject()
        Generated method - Getter of the EmailMessage.subject attribute.
        Returns:
        the subject - Subject of the email message.
      • setSubject

        protected void setSubject​(SessionContext ctx,
                                  java.lang.String value)
        Generated method - Setter of the EmailMessage.subject attribute.
        Parameters:
        value - the subject - Subject of the email message.
      • setSubject

        protected void setSubject​(java.lang.String value)
        Generated method - Setter of the EmailMessage.subject attribute.
        Parameters:
        value - the subject - Subject of the email message.
      • getToAddresses

        public java.util.List<EmailAddress> getToAddresses​(SessionContext ctx)
        Generated method - Getter of the EmailMessage.toAddresses attribute.
        Returns:
        the toAddresses
      • getToAddresses

        public java.util.List<EmailAddress> getToAddresses()
        Generated method - Getter of the EmailMessage.toAddresses attribute.
        Returns:
        the toAddresses
      • getToAddressesCount

        public long getToAddressesCount​(SessionContext ctx)
      • getToAddressesCount

        public long getToAddressesCount()
      • setToAddresses

        public void setToAddresses​(SessionContext ctx,
                                   java.util.List<EmailAddress> value)
        Generated method - Setter of the EmailMessage.toAddresses attribute.
        Parameters:
        value - the toAddresses
      • setToAddresses

        public void setToAddresses​(java.util.List<EmailAddress> value)
        Generated method - Setter of the EmailMessage.toAddresses attribute.
        Parameters:
        value - the toAddresses
      • addToToAddresses

        public void addToToAddresses​(SessionContext ctx,
                                     EmailAddress value)
        Generated method - Adds value to toAddresses.
        Parameters:
        value - the item to add to toAddresses
      • addToToAddresses

        public void addToToAddresses​(EmailAddress value)
        Generated method - Adds value to toAddresses.
        Parameters:
        value - the item to add to toAddresses
      • removeFromToAddresses

        public void removeFromToAddresses​(SessionContext ctx,
                                          EmailAddress value)
        Generated method - Removes value from toAddresses.
        Parameters:
        value - the item to remove from toAddresses
      • removeFromToAddresses

        public void removeFromToAddresses​(EmailAddress value)
        Generated method - Removes value from toAddresses.
        Parameters:
        value - the item to remove from toAddresses