|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This task command is called from the COUPONDSSCMD when user selects a set of eCoupons to be used in her order. In case of any conflict among the user selected set of eCoupons, the previous set of eCoupons from CouponWallet is thrown back to user, else the final selection page is displayed with the order prepare button.
The input to this command are :
First the eCoupons with selection status whether SELECTED or not is checked and it shouldn't have a
common item in their itemlist where the itemlist is obtained from TCPITMAP table. If the number of selected
order eCoupon is not more than one, the complete list of applicable eCoupons is shown to the user again and
asked to reselect.
If the above condition not satisfied, the selected eCoupons are moved to ORCPMAP table from TORCPMAP
table and the unselected eCoupons are to be deleted from TORCPMAP table. The entries corresponding to
selected eCoupons are moved to CPITMAP table from TCPITMAP table and the entries corresponding to unselected
eCoupons are deleted from TCPITMAP table. Then the final eCoupon selection summary page is displayed
with the discounts incorporated.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
defaultCommandClassName
|
static java.lang.String |
Name
|
Method Summary | |
java.util.Hashtable |
getConflicts()
Returns the conflict hashtable. |
int |
getNumCoupons()
Returns the number of coupons. |
boolean |
isValidSelection()
Returns whether the selection is valid or not. |
void |
setCouponId(java.lang.Long[] couponId)
sets the coupon ids. |
void |
setOrderId(java.lang.Long orderId)
sets the order Id. |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
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)
public void setOrderId(java.lang.Long orderId)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |