public class CreateCouponDiscountCmdImpl extends TaskCommandImpl implements CreateCouponDiscountCmd, ECECouponConstant
Behaviour If any of the parameter to this command is missing then it throws ECSystemException.
The command uses the following access beans:
CalculationCodeAccessBean, CalculationCodeDescriptionAccessBean,
CalculationRangeAccessBean, CalculationRangeLookupResultAccessBean,
CalculationRuleAccessBean, CalculationRuleMemberGroupRelationshipAccessBean,
CalculationRuleScaleRelationshipAccessBean, CalculationScaleAccessBean,
CatalogEntryCalculationCodeAccessBean, CatalogEntryAccessBean,
CatalogEntryCalculationCodeAccessBean, StoreAccessBean, CatalogGroupAccessBean,
CatalogGroupCalculationCodeAccessBean
.
ECECouponConstant.DefaultCouponDiscountCalculationMethodIds
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Deprecated.
IBM Copyright notice field.
|
defaultCommandClassName, Name
BY_AMOUNT_PER_UNIT, BY_FIXED_AMOUNT, BY_PERCENTAGE, CALCULATION_USAGE_COUPON, CATALOGID, CATEGORY_LEVEL, CATEGORYSKU, CUMULATIVE_FALSE, CURRENCY_RANGE, DISCOUNT_PUBLISHED, DISCOUNT_UNPUBLISHED, DO_NOT_GROUP, EC_Activate, EC_Deactivate, EC_EndDate, EC_Name, EC_NEW_PROMOTION, EC_Orderby, EC_Promo_Id, EC_StartDate, EC_Status, ECOUPON_ALREADY_ACTIVE, ECOUPON_ALREADY_INACTIVE, ECOUPON_CATEGORY_PURCHASECOND, ECOUPON_DATA_POPULATE_ERROR, ECOUPON_DEACTIVATE_ERROR, ECOUPON_DELETE_ERROR, ECOUPON_DETAILS, ECOUPON_DISPLAY_BANNER, ECOUPON_DISPLAY_EMAIL, ECOUPON_DISPLAY_OFFERLIST, ECOUPON_DUPLICATE_CODE_ERROR, ECOUPON_ORDER_PURCHASECOND, ECOUPON_PRODUCT_PURCHASECOND, ECOUPON_PROMOTION_ACTIVE, ECOUPON_PROMOTION_ACTIVE_ERROR, ECOUPON_PROMOTION_DELETE, ECOUPON_PROMOTION_EXPIRED, ECOUPON_PROMOTION_INACTIVE, ECOUPON_PROMOTION_NAME_ERROR, ECOUPON_PURCHASECOND_CHANGED_ERROR, ECOUPON_RESOURCES, ECOUPON_RESOURCES_BUNDLE, ECOUPON_SAVE_GENERAL_ERROR, ECOUPON_UPDATE_DESC_ERROR, ECOUPON_UPDATE_DISCOUNT_ERROR, ECOUPON_UPDATE_GENERAL_ERROR, ECOUPON_UPDATE_PROMOTION_ERROR, ECOUPON_UPDATE_PURCHASECOND_ERROR, FLAGS_RULE_RESTRICTED, IN_ADDITION_TO, IN_COMBINATION_WITH, INFINITE_COUPON, INITIAL_EARLYBIRD_LIMIT, INITIAL_NUM_OFFER, MAXCATAMOUNT, MAXCATQUANTITY, MINCATAMOUNT, MINCATQUANTITY, MSG_ECOUPON_SAVED, NOT_IN_COMBINATION_WITH, NUM_SEEN_ALLOWED, NUM_USE_ALLOWED, ORDER_LEVEL, PRODUCT_LEVEL, PRODUCTSKU, QTY_RANGE, QUANTITY, REST_OF_TIMESTRING, TYPE_CASE_SENSITIVE, TYPE_IGNORE_CASE, TYPE_LIKE_CASE_SENSITIVE, TYPE_LIKE_IGNORE_CASE, ZERO_STRING
Constructor and Description |
---|
CreateCouponDiscountCmdImpl()
Deprecated.
CreateCouponDiscountCmdImpl calls
super() . |
Modifier and Type | Method and Description |
---|---|
void |
createCalCodeBean()
Deprecated.
Creates and populates the calculation code bean.
|
void |
createCalDescBean()
Deprecated.
Creates and populates the calculation code description bean.
|
void |
createCalRangeBean()
Deprecated.
Creates and populates the calculation code range bean
|
void |
createCalRuleBean()
Deprecated.
Creates and populates the calculation rule bean
|
void |
createCalRuleMgpBean()
Deprecated.
Creates and populates the calculation rule member group bean
|
void |
createCalRuleScaleBean()
Deprecated.
Creates and populates the calculation rule scale bean
|
void |
createCalScaleBean()
Deprecated.
Creates and populates the calculation scale bean
|
void |
createCatencalcd()
Deprecated.
Creates and populates catalog entry to calculation code mapping.
|
java.lang.String |
getAdminDescription()
Deprecated.
Gets the AdminsDescription.
|
java.util.Vector |
getAssignedShopperGroups()
Deprecated.
Gets AssignedShopperGroups.
|
java.lang.Integer |
getCalCodeId()
Deprecated.
Gets CalCodeId.
|
java.lang.String |
getCode()
Deprecated.
Gets Code(Discount Name).
|
java.lang.String |
getCurrency()
Deprecated.
Gets Currency.
|
java.lang.String |
getDescription()
Deprecated.
Gets Description.
|
java.util.Vector |
getDiscountValueVector()
Deprecated.
Gets DiscountValueVector.
|
java.lang.Integer |
getDiscSubType()
Deprecated.
Gets DiscountSubType.
|
java.lang.Integer |
getDiscType()
Deprecated.
Gets DiscountType
|
java.sql.Timestamp |
getEndTimestamp()
Deprecated.
Gets EndTimestamp.
|
java.lang.Integer |
getGroupBy()
Deprecated.
Gets GroupBy.
|
java.lang.Integer |
getLangId()
Deprecated.
Gets LanguageId.
|
java.util.Vector |
getProduct()
Deprecated.
Gets Product set for populating CatenCalCd.
|
java.util.Vector |
getRangeFromVector()
Deprecated.
Gets RangeFromeVector.
|
java.lang.Integer |
getRangeType()
Deprecated.
Gets Range Type
|
java.sql.Timestamp |
getStartTimestamp()
Deprecated.
Gets StartTimestamp.
|
boolean |
isReadyToCallExecute()
Deprecated.
Always returns true.
|
void |
performExecute()
Deprecated.
This method populates all the calcode related tables for a coupon promotion discount.
|
void |
setAdminDescription(java.lang.String newAdminDescription)
Deprecated.
Sets the AdminsDescription.
|
void |
setAllShoppers(boolean newAllShoppers)
Deprecated.
Sets whether all shopper can avail this discount.
|
void |
setAssignedShopperGroups(java.util.Vector newAssignedShopperGroups)
Deprecated.
Sets AssignedShopperGroups if all shoppers can not avail the discount.
|
void |
setCalCodeId(java.lang.Integer newCalCodeId)
Deprecated.
Sets CalcodeId.
|
void |
setCategory(java.util.Vector newCategory)
Deprecated.
Sets the categories to be included in catgpcalcd table
|
void |
setCode(java.lang.String newCode)
Deprecated.
Sets the Discount Name.
|
void |
setCurrency(java.lang.String newCurrency)
Deprecated.
Sets Currency for this calculation code.
|
void |
setDescription(java.lang.String newDescription)
Deprecated.
Sets Description.
|
void |
setDiscountValueVector(java.util.Vector newDiscountValueVector)
Deprecated.
Sets DiscountValueVector.
|
void |
setDiscSubType(java.lang.Integer newDiscSubType)
Deprecated.
Sets the type of discount given.
|
void |
setDiscType(java.lang.Integer newDiscType)
Deprecated.
Sets DiscountType.
|
void |
setEndTimestamp(java.sql.Timestamp newEndTimestamp)
Deprecated.
Sets the end of validity period.
|
void |
setGroupBy(java.lang.Integer newGroupBy)
Deprecated.
Sets GroupBy.
|
void |
setHasDateTimeRange(boolean newHasDateTimeRange)
Deprecated.
Indicates whether this calculation code has a date time range.
|
void |
setLangId(java.lang.Integer newLangId)
Deprecated.
Sets LanguageId.(Can be removed)
|
void |
setProduct(java.util.Vector newProduct)
Deprecated.
Sets Product list to be included in Catentcalcd table.
|
void |
setRangeFromVector(java.util.Vector newRangeFromVector)
Deprecated.
Sets RangeFromVector.
|
void |
setRangeType(java.lang.Integer newRangeType)
Deprecated.
Sets RangeType.
|
void |
setStartTimestamp(java.sql.Timestamp newStartTimestamp)
Deprecated.
Sets the start time of the calculcation code.
|
void |
setStoreId(java.lang.Integer newStoreId)
Deprecated.
Sets StoreId(Can be removed).
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public CreateCouponDiscountCmdImpl()
super()
.public void createCalCodeBean() throws ECSystemException
ECSystemException
- Thown if any EJB related exception occurs.public void createCalDescBean() throws ECSystemException
ECSystemException
- Thown if any EJB related exception occurs.public void createCalRangeBean() throws ECSystemException
ECSystemException
- Thown if any EJB related exception occurs.public void createCalRuleBean() throws ECSystemException
ECSystemException
- Thown if any EJB related exception occurs.public void createCalRuleMgpBean() throws ECSystemException
ECSystemException
- Thown if any EJB related exception occurs.public void createCalRuleScaleBean() throws ECSystemException
ECSystemException
- Thown if any EJB related exception occurs.public void createCalScaleBean() throws ECSystemException
ECSystemException
- Thown if any EJB related exception occurs.public void createCatencalcd() throws ECSystemException
ECSystemException
- Thown if any EJB related exception occurs.public java.lang.String getAdminDescription()
public java.util.Vector getAssignedShopperGroups()
public java.lang.Integer getCalCodeId()
getCalCodeId
in interface CreateCouponDiscountCmd
public java.lang.String getCode()
public java.lang.String getCurrency()
public java.lang.String getDescription()
public java.util.Vector getDiscountValueVector()
public java.lang.Integer getDiscSubType()
public java.lang.Integer getDiscType()
public java.sql.Timestamp getEndTimestamp()
public java.lang.Integer getGroupBy()
public java.lang.Integer getLangId()
public java.util.Vector getProduct()
public java.util.Vector getRangeFromVector()
public java.lang.Integer getRangeType()
public java.sql.Timestamp getStartTimestamp()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public void performExecute() throws ECSystemException, ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- Thown if any EJB related exception occurs.ECSystemException
- Thown if parameter related exception occurs.public void setAdminDescription(java.lang.String newAdminDescription)
setAdminDescription
in interface CreateCouponDiscountCmd
newDescription
- The new description to be assignedpublic void setAllShoppers(boolean newAllShoppers)
setAllShoppers
in interface CreateCouponDiscountCmd
newAllShoppers
- true if all shopper can avail this discountpublic void setAssignedShopperGroups(java.util.Vector newAssignedShopperGroups)
setAssignedShopperGroups
in interface CreateCouponDiscountCmd
newAssignedShopperGroups
- The shopper group that can avail this discount.public void setCalCodeId(java.lang.Integer newCalCodeId)
newCalCodeId
- ID of the calcode.public void setCategory(java.util.Vector newCategory)
setCategory
in interface CreateCouponDiscountCmd
paramCategory
- The categories to be included in the catgpcalcd table.public void setCode(java.lang.String newCode)
setCode
in interface CreateCouponDiscountCmd
newCode
- The name of this calculation code.public void setCurrency(java.lang.String newCurrency)
setCurrency
in interface CreateCouponDiscountCmd
newCurrency
- Name of the currency for this calculation code.public void setDescription(java.lang.String newDescription)
setDescription
in interface CreateCouponDiscountCmd
newDescription
- description of the calculation codepublic void setDiscountValueVector(java.util.Vector newDiscountValueVector)
setDiscountValueVector
in interface CreateCouponDiscountCmd
newDiscountValueVector
- represents the discounts to be givenpublic void setDiscSubType(java.lang.Integer newDiscSubType)
setDiscSubType
in interface CreateCouponDiscountCmd
newDiscSubType
- 0 - percentage discount, 1 - fixed amount discount.public void setDiscType(java.lang.Integer newDiscType)
setDiscType
in interface CreateCouponDiscountCmd
newDiscType
- 0 - order level discount, 1 - order item level discount.public void setEndTimestamp(java.sql.Timestamp newEndTimestamp)
setEndTimestamp
in interface CreateCouponDiscountCmd
newEndTimestamp
- The time when the discount becomes invalid.public void setGroupBy(java.lang.Integer newGroupBy)
setGroupBy
in interface CreateCouponDiscountCmd
newGroupBy
- Indicate whether to group or not.public void setHasDateTimeRange(boolean newHasDateTimeRange)
setHasDateTimeRange
in interface CreateCouponDiscountCmd
new_hasDateTimeRange
- true if there is a dateTimeRange.public void setLangId(java.lang.Integer newLangId)
newLangId
- ID of the language.public void setProduct(java.util.Vector newProduct)
setProduct
in interface CreateCouponDiscountCmd
newProduct
- The products to be put in the Catentcalcd table.public void setRangeFromVector(java.util.Vector newRangeFromVector)
setRangeFromVector
in interface CreateCouponDiscountCmd
newRangeFromVector
- Useful for range claculation code.public void setRangeType(java.lang.Integer newRangeType)
setRangeType
in interface CreateCouponDiscountCmd
newRangeType
- Indicates the range type.public void setStartTimestamp(java.sql.Timestamp newStartTimestamp)
setStartTimestamp
in interface CreateCouponDiscountCmd
newStartTimestamp
- The time when the calculation code becomes effective.public void setStoreId(java.lang.Integer newStoreId)
newStoreId
- The ID of the store.