Class GeneratedEmailMessage

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
EmailMessage

public abstract class GeneratedEmailMessage extends GenericItem
Generated class for type EmailMessage.
See Also:
  • Field Details

    • SENT

      public static final String SENT
      Qualifier of the EmailMessage.sent attribute
      See Also:
    • REPLYTOADDRESS

      public static final String REPLYTOADDRESS
      Qualifier of the EmailMessage.replyToAddress attribute
      See Also:
    • SUBJECT

      public static final String SUBJECT
      Qualifier of the EmailMessage.subject attribute
      See Also:
    • BODY

      public static final String BODY
      Qualifier of the EmailMessage.body attribute
      See Also:
    • BODYMEDIA

      public static final String BODYMEDIA
      Qualifier of the EmailMessage.bodyMedia attribute
      See Also:
    • SENTDATE

      public static final String SENTDATE
      Qualifier of the EmailMessage.sentDate attribute
      See Also:
    • SENTMESSAGEID

      public static final String SENTMESSAGEID
      Qualifier of the EmailMessage.sentMessageID attribute
      See Also:
    • TOADDRESSES

      public static final String TOADDRESSES
      Qualifier of the EmailMessage.toAddresses attribute
      See Also:
    • EMAILMESSAGE2TOADDRESSESREL_SRC_ORDERED

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

      protected static String EMAILMESSAGE2TOADDRESSESREL_TGT_ORDERED
    • EMAILMESSAGE2TOADDRESSESREL_MARKMODIFIED

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

      public static final String CCADDRESSES
      Qualifier of the EmailMessage.ccAddresses attribute
      See Also:
    • EMAILMESSAGE2CCADDRESSESREL_SRC_ORDERED

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

      protected static String EMAILMESSAGE2CCADDRESSESREL_TGT_ORDERED
    • EMAILMESSAGE2CCADDRESSESREL_MARKMODIFIED

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

      public static final String BCCADDRESSES
      Qualifier of the EmailMessage.bccAddresses attribute
      See Also:
    • EMAILMESSAGE2BCCADDRESSESREL_SRC_ORDERED

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

      protected static String EMAILMESSAGE2BCCADDRESSESREL_TGT_ORDERED
    • EMAILMESSAGE2BCCADDRESSESREL_MARKMODIFIED

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

      public static final String FROMADDRESS
      Qualifier of the EmailMessage.fromAddress attribute
      See Also:
    • ATTACHMENTS

      public static final String ATTACHMENTS
      Qualifier of the EmailMessage.attachments attribute
      See Also:
    • PROCESS

      public static final String PROCESS
      Qualifier of the EmailMessage.process attribute
      See Also:
    • FROMADDRESSHANDLER

      protected static final BidirectionalOneToManyHandler<GeneratedEmailMessage> FROMADDRESSHANDLER
      BidirectionalOneToManyHandler for handling 1:n FROMADDRESS's relation attributes from 'one' side.
    • ATTACHMENTSHANDLER

      protected static final OneToManyHandler<EmailAttachment> ATTACHMENTSHANDLER
      OneToManyHandler for handling 1:n ATTACHMENTS's relation attributes from 'many' side.
    • PROCESSHANDLER

      protected static final BidirectionalOneToManyHandler<GeneratedEmailMessage> PROCESSHANDLER
      BidirectionalOneToManyHandler for handling 1:n PROCESS's relation attributes from 'one' side.
    • DEFAULT_INITIAL_ATTRIBUTES

      protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
  • Constructor Details

    • GeneratedEmailMessage

      public GeneratedEmailMessage()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • getAttachments

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

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

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

      public void setAttachments(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 List<EmailAddress> getBccAddresses(SessionContext ctx)
      Generated method - Getter of the EmailMessage.bccAddresses attribute.
      Returns:
      the bccAddresses
    • getBccAddresses

      public 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, List<EmailAddress> value)
      Generated method - Setter of the EmailMessage.bccAddresses attribute.
      Parameters:
      value - the bccAddresses
    • setBccAddresses

      public void setBccAddresses(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 String getBody(SessionContext ctx)
      Generated method - Getter of the EmailMessage.body attribute.
      Returns:
      the body - Body of the email message.
    • getBody

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

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

      public void setBody(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 List<EmailAddress> getCcAddresses(SessionContext ctx)
      Generated method - Getter of the EmailMessage.ccAddresses attribute.
      Returns:
      the ccAddresses
    • getCcAddresses

      public 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, List<EmailAddress> value)
      Generated method - Setter of the EmailMessage.ccAddresses attribute.
      Parameters:
      value - the ccAddresses
    • setCcAddresses

      public void setCcAddresses(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
    • isMarkModifiedDisabled

      @Deprecated(since="2105", forRemoval=true) public boolean isMarkModifiedDisabled(Item referencedItem)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isMarkModifiedDisabled in class Item
    • 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 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 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, 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(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 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 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, 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.
    • 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 Date getSentDate(SessionContext ctx)
      Generated method - Getter of the EmailMessage.sentDate attribute.
      Returns:
      the sentDate - Date of sending the email message.
    • getSentDate

      public 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, Date value)
      Generated method - Setter of the EmailMessage.sentDate attribute.
      Parameters:
      value - the sentDate - Date of sending the email message.
    • setSentDate

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

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

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

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

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

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

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

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

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

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

      public 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, List<EmailAddress> value)
      Generated method - Setter of the EmailMessage.toAddresses attribute.
      Parameters:
      value - the toAddresses
    • setToAddresses

      public void setToAddresses(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