com.ibm.commerce.promotion.facade.server.commands

Class ProcessPromotionActivateActionCmdImpl

    • Field Summary

      • Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl

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

        serialVersionUID
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static void invalidate(java.lang.String promotionId, int storeId)
      This method invalidates e-Marketing Spot entries in the base and marketing caches that are associated with a promotion.
      void performExecute()
      If the value of the promotion control parameter is "CMC", this method uses XSLT tranformation to generates the rule xml according to the final authoring data and performs data valadation during the process, Otherwise only the status of the rule XML will be updated with "Active" status.
      void validate()
      This method validates if the promotion can be activated or not.
      • 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
    • Constructor Detail

      • ProcessPromotionActivateActionCmdImpl

        public ProcessPromotionActivateActionCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        If the value of the promotion control parameter is "CMC", this method uses XSLT tranformation to generates the rule xml according to the final authoring data and performs data valadation during the process, Otherwise only the status of the rule XML will be updated with "Active" status. Then it sets the CalculationCode record as "published".

        Note:If the value of the promotion control parameter is "CMC", this method will also create records in CALCODEMGP, CATENCALCD,CATGPCALCD and SHPMODCLCD that are related to this promotion.

        When override this method, it is recommended to call the method of the super class in order to maintain the default behaviour.

        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Throws:
        java.lang.Exception
        See Also:
        TargetableCommand.performExecute()
      • invalidate

        public static void invalidate(java.lang.String promotionId,
                                      int storeId)
                               throws java.lang.Exception
        This method invalidates e-Marketing Spot entries in the base and marketing caches that are associated with a promotion. It issues invalidations for the e-Marketing Spot ID (emsId) and the e-Marketing Spot name (emsName) for all e-Marketing Spots scheduled to the activities associated with the promotion.
        Parameters:
        promotionId - The promotion unique ID.
        storeId - The store associated with the promotion.
        Throws:
        java.lang.Exception