|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.tools.promotions.CreateDiscountCmdImpl
This task command which implements CreateDiscountCmd interface is creating a discount
Field Summary | |
protected java.lang.String |
adminDescription
|
protected boolean |
allShoppers
|
protected java.util.Vector |
assignedShopperGroups
|
protected java.lang.Integer |
calCodeId
|
protected java.lang.Integer |
calRuleId
|
protected java.lang.Integer |
calScaleId
|
protected java.lang.String |
code
|
static java.lang.String |
COPYRIGHT
|
protected java.lang.String |
currency
|
protected java.lang.String |
description
|
protected java.util.Vector |
discountValueVector
|
protected java.lang.Integer |
discSubType
|
protected java.lang.Integer |
discType
|
protected java.sql.Timestamp |
endTimestamp
|
protected java.lang.Integer |
groupBy
|
protected boolean |
hasDateTimeRange
|
protected java.lang.Integer |
langId
|
protected java.util.Vector |
rangeFromVector
|
protected java.lang.Integer |
rangeType
|
protected java.sql.Timestamp |
startTimestamp
|
protected java.lang.Integer |
storeId
|
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.tools.promotions.CreateDiscountCmd |
defaultCommandClassName, Name |
Fields inherited from interface com.ibm.commerce.tools.promotions.ECPromotionsConstants |
BY_AMOUNT_PER_UNIT, BY_FIXED_AMOUNT, BY_PERCENTAGE, CONTRACT_DISPLAY, CUMULATIVE_FALSE, CURRENCY_RANGE, DISCOUNT_PUBLISHED, DISCOUNT_RESOURCES, DO_NOT_GROUP, EC_Calcode_Id, EC_Code, EC_EndDate, EC_Orderby, EC_Range_Max, EC_StartDate, EC_Status, ERROR_DISCOUNT_APPLIED, ERROR_DISCOUNT_DUPLICATE_CODE, ERROR_DISCOUNT_NOT_SAVED, ITEM_DISPLAY, MSG_DISCOUNT_APPLIED, MSG_DISCOUNT_SAVED, ORDER_DISPLAY, ORDER_LEVEL, ORDERITEM_DISPLAY, PRODUCT_DISPLAY, PRODUCT_LEVEL, QTY_RANGE, REST_OF_TIMESTRING, ZERO_STRING |
Constructor Summary | |
CreateDiscountCmdImpl()
Create a Discount Object. |
Method Summary | |
void |
createCalCodeBean()
Create and populate the calCodeBean |
void |
createCalCodeMgpBean()
Create and populate calcodeMgp Bean |
void |
createCalDescBean()
Create and populate the calDescBean |
void |
createCalRangeBean()
Create and populate the calRangeBean |
void |
createCalRuleBean()
Create and populate the calRuleBean |
void |
createCalRuleMgpBean()
Create and populate the calRuleMgpBean |
void |
createCalRuleScaleBean()
Create and populate the calRuleScaleBean |
void |
createCalScaleBean()
Create and populate the calScaleBean |
void |
createCatencalcd()
Create and populate CatalogEntryCalculationCode Bean. |
java.lang.String |
getAdminDescription()
Provide the property Administration Description. |
java.util.Vector |
getAssignedShopperGroups()
Provide the property assignedShopperGroups. |
java.lang.Integer |
getCalCodeId()
Provide the property Calculation Code. |
java.lang.String |
getCode()
Provide the property Code, A character string that uniquely identifies this CalculationCode. |
java.lang.String |
getCurrency()
Provide the property Currency. |
java.lang.String |
getDescription()
Provide the property Shopper's Description. |
java.util.Vector |
getDiscountValueVector()
Provide the property Discount Values. |
java.lang.Integer |
getDiscSubType()
Provide the subtypes of discount. |
java.lang.Integer |
getDiscType()
Provide the property Discount Type. |
java.sql.Timestamp |
getEndTimestamp()
Provide the property End Timestamp of the discount Obj. |
java.lang.Integer |
getGroupBy()
Provide the property GroupBy. |
java.lang.Integer |
getLangId()
Provide the property Language ID. |
java.util.Vector |
getRangeFromVector()
Vector of the values that each Discount Range starts from. |
java.lang.Integer |
getRangeType()
Provide the property Discount Range type. |
java.sql.Timestamp |
getStartTimestamp()
Provide the property Start Timestamp of the discount Obj. |
boolean |
isReadyToCallExecute()
isReadyToCallExecute method is called by the Targetable Command frame work This is where client side parameter checking is performed before the execution of the command. |
void |
performExecute()
Task command execution method, doing the actual work, populating the tables, creating objects. |
void |
setAdminDescription(java.lang.String newAdminDescription)
set the property Administration Description. |
void |
setAllShoppers(boolean newAllShoppers)
set the property allShoppers, if the discount is for all shoppers, this will be set to true. |
void |
setAssignedShopperGroups(java.util.Vector newAssignedShopperGroups)
set the property assignedShopperGroups |
void |
setCalCodeId(java.lang.Integer newCalCodeId)
Set the property Calculation Code ID. |
void |
setCode(java.lang.String newCode)
Set the property code. |
void |
setCurrency(java.lang.String newCurrency)
Set the property Currency. |
void |
setDescription(java.lang.String newDescription)
Set the property Shopper's Description. |
void |
setDiscountValueVector(java.util.Vector newDiscountValueVector)
Set the property DiscountValueVector. |
void |
setDiscSubType(java.lang.Integer newDiscSubType)
Set the property Discount Sub-Type. |
void |
setDiscType(java.lang.Integer newDiscType)
Set the property Discount Type. |
void |
setEndTimestamp(java.sql.Timestamp newEndTimestamp)
Set the property EndTimestamp. |
void |
setGroupBy(java.lang.Integer newGroupBy)
Set the property GroupBy. |
void |
setHasDateTimeRange(boolean newHasDateTimeRange)
Set the property hasDateTimeRange, this will be true if the Discount Obj has the Time Limit or Schedule. |
void |
setLangId(java.lang.Integer newLangId)
Set the property LanguageId, this method will be removed in release. |
void |
setRangeFromVector(java.util.Vector newRangeFromVector)
Set the property RangeFromVector. |
void |
setRangeType(java.lang.Integer newRangeType)
Set the property Range Type. |
void |
setStartTimestamp(java.sql.Timestamp newStartTimestamp)
Set the property startTimestamp. |
void |
setStoreId(java.lang.Integer newStoreId)
Set the property storeId, this method will be removed in next release. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Field Detail |
protected java.lang.String adminDescription
protected boolean allShoppers
protected java.util.Vector assignedShopperGroups
protected java.lang.Integer calCodeId
protected java.lang.Integer calRuleId
protected java.lang.Integer calScaleId
protected java.lang.String code
public static final java.lang.String COPYRIGHT
protected java.lang.String currency
protected java.lang.String description
protected java.util.Vector discountValueVector
protected java.lang.Integer discSubType
protected java.lang.Integer discType
protected java.sql.Timestamp endTimestamp
protected java.lang.Integer groupBy
protected boolean hasDateTimeRange
protected java.lang.Integer langId
protected java.util.Vector rangeFromVector
protected java.lang.Integer rangeType
protected java.sql.Timestamp startTimestamp
protected java.lang.Integer storeId
Constructor Detail |
public CreateDiscountCmdImpl()
Method Detail |
public void createCalCodeBean() throws ECSystemException
public void createCalCodeMgpBean() throws ECSystemException
public void createCalDescBean() throws ECSystemException
public void createCalRangeBean() throws ECSystemException
public void createCalRuleBean() throws ECSystemException
public void createCalRuleMgpBean() throws ECSystemException
public void createCalRuleScaleBean() throws ECSystemException
public void createCalScaleBean() throws ECSystemException
public void createCatencalcd() throws ECSystemException
ECSystemException
- If error exists during creation.public java.lang.String getAdminDescription()
public java.util.Vector getAssignedShopperGroups()
public java.lang.Integer getCalCodeId()
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 getRangeFromVector()
public java.lang.Integer getRangeType()
public java.sql.Timestamp getStartTimestamp()
public boolean isReadyToCallExecute()
AbstractECCommand
isReadyToCallExecute
in class AbstractECCommand
com.ibm.commerce.command.AbstractECCommand
public void performExecute() throws ECSystemException, ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void setAdminDescription(java.lang.String newAdminDescription)
setAdminDescription
in interface CreateDiscountCmd
newDescription
- java.lang.Stringpublic void setAllShoppers(boolean newAllShoppers)
setAllShoppers
in interface CreateDiscountCmd
newAllShoppers
- booleanpublic void setAssignedShopperGroups(java.util.Vector newAssignedShopperGroups)
setAssignedShopperGroups
in interface CreateDiscountCmd
newAssignedShopperGroups
- Vectorpublic void setCalCodeId(java.lang.Integer newCalCodeId)
newCalCodeId
- java.lang.Integerpublic void setCode(java.lang.String newCode)
setCode
in interface CreateDiscountCmd
newCode
- java.lang.Stringpublic void setCurrency(java.lang.String newCurrency)
setCurrency
in interface CreateDiscountCmd
newCurrency
- java.lang.Stringpublic void setDescription(java.lang.String newDescription)
setDescription
in interface CreateDiscountCmd
newDescription
- java.lang.Stringpublic void setDiscountValueVector(java.util.Vector newDiscountValueVector)
setDiscountValueVector
in interface CreateDiscountCmd
newDiscountValueVector
- java.util.Vectorpublic void setDiscSubType(java.lang.Integer newDiscSubType)
setDiscSubType
in interface CreateDiscountCmd
newDiscSubType
- java.lang.Integerpublic void setDiscType(java.lang.Integer newDiscType)
setDiscType
in interface CreateDiscountCmd
newDiscType
- java.lang.Integerpublic void setEndTimestamp(java.sql.Timestamp newEndTimestamp)
setEndTimestamp
in interface CreateDiscountCmd
newEndTimestamp
- java.sql.Timestamppublic void setGroupBy(java.lang.Integer newGroupBy)
setGroupBy
in interface CreateDiscountCmd
newGroupBy
- java.lang.Integerpublic void setHasDateTimeRange(boolean newHasDateTimeRange)
setHasDateTimeRange
in interface CreateDiscountCmd
new_hasDateTimeRange
- booleanpublic void setLangId(java.lang.Integer newLangId)
newLangId
- java.lang.Integerpublic void setRangeFromVector(java.util.Vector newRangeFromVector)
setRangeFromVector
in interface CreateDiscountCmd
newRangeFromVector
- java.util.Vectorpublic void setRangeType(java.lang.Integer newRangeType)
setRangeType
in interface CreateDiscountCmd
newRangeType
- java.lang.Integerpublic void setStartTimestamp(java.sql.Timestamp newStartTimestamp)
setStartTimestamp
in interface CreateDiscountCmd
newStartTimestamp
- java.sql.Timestamppublic void setStoreId(java.lang.Integer newStoreId)
newStoreId
- java.lang.Integer
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |