com.ibm.commerce.marketing.facade.server.commands

Class InsertMoreMarketingContentImageMapDataCmdImpl

  • All Implemented Interfaces:
    AbstractInsertMoreNounDataCmd, InsertMoreMarketingContentDataCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class InsertMoreMarketingContentImageMapDataCmdImpl
    extends AbstractInsertMoreNounDataCmdImpl
    implements InsertMoreMarketingContentDataCmd
    This class is used to populate the additional information about click action and input option of a marketing content. It is called when IBM_ADMIN_SUMMARY access profile is used to get marketing content noun. There are three click actions: None (no click action), Single(one click action, the whole content is mapped to a single URL) and Multiple (image map, each map area has its own click action). There are two input options for defining image map, either by Area (Using Areas grid to create area one by one) or by Source (Directly input the HTML source code for image map). This command uses JDBC service call to directly fetch from COLLIMGMAPAREA table.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COLUMN_NAME_COLLATERAL_ID
      The column name for foreign key to COLLATERAL table in COLLIMGMAPAREA table.
      static java.lang.String COLUMN_NAME_HTML_DEF
      The column name for storing image map HTML source code in COLLIMGMAPAREA table.
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      static java.lang.String PARAM_CONTENT_UNIQUE_ID
      The query parameter name for the unique id.
      static java.lang.String QUERY_SELECT_IMAGE_MAP_AREAS_BY_CONTENT_UNIQUE_ID
      Select the image map areas of a marketing content by content unique id.
      • Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl

        LOCAL
      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void performExecute()
      This command composes the click action and input option for marketing content.
      • Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl

        execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
      • Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl

        getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.websphere.command.Command

        execute, isReadyToCallExecute, reset
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • QUERY_SELECT_IMAGE_MAP_AREAS_BY_CONTENT_UNIQUE_ID

        public static final java.lang.String QUERY_SELECT_IMAGE_MAP_AREAS_BY_CONTENT_UNIQUE_ID
        Select the image map areas of a marketing content by content unique id. parameters: UniqueID
        See Also:
        Constant Field Values
      • PARAM_CONTENT_UNIQUE_ID

        public static final java.lang.String PARAM_CONTENT_UNIQUE_ID
        The query parameter name for the unique id.
        See Also:
        Constant Field Values
      • COLUMN_NAME_COLLATERAL_ID

        public static final java.lang.String COLUMN_NAME_COLLATERAL_ID
        The column name for foreign key to COLLATERAL table in COLLIMGMAPAREA table.
        See Also:
        Constant Field Values
      • COLUMN_NAME_HTML_DEF

        public static final java.lang.String COLUMN_NAME_HTML_DEF
        The column name for storing image map HTML source code in COLLIMGMAPAREA table.
        See Also:
        Constant Field Values
    • Constructor Detail

      • InsertMoreMarketingContentImageMapDataCmdImpl

        public InsertMoreMarketingContentImageMapDataCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This command composes the click action and input option for marketing content. There are three click actions: None (no click action), Single(one click action, the whole content is mapped to a single URL) and Multiple (image map, each map area has its own click action). There are two input options for defining image map, either by Area (Using Areas grid to create area one by one) or by Source (Directly input the HTML source code for image map). The logic to determine the click action is: If there are areas defined in COLLIMGMAPAREA table for this marketing conent, then click action is Multiple. Otherwise, if the URL column of COLLATERAL table is populated, the click action is Single. If URL column is not populated, the click action is None. If click action is Multiple and at least one area has HTMLDEF column populated, the input option is Source. Otherwise, the input option is Area.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Throws:
        java.lang.Exception