|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a task command for creating discounts Modification date: (7/31/00 2:58:15 PM)
Field Summary | |
static java.lang.String |
defaultCommandClassName
DefaultCommandClassName is the default implementation class used by command factory to instantiate this command if the interface com.ibm.commerce.sample.commands.MyTaskCommand is not defined in the CMDREG table. |
static java.lang.String |
Name
Provide current Interface Name. |
Fields inherited from interface com.ibm.commerce.command.TaskCommand |
COPYRIGHT |
Method Summary | |
void |
setAdminDescription(java.lang.String newDescription)
Assign the Administration description from GUI, this will be displayed on the dynamic list as well. |
void |
setAllShoppers(boolean newAllShoppers)
If the newAllShoppers is true, then this discount will effect all the shoppers, otherwise, specify a group or groups. |
void |
setAssignedShopperGroups(java.util.Vector newAssignedShopperGroups)
Privide a Vector of shopper group objects. |
void |
setCode(java.lang.String code)
A character string that uniquely identifies this CalculationCode, given a particular CalculationUsage and StoreEntity. |
void |
setCurrency(java.lang.String newCurrency)
Assign the currency to current discount. |
void |
setDescription(java.lang.String newDescription)
Assign the short description for shoppers from GUI, this won't be displayed on the dynamic list but in the summery page. |
void |
setDiscountValueVector(java.util.Vector newDiscountValueVector)
If the discount is a multi- range discount, the discount value should be a vector of values which based on the different price range or quantity range. |
void |
setDiscSubType(java.lang.Integer newDiscSubType)
Assign the discount sub type from GUI, 0 if it's by percentage, 1 if it's by fixed amount or 2 if it's by amount per unit. |
void |
setDiscType(java.lang.Integer newDiscType)
Assign the discount type from GUI, 0 if it's order level or 1 if it's product level. |
void |
setEndTimestamp(java.sql.Timestamp newEndTimestamp)
Assign the discount end timestamp from GUI if the discount effection is in such a period, it is null if the hasDateTimeRange set as false. |
void |
setGroupBy(java.lang.Integer newGroupBy)
Assign the propetiy GroupBy, currently no group by. |
void |
setHasDateTimeRange(boolean newHasDateTimeRange)
This will be assigned to true if there is a discount effection period exists, otherwise, false. |
void |
setRangeFromVector(java.util.Vector newRangeFromVector)
Privide a Vector of discount range start values from GUI if the discount is a multi range discount. |
void |
setRangeType(java.lang.Integer newRangeType)
Assign the value of range type from GUI. |
void |
setStartTimestamp(java.sql.Timestamp newStartTimestamp)
Assign the discount start timestamp from GUI, usually the date should be the current date and time will be 00:00:00 by default. |
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 defaultCommandClassName
public static final java.lang.String Name
Method Detail |
public void setAdminDescription(java.lang.String newDescription)
public void setAllShoppers(boolean newAllShoppers)
public void setAssignedShopperGroups(java.util.Vector newAssignedShopperGroups)
public void setCode(java.lang.String code)
public void setCurrency(java.lang.String newCurrency)
public void setDescription(java.lang.String newDescription)
public void setDiscountValueVector(java.util.Vector newDiscountValueVector)
public void setDiscSubType(java.lang.Integer newDiscSubType)
public void setDiscType(java.lang.Integer newDiscType)
public void setEndTimestamp(java.sql.Timestamp newEndTimestamp)
public void setGroupBy(java.lang.Integer newGroupBy)
public void setHasDateTimeRange(boolean newHasDateTimeRange)
public void setRangeFromVector(java.util.Vector newRangeFromVector)
public void setRangeType(java.lang.Integer newRangeType)
public void setStartTimestamp(java.sql.Timestamp newStartTimestamp)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |