com.ibm.commerce.couponwallet.commands

Class PersistCouponForLaterUseCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, PersistCouponForLaterUseCmd, 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 PersistCouponForLaterUseCmdImpl
    extends ControllerCommandImpl
    implements PersistCouponForLaterUseCmd
    For each cpwalletId in the input parameter, the STATE of the eCoupon is updated in CouponWalletAccessBean to SAVED. ViewNames SearchWalletView : After saving the coupons successfully if no URL was specified.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • PersistCouponForLaterUseCmdImpl

        public PersistCouponForLaterUseCmdImpl()
        Deprecated. 
        PersistCouponForLaterUseCmdImpl constructor call super.
    • Method Detail

      • getCouponId

        public java.lang.Long[] getCouponId()
        Deprecated. 
        Gets the coupon IDs.
        Returns:
        the coupon IDs
      • getNumCoupons

        public int getNumCoupons()
        Deprecated. 
        Gets the number of coupons.
        Returns:
        the number of coupons
      • 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
      • performExecute

        public void performExecute()
                            throws ECException
        Deprecated. 
        For each cpwalletId in the input parameter, the STATE of the eCoupon is updated in CouponWalletAccessBean to SAVED.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - If a problem is encountered while creating or finding an EJB.
      • setCouponId

        public void setCouponId(java.lang.Long[] newCouponId)
        Deprecated. 
        Sets the coupon IDs to be saved.
        Parameters:
        newCouponId - the coupon IDs of the coupons to be saved.
      • setNumCoupons

        public void setNumCoupons(int newNumCoupons)
        Deprecated. 
        Sets the number of coupons.
        Parameters:
        newNumCoupons - int