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

Class ProcessUniquePromotionCodeActivateActionCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.TargetableCommandImpl
      • com.ibm.websphere.command.CacheableCommandImpl
        • com.ibm.commerce.promotion.facade.server.commands.ProcessUniquePromotionCodeActivateActionCmdImpl
  • All Implemented Interfaces:
    ProcessUniquePromotionCodeActivateActionCmd, 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 ProcessUniquePromotionCodeActivateActionCmdImpl
    extends com.ibm.websphere.command.CacheableCommandImpl
    implements ProcessUniquePromotionCodeActivateActionCmd
    The process command to invoke the PopulatePromotionCodesCmd command.

    If the unique code promotion code type is "Generated" then the PopulatePromotionCodesCmd will be invoked to generate codes.

    If the unique code promotion code type is "Import" then the PopulatePromotionCodesCmd will be invoked to import codes.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Px_promotion getPhysicalPromotion()
      Get the physical promotion
      boolean isReadyToCallExecute()
      This method always indicates the command is ready to execute.
      void performExecute()
      Schedule the populate promotion code command to populate promotion code
      void setPhysicalPromotion(Px_promotion physicalPromotionIn)
      Set the physical promotion
      • Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl

        execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, reset, 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.CacheableCommand

        executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
      • Methods inherited from interface com.ibm.websphere.command.Command

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

        unionDependencies
    • Constructor Detail

      • ProcessUniquePromotionCodeActivateActionCmdImpl

        public ProcessUniquePromotionCodeActivateActionCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        Schedule the populate promotion code command to populate promotion code
        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()
      • getPhysicalPromotion

        public Px_promotion getPhysicalPromotion()
        Get the physical promotion
        Returns:
        the Px_promotion physical promotion object.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method always indicates the command is ready to execute.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Specified by:
        isReadyToCallExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Returns:
        Always true.
        See Also:
        Command.isReadyToCallExecute()