com.ibm.commerce.emarketing.emailtemplate.databeans

Class EmailTemplateDatabean

  • java.lang.Object
    • com.ibm.commerce.beans.InputDataBeanImpl
      • com.ibm.commerce.beans.SmartDataBeanImpl
        • com.ibm.commerce.emarketing.emailtemplate.databeans.EmailTemplateDatabean
  • All Implemented Interfaces:
    com.ibm.commerce.beans.DataBean, com.ibm.commerce.beans.InputDataBean, com.ibm.commerce.beans.SmartDataBean, EmailTemplateConstants, java.io.Serializable


    public class EmailTemplateDatabean
    extends com.ibm.commerce.beans.SmartDataBeanImpl
    implements EmailTemplateConstants
    Used to lookup the data of a specific e-mail template. This data accessed through the EmailMessageAccessBean and EmailContentAccessBean
    See Also:
    Serialized Form
    • Field Detail

    • Constructor Detail

      • EmailTemplateDatabean

        public EmailTemplateDatabean()
    • Method Detail

      • getContentFormat

        public java.lang.String getContentFormat()
        Returns the content Format flag of this template HTML or Plain Text Format
        Returns:
        contentFormat - String
      • getContentId

        public java.lang.String getContentId()
        Returns the content ID for this template
        Returns:
        contentID - String
      • getDescription

        public java.lang.String getDescription()
        Returns the description of this email template
        Returns:
        description
      • getEmailBody

        public java.lang.String getEmailBody()
        Returns the Email body for this template
        Returns:
        emailBody - String
      • getEmailSubject

        public java.lang.String getEmailSubject()
        Returns the email subject of this template
        Returns:
        emailSubject - String
      • getMessageId

        public java.lang.String getMessageId()
        Returns the message ID of this template
        Returns:
        Messageid - String
      • getName

        public java.lang.String getName()
        Returns the name of this email template
        Returns:
        name
      • getRecordOpen

        public java.lang.String getRecordOpen()
        Returns the record open flag of this template
        Returns:
        recordOpen
      • getStatus

        public java.lang.String getStatus()
        Returns the status flag for this template 1 - Active 0 - Deleted
        Returns:
        status - String
      • getStoreId

        public java.lang.String getStoreId()
        Returns the storeId of this email template
        Returns:
        storeId
      • populate

        public void populate()
                      throws com.ibm.commerce.exception.ECException
        Specified by:
        populate in interface com.ibm.commerce.beans.SmartDataBean
        Overrides:
        populate in class com.ibm.commerce.beans.SmartDataBeanImpl
        Throws:
        com.ibm.commerce.exception.ECException
        See Also:
        SmartDataBean.populate()
      • populateFromHashtable

        public void populateFromHashtable(java.util.Map hm)
        Populates the instance fields of this databean from the values present in the hash Map
        Parameters:
        hm - - Hash map which contains the values for a particular template.
      • setContentFormat

        public void setContentFormat(java.lang.String newContentFormat)
        Sets the content format for this template HTML ("1") or Plain Text Format ("0")
        Parameters:
        newContentFormat - - Content format flag
      • setContentId

        public void setContentId(java.lang.String newContentId)
        Sets the content ID for this template
        Parameters:
        newContentId - - content ID to be set
      • setDescription

        public void setDescription(java.lang.String newDesc)
        Sets the description for this email template
        Parameters:
        newDesc - - Description
      • setEmailBody

        public void setEmailBody(java.lang.String newBody)
        Sets the email body for this template
        Parameters:
        newBody - - Email Body to be set
      • setEmailSubject

        public void setEmailSubject(java.lang.String newSubject)
        Returns the email subject of this template.
        Parameters:
        newSubject - - Subject to be set for this email template
      • setMessageId

        public void setMessageId(java.lang.String newMessageId)
        Sets the message ID for this template
        Parameters:
        newMessageId - - new message ID to be set
      • setName

        public void setName(java.lang.String newName)
        Sets the name for this email template
        Parameters:
        newName - - name to be set..
      • setRecordOpen

        public void setRecordOpen(java.lang.String newRecordOpen)
        sets the record open flag for this email template 1 - Record 0 - Do not record
        Parameters:
        newRecordOpen - - Record open flag
      • setStatus

        public void setStatus(java.lang.String newStatus)
        Sets the status of this template 1- Active 0 - Deleted
        Parameters:
        newStatus - - Status flag
      • setStoreId

        public void setStoreId(java.lang.String newStoreId)
        Sets the storeId for this email template
        Parameters:
        storeId - - String