com.ibm.commerce.couponredemption.commands
Class CouponDSSCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.couponredemption.commands.CouponDSSCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, CouponDSSCmd, ECCommand, ECTargetableCommand, Protectable
- public class CouponDSSCmdImpl
- extends ControllerCommandImpl
- implements CouponDSSCmd
This shopper command is called when user selects a set of eCoupons to be used in an order. The
task command CouponDSSTaskCmd is used for those eCoupons which are used together as customizable.
The input to this command are :
The ids of coupons that were selected for use with this order.
The order under consideration.
Constructor Summary |
CouponDSSCmdImpl()
CouponDSSCmdImpl constructor, call super. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
couponId
protected java.lang.Long[] couponId
currency
protected java.lang.String currency
numCoupons
protected int numCoupons
orderId
protected java.lang.Long orderId
processingContext
protected CommandContext processingContext
selectionOK
protected boolean selectionOK
CouponDSSCmdImpl
public CouponDSSCmdImpl()
- CouponDSSCmdImpl constructor, call super.
getResources
public AccessVector getResources()
throws ECSystemException
- It get the resources for eCoupon promotion.
- Specified by:
getResources
in interface ECCommand
- Overrides:
getResources
in class AbstractECTargetableCommand
- Returns:
- com.ibm.commerce.accesscontrol.AccessVector
- Throws:
ECSystemException
-
isReadyToCallExecute
public boolean isReadyToCallExecute()
- It always return true.
- Overrides:
isReadyToCallExecute
in class AbstractECTargetableCommand
- Returns:
- boolean
performExecute
public void performExecute()
throws ECException
- This method calls the CouponDSSTask command.
Creation date: (12/12/00 11:53:47 AM)
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
validateParameters
public void validateParameters()
throws ECException
- It validate the parameters.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECTargetableCommand
- Throws:
ECException
-