com.ibm.commerce.couponredemption.commands

Class CouponDSSCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, CouponDSSCmd, Protectable, 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

    Deprecated. 
    The WC54 coupon feature will be replaced by the WC56 promotion engine coupon feature.

    public class CouponDSSCmdImpl
    extends ControllerCommandImpl
    implements CouponDSSCmd
    This command is called when user selects a set of eCoupons and items for these coupons to be applied on in an order. For customizability, it simply calls a task command CouponDSSTaskCmd. If the selection was correct then if the SUCCESS_URL is specified the controller is transferred to that URL, otherwise, CouponDSSSuccessView is displayed. If the selection was incorrect then if the FAILURE_URL is specified the controller is transferred to that URL, otherwise, ApplicableCouponView is displayed.
    See Also:
    Serialized Form
    • Constructor Detail

      • CouponDSSCmdImpl

        public CouponDSSCmdImpl()
        Deprecated. 
        CouponDSSCmdImpl constructor, call super.
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Deprecated. 
        It always returns true.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        true always.
      • performExecute

        public void performExecute()
                            throws ECException
        Deprecated. 
        For customizability, it simply calls a task command CouponDSSTaskCmd. If the selection was correct then if the SUCCESS_URL is specified the controller is transferred to that URL, otherwise, CouponDSSSuccessView is displayed. If the selection was incorrect then if the FAILURE_URL is specified the controller is transferred to that URL, otherwise, ApplicableCouponView is displayed.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        : - com.ibm.commerce.exception.ECException
        ECException
      • trace

        public void trace(java.lang.String traceString)
        Deprecated. 
        Trace the debug info only.
        Parameters:
        traceString -