com.ibm.commerce.promotion.commands

Class ProcessExpiredPromotionsCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ProcessExpiredPromotionsCmd, 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 ProcessExpiredPromotionsCmdImpl
    extends TaskCommandImpl
    implements ProcessExpiredPromotionsCmd
    This task command implementation is to process expired promotions to either delete, deactivate, archive, or report expired promotions that have been expired for x number of days.
    See Also:
    Serialized Form
    • Constructor Detail

      • ProcessExpiredPromotionsCmdImpl

        public ProcessExpiredPromotionsCmdImpl()
    • Method Detail

      • setAction

        public void setAction(java.lang.String action)
        Sets the action.
        Specified by:
        setAction in interface ProcessExpiredPromotionsCmd
        Parameters:
        action - The action to take on the expired promotions. Can be deactivate, archive, delete, or report.
      • setNumberOfDays

        public void setNumberOfDays(int numDays)
        Sets the number of days the promotions can be expired for. This is subtracted from current time. If current date and time is March 12, 2015 at 8:00am, and numDays is set to 2; it will not retrieve a promotion that ended on March 10, 2015 at 10:00 am. It will however, retrieve a promotion that ended on March 10, 2015 at 7:00 am.
        Specified by:
        setNumberOfDays in interface ProcessExpiredPromotionsCmd
        Parameters:
        numDays - Number of days the promotions can be expired for. Must be a positive integer.