com.ibm.commerce.couponwallet.commands

Class DeleteCouponsFromWalletCmdImpl

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

      • DeleteCouponsFromWalletCmdImpl

        public DeleteCouponsFromWalletCmdImpl()
        Deprecated. 
        DeleteCouponsFromWalletCmdImpl 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 DELETED.
        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 deleted.
        Parameters:
        newCouponId - the coupon IDs of the coupons to be deleted.
      • setNumCoupons

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