public class ECouponPromotionUpdateCmdImpl extends ToolsControllerCommandImpl implements ECConstants, ECToolsConstants, ECECouponConstant, ECouponPromotionUpdateCmd
Behaviour If any of the parameter to this command is missing then it throws ECSystemException.
The command does the following
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Deprecated.
IBM copyright notice field.
|
Constructor and Description |
---|
ECouponPromotionUpdateCmdImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AccessVector | getResources()
Deprecated.
Access control related method
|
void | performExecute()
Deprecated.
Invokes the task command UpdateECouponPromotionTaskCmd to update coupon promotion associated tables, for the promo ID and the coupon promotion XML.
|
void | validateParameters()
Deprecated.
Gets the XML file, the language ID, the store ID and the promotion ID from the command context and the request properties and assigns to appropriate class variables.
|
public static final java.lang.String COPYRIGHT
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
Behaviour
The command does the following
public void validateParameters() throws ECException
Parameter Name | Valid Type | Optional/Mandatory |
---|---|---|
ECECouponConstant.EC_Promo_Id | String - Name of promotion | Mandatory |
EC_XMLOBJECT | Vector - Contains a hashtable of coupon promotion parameter values in an object named EC_XML | Mandatory |
Parameter Name | Valid Type | Optional/Mandatory |
---|---|---|
eCouponName | String - Name of promotion | Mandatory |
eCouponCurr | String - Currency | Mandatory |
eCouponDesc | String - Merchant viewable description | Optional |
shortDesc | String - customer viewable short description | Optional |
longDesc | String - customer viewable long description | Optional |
fullImagePath | String - customer viewable full image path | Optional |
thumbNailPath | String - customer viewable thumbnail path | Optional |
hasDateTimeRange | String - "true"/"false" | Mandatory |
eCouponStartYear | String representing an year | Mandatory if hasDateTimeRange="true" |
eCouponStartMonth | String representing a month | Mandatory if hasDateTimeRange="true" |
eCouponStartDay | String representing a day | Mandatory if hasDateTimeRange="true" |
eCouponEndYear | String representing an year | Mandatory if hasDateTimeRange="true" |
eCouponEndMonth | String representing a month | Mandatory if hasDateTimeRange="true" |
eCouponEndDay | String representing a day | Mandatory if hasDateTimeRange="true" |
eCouponStartTimeSelectedIndex | String representing an hour | Mandatory if hasDateTimeRange="true" |
eCouponEndTimeSelectedIndex | String representing an hour | Mandatory if hasDateTimeRange="true" |
hasNumOffer | String - "true"/"false" | Mandatory |
eCouponNumOffer | String - number of coupons | Mandatory if hasNumOffer="true" |
purchaseConditionType | String - "0"(product), "1"(order), "2"(category) | Mandatory |
minAmt | String - a double representing minimum qualifying amount for order type coupon | Mandatory if purchaseConditionType=0 |
hasMax | String - "true"/"false" | Mandatory if purchaseConditionType=0 |
maxAmt | String - a double representing minimum qualifying amount for order type coupon | Mandatory if hasMax="true" |
orderType | String - "0"(percentage), "1"(fixed) - discount type on order | Mandatory if purchaseConditionType=0 |
orderPercentageAmt | String - percentage discount amount | Mandatory if orderType=0 |
orderFixedAmt | String - fixed discount amount | Mandatory if orderType=1 |
product | Hashtable of product SKUs in the purchase condition | Mandatory if purchaseConditionType=1 |
checkedProducts | Hashtable of product SKUs to be discounted | Mandatory if purchaseConditionType=1 |
productType | String - "0"(percentage), "1"(fixed) - discount type on products | Mandatory if purchaseConditionType=1 |
productPercentageAmt | String - percentage discount amount | Mandatory if productType=0 |
productFixedAmt | String - fixed discount amount | Mandatory if productType=1 |
catalogId | String - The catalogId on which the coupon is defined | Mandatory if purchaseConditionType=2 |
category | Hashtable of category identifiers in the purchase condition | Mandatory if purchaseConditionType=2 |
checkedCategorys | Hashtable of category identifiers to be discounted | Mandatory if purchaseConditionType=2 |
categoryType | String - "0"(percentage), "1"(fixed) - discount type on categories | Mandatory if purchaseConditionType=2 |
categoryPercentageAmt | String - percentage discount amount | Mandatory if productType=2 |
categoryFixedAmt | String - fixed discount amount | Mandatory if productType=2 |
Behaviour
The command does the following