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 :


Field Summary
protected  java.lang.Long[] couponId
           
protected  java.lang.String currency
           
protected  int numCoupons
           
protected  java.lang.Long orderId
           
protected  CommandContext processingContext
           
protected  boolean selectionOK
           
 
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.couponredemption.commands.CouponDSSCmd
COPYRIGHT, defaultCommandClassName
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
CouponDSSCmdImpl()
          CouponDSSCmdImpl constructor, call super.
 
Method Summary
 AccessVector getResources()
          It get the resources for eCoupon promotion.
 boolean isReadyToCallExecute()
          It always return true.
 void performExecute()
          This method calls the CouponDSSTask command.
 void validateParameters()
          It validate the parameters.
 
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.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

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
Constructor Detail

CouponDSSCmdImpl

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

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 -