com.ibm.commerce.tools.promotions
Interface CreateDiscountCmd

All Superinterfaces:
ECCommand, TaskCommand
All Known Implementing Classes:
CreateDiscountCmdImpl

public interface CreateDiscountCmd
extends TaskCommand

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

defaultCommandClassName

public static final 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.

Name

public static final java.lang.String Name
Provide current Interface Name.
Method Detail

setAdminDescription

public void setAdminDescription(java.lang.String newDescription)
Assign the Administration description from GUI, this will be displayed on the dynamic list as well.

setAllShoppers

public void setAllShoppers(boolean newAllShoppers)
If the newAllShoppers is true, then this discount will effect all the shoppers, otherwise, specify a group or groups.

setAssignedShopperGroups

public void setAssignedShopperGroups(java.util.Vector newAssignedShopperGroups)
Privide a Vector of shopper group objects.

setCode

public void setCode(java.lang.String code)
A character string that uniquely identifies this CalculationCode, given a particular CalculationUsage and StoreEntity.

setCurrency

public void setCurrency(java.lang.String newCurrency)
Assign the currency to current discount.

setDescription

public 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. Also, from store page, it should be displayed.

setDiscountValueVector

public 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.

setDiscSubType

public 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.

setDiscType

public 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.

setEndTimestamp

public 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.

setGroupBy

public void setGroupBy(java.lang.Integer newGroupBy)
Assign the propetiy GroupBy, currently no group by.

setHasDateTimeRange

public void setHasDateTimeRange(boolean newHasDateTimeRange)
This will be assigned to true if there is a discount effection period exists, otherwise, false.

setRangeFromVector

public void setRangeFromVector(java.util.Vector newRangeFromVector)
Privide a Vector of discount range start values from GUI if the discount is a multi range discount.

setRangeType

public void setRangeType(java.lang.Integer newRangeType)
Assign the value of range type from GUI. If 0 means currency range type, 1 means quantity range type.

setStartTimestamp

public 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.