public class UseCouponIdTaskCmdImpl extends TaskCommandImpl implements UseCouponIdTaskCmd
Modifier and Type | Field and Description |
---|---|
protected java.lang.Integer | calculationUsage
Deprecated.
The calculation usage code.
|
protected java.util.Hashtable | conflicts
Deprecated.
This hashtable stores the information about the conflict in the coupon selection.
|
protected java.lang.Long[] | couponIds
Deprecated.
The couponIds to be processed.
|
protected java.lang.String | currency
Deprecated.
The currency for this order.
|
protected java.lang.Integer | errorCode
Deprecated.
Error code to indicate what was wrong with the selection.
|
protected java.util.Vector | invalidCoupons
Deprecated.
IDs of the coupons that can not be applied to this order.
|
protected int | numCoupons
Deprecated.
The number of coupons to be processed.
|
protected java.lang.Long | orderId
Deprecated.
The order for which the coupons are to be found out
|
protected CommandContext | processingContext
Deprecated.
The command context holder
|
protected TypedProperty | requestProperties
Deprecated.
The request properties.
|
protected java.lang.Long | shopperId
Deprecated.
ID of the shopper invoking the command.
|
protected java.lang.Integer | storeId
Deprecated.
The store ID.
|
protected boolean | validSelection
Deprecated.
True if coupons selected can be used together.
|
protected java.util.Vector | vecInpCouponId
Deprecated.
|
protected boolean | virtualShopperMail
Deprecated.
The e-mail ID of the virtual shopper.
|
Constructor and Description |
---|
UseCouponIdTaskCmdImpl()
Deprecated.
UseCouponIdCmdImpl constructor calls super.
|
Modifier and Type | Method and Description |
---|---|
boolean | checkCouponIdShopperState()
Deprecated.
Returns true if the CouponId are for this shopper and in Usable state.
|
java.lang.Integer | getCalculationUsage()
Deprecated.
Returns the calculation usage code.
|
java.util.Hashtable | getConflicts()
Deprecated.
Returns the conflicts information.
|
java.lang.Long[] | getCouponIds()
Deprecated.
Returns the couponIds.
|
java.lang.String | getCurrency()
Deprecated.
Gets the currency.
|
java.lang.Integer | getErrorCode()
Deprecated.
Returns the error code.
|
java.util.Vector | getInvalidCoupons()
Deprecated.
Returns the invalid coupons.
|
int | getNumCoupons()
Deprecated.
Returns the number of coupons.
|
java.lang.Long | getOrderId()
Deprecated.
Gets the order ID.
|
CommandContext | getProcessingContext()
Deprecated.
Returns the processing context.
|
TypedProperty | getRequestProperties()
Deprecated.
Returns the request properties.
|
java.lang.Long | getShopperId()
Deprecated.
Gets the shopperId.
|
void | insertIntoDB(java.lang.Long orderId, java.util.Hashtable couponHashtable)
Deprecated.
Inserts the coupon related information in the database.
|
boolean | isValidSelection()
Deprecated.
Returns true if the selection was valid.
|
void | performExecute()
Deprecated.
First, this this command check whether the specified coupons belong to the shopper.
|
void | removeExistingAdjustments(java.lang.Long anOrderId)
Deprecated.
Removes the existing adjustments for this order.
|
void | removeOldEntries()
Deprecated.
It removes the old entries from the TORCPMAP and TCPITMAP tables.
|
void | setCalculationUsage(java.lang.Integer newCalculationUsage)
Deprecated.
Sets the calculation usage.
|
void | setConflicts(java.util.Hashtable newConflicts)
Deprecated.
Sets the conflicts information.
|
void | setCouponIds(java.lang.Long[] newCouponIds)
Deprecated.
Sets the couponIds.
|
void | setCurrency(java.lang.String newCurrency)
Deprecated.
Sets the currency.
|
void | setErrorCode(java.lang.Integer newErrorCode)
Deprecated.
Sets the errorcode.
|
void | setInvalidCoupons(java.util.Vector newInvalidCoupons)
Deprecated.
Sets the invalidCoupons.
|
void | setKeepPrevious(boolean keepPrevious)
Deprecated.
Sets the removePrevious.
|
void | setNumCoupons(int newNumCoupons)
Deprecated.
Sets the number of coupons.
|
void | setOrderId(java.lang.Long newOrderId)
Deprecated.
Sets the order ID.
|
void | setProcessingContext(CommandContext newProcessingContext)
Deprecated.
Sets the processing context.
|
void | setRequestProperties(TypedProperty newRequestProperties)
Deprecated.
Sets the request properties.
|
void | setShopperId(java.lang.Long newShopperId)
Deprecated.
Sets the shopperId.
|
void | setValidSelection(boolean newValidSelection)
Deprecated.
Sets the validSelect field.
|
void | validateParameters()
Deprecated.
Extracts the couponIds to be used in the command from the request.
|
protected java.util.Vector vecInpCouponId
protected java.util.Hashtable conflicts
protected CommandContext processingContext
protected java.lang.Long shopperId
protected java.lang.Integer storeId
protected java.lang.String currency
protected java.lang.Integer calculationUsage
protected java.lang.Long orderId
protected int numCoupons
protected java.lang.Long[] couponIds
protected java.lang.Integer errorCode
protected boolean validSelection
protected java.util.Vector invalidCoupons
protected TypedProperty requestProperties
protected boolean virtualShopperMail
public UseCouponIdTaskCmdImpl()
public boolean checkCouponIdShopperState() throws ECSystemException
public java.lang.Integer getCalculationUsage()
public java.util.Hashtable getConflicts()
public java.lang.Long[] getCouponIds()
public java.lang.String getCurrency()
public java.lang.Integer getErrorCode()
public java.util.Vector getInvalidCoupons()
public int getNumCoupons()
public java.lang.Long getOrderId()
public CommandContext getProcessingContext()
public TypedProperty getRequestProperties()
public java.lang.Long getShopperId()
public void insertIntoDB(java.lang.Long orderId, java.util.Hashtable couponHashtable) throws ECSystemException
public boolean isValidSelection()
public void performExecute() throws ECException
public void removeExistingAdjustments(java.lang.Long anOrderId) throws ECSystemException
public void removeOldEntries() throws ECSystemException
public void setCalculationUsage(java.lang.Integer newCalculationUsage)
public void setConflicts(java.util.Hashtable newConflicts)
public void setCouponIds(java.lang.Long[] newCouponIds)
public void setCurrency(java.lang.String newCurrency)
public void setErrorCode(java.lang.Integer newErrorCode)
public void setInvalidCoupons(java.util.Vector newInvalidCoupons)
public void setNumCoupons(int newNumCoupons)
public void setOrderId(java.lang.Long newOrderId)
public void setProcessingContext(CommandContext newProcessingContext)
public void setRequestProperties(TypedProperty newRequestProperties)
public void setShopperId(java.lang.Long newShopperId)
public void setValidSelection(boolean newValidSelection)
public void validateParameters() throws ECException
public void setKeepPrevious(boolean keepPrevious)