com.ibm.commerce.emarketing.emailtemplate.tag

Class TagFirstName

  • java.lang.Object
    • com.ibm.commerce.emarketing.emailtemplate.tag.TagFirstName
  • All Implemented Interfaces:
    Tag


    public class TagFirstName
    extends java.lang.Object
    implements Tag
    Default implementation for parsing TagFirstName tag
    • Field Summary

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

      Constructors 
      Constructor and Description
      TagFirstName()
      Default Constructor..
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getTagValue()
      Returns the tag replacement value...This method returns the First Name of the recipient.
      void setCommandContext(com.ibm.commerce.command.CommandContext cc)
      Sets the Command Context
      void setTagParameters(java.util.Hashtable tagParametersCopy)
      Copies the hash table containing key-value parameter required to evaluate this tag, into the class level variable...
      void setTagParameters(java.lang.String tagParamName, java.lang.String tagParamValue)
      Sets the key-value parameter, required to evaluate this tag..
      • Methods inherited from class java.lang.Object

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

      • TagFirstName

        public TagFirstName()
        Default Constructor..
    • Method Detail

      • getTagValue

        public java.lang.String getTagValue()
                                     throws com.ibm.commerce.exception.ECException
        Returns the tag replacement value...This method returns the First Name of the recipient.
        Specified by:
        getTagValue in interface Tag
        Returns:
        String - Tag replacement value.
        Throws:
        com.ibm.commerce.exception.ECException
      • setCommandContext

        public void setCommandContext(com.ibm.commerce.command.CommandContext cc)
        Sets the Command Context
        Specified by:
        setCommandContext in interface Tag
        Parameters:
        cc - Command Context
      • setTagParameters

        public void setTagParameters(java.util.Hashtable tagParametersCopy)
        Copies the hash table containing key-value parameter required to evaluate this tag, into the class level variable...
        Specified by:
        setTagParameters in interface Tag
        Parameters:
        tagParametersCopy - containing key-value pair, needed to evaluate this tag.
      • setTagParameters

        public void setTagParameters(java.lang.String tagParamName,
                                     java.lang.String tagParamValue)
        Sets the key-value parameter, required to evaluate this tag.. Recipient Id is the mandatory key, that needs to be set..
        Specified by:
        setTagParameters in interface Tag
        Parameters:
        tagParamName - - key name
        tagParamValue - - value of the tag parameter