com.ibm.commerce.emarketing.utils

Class EmailTemplateRow

  • java.lang.Object
    • com.ibm.commerce.emarketing.utils.EmailTemplateRow


  • public class EmailTemplateRow
    extends java.lang.Object
    An instance of this class contains the data of an e-mail template which can be used to display in e-mail template list page.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright String
    • Constructor Summary

      Constructors 
      Constructor and Description
      EmailTemplateRow(java.lang.String name, java.lang.String description, java.lang.String contentFormat, java.lang.String templateType, java.lang.String messageId, boolean createdInThisStore)
      Creates one e-mail template row object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getCheckBoxName()
      The message ID of the template is used as the check box name.
      java.lang.String getContentFormat()
      Returns the content format.
      java.lang.String getDescription()
      Returns the description for this template
      java.lang.String getName()
      Returns the name of this template
      java.lang.String getTemplateType()
      Returns the template type.
      boolean isCreatedInThisStore()
      Check whether the template belongs to this store or to asset store.
      void setCreatedInThisStore(boolean value)
      Sets the flag to indicate whether template is created in this store or in asset store
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        Copyright String
        See Also:
        Constant Field Values
    • Constructor Detail

      • EmailTemplateRow

        public EmailTemplateRow(java.lang.String name,
                                java.lang.String description,
                                java.lang.String contentFormat,
                                java.lang.String templateType,
                                java.lang.String messageId,
                                boolean createdInThisStore)
        Creates one e-mail template row object. It corresponds to one row in the e-mail template list page.
        Parameters:
        name - - Name of this template
        description - - Description of this template
        contentFormat - - Content type can be HTML or Plain Text
        templateType - - Form Filled or JSP type
        messageId - - Message ID of this template
        createdInThisStore - - True indicates that template is created in current store. False indicates that template belongs to related store.
    • Method Detail

      • getCheckBoxName

        public java.lang.String getCheckBoxName()
        The message ID of the template is used as the check box name.
        Returns:
        messageId
      • getContentFormat

        public java.lang.String getContentFormat()
        Returns the content format. Can be plain text (0) or HTML (1)
        Returns:
        content format
      • getDescription

        public java.lang.String getDescription()
        Returns the description for this template
        Returns:
        - Description
      • getName

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

        public java.lang.String getTemplateType()
        Returns the template type. Can be JSP or Form Filled
        Returns:
        templateType
      • isCreatedInThisStore

        public boolean isCreatedInThisStore()
        Check whether the template belongs to this store or to asset store.
        Returns:
        True - if the template is created in this store False - if the template belongs to asset store
      • setCreatedInThisStore

        public void setCreatedInThisStore(boolean value)
        Sets the flag to indicate whether template is created in this store or in asset store
        Parameters:
        value - - True indicates that template belongs to this store. False indicates that the template belongs to asset store.