This task command is called from the CouponDSSCmd
when user
selects a set of eCoupons to be used on a set of items in her order.
The input to this command are :
cpwalletIds
:String
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
static java.lang.String |
defaultCommandClassName defaultCommandClassName is the default implementation class used by command factory to instantiate this command if the interface com.ibm.commerce.template.commands.TaskCmdTemplate is not defined in the CMDREG table |
static java.lang.String |
Name Name of the interface |
Method Summary | |
---|---|
java.util.Hashtable |
getConflicts() Returns the conflict hashtable. |
int |
getNumCoupons() Returns the number of coupons. |
java.util.Vector |
getUnQualifiedCoupons() Gets the coupons that did not qualify because of insufficient order items to which it applies. |
boolean |
isValidSelection() Returns whether the selection is valid or not. |
void |
setCouponId(java.lang.Long[] couponId) sets the coupon IDs. |
void |
setItemsSelected(java.util.Hashtable newItemsSelected) Sets the items that were selected for the coupons to be applied on. |
void |
setOrderId(java.lang.Long orderId)
sets the order ID. |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String defaultCommandClassName
public static final java.lang.String Name
Method Detail |
---|
public java.util.Hashtable getConflicts()
public int getNumCoupons()
public boolean isValidSelection()
public void setCouponId(java.lang.Long[] couponId)
couponId
- the array of couponIds.public void setOrderId(java.lang.Long orderId)
orderId
- the order ID for which the coupons are to be
applied.public java.util.Vector getUnQualifiedCoupons()
public void setItemsSelected(java.util.Hashtable newItemsSelected)
newItemsSelected
- hashtable of items being used for
coupons.