com.ibm.commerce.tools.epromotion
Class RLSingleRangeProductLevelPromotion

java.lang.Object
  |
  +--com.ibm.commerce.tools.epromotion.RLPromotion
        |
        +--com.ibm.commerce.tools.epromotion.RLProductLevelPromotion
              |
              +--com.ibm.commerce.tools.epromotion.RLSingleRangeProductLevelPromotion
All Implemented Interfaces:
RLConstants
Direct Known Subclasses:
ProductLevelBuyXGetYFree, ProductLevelOtherItemPercentDiscount, ProductLevelOtherItemValueDiscount

public abstract class RLSingleRangeProductLevelPromotion
extends RLProductLevelPromotion

This class represents a single ranged product level promotion


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Fields inherited from interface com.ibm.commerce.tools.epromotion. RLConstants
CATEGORY_LEVEL_DISPLAY_FLAG, DISCOUNT_DEPLOYMENT, EC_CALCODE_ID, EC_CODE, EC_DESCRIPTION, EC_DISCOUNTNAME, EC_ENDDATE, EC_ORDERBY, EC_PRIORITY, EC_RANGE_MAX, EC_STARTDATE, EC_STATUS, ERROR_PROMOTION_DELETED_DUPLICATE_CODE, ERROR_PROMOTION_DUPLICATE_CODE, ERROR_PROMOTION_NOT_SAVED, ERROR_PROMOTION_NOT_UPDATED, MSG_PROMOTION_SAVED, MSG_PROMOTION_UPDATED, NEVER_EXPIRE, ORDER_LEVEL_DISPLAY_FLAG, PRODUCT_LEVEL_DISPLAY_FLAG, REST_OF_TIMESTRING, RLPROMOTION, RLPROMOTION_ASSIGNEDSEGMENTS, RLPROMOTION_CATEGORYLEVELBUYXGETYFREE, RLPROMOTION_CATEGORYLEVELPERCENTDISCOUNT, RLPROMOTION_CATEGORYLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_CATEGORYLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_CATEGORYLEVELVALUEDISCOUNT, RLPROMOTION_CATENTRY_ID, RLPROMOTION_CATENTRY_TYPE, RLPROMOTION_CATGROUP_CODE, RLPROMOTION_CATGROUP_ID, RLPROMOTION_CURRENCY, RLPROMOTION_DATERANGED, RLPROMOTION_DAYSINWEEK, RLPROMOTION_DESCRIPTION, RLPROMOTION_DESCRIPTION_LONG_NL, RLPROMOTION_DESCRIPTION_NL, RLPROMOTION_DISCOUNT_ITEM_QTY, RLPROMOTION_DISCOUNT_ITEM_SKU, RLPROMOTION_DISPLAY_LEVEL, RLPROMOTION_ENDDAY, RLPROMOTION_ENDHOUR, RLPROMOTION_ENDMONTH, RLPROMOTION_ENDYEAR, RLPROMOTION_FRIDAY, RLPROMOTION_GWP_CATENTRY_ID, RLPROMOTION_INCOMBINATIONWITH, RLPROMOTION_ISEVERYDAYFLAG, RLPROMOTION_ITEMLEVELBUYXGETYFREE, RLPROMOTION_ITEMLEVELPERCENTDISCOUNT, RLPROMOTION_ITEMLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_ITEMLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_ITEMLEVELVALUEDISCOUNT, RLPROMOTION_MAX_DISCOUNT_ITEM_QTY, RLPROMOTION_MERCHANDISE_TYPE, RLPROMOTION_MONDAY, RLPROMOTION_NAME, RLPROMOTION_ORDERLEVELFIXEDSHIPPINGDISCOUNT, RLPROMOTION_ORDERLEVELFREEGIFT, RLPROMOTION_ORDERLEVELPERCENTDISCOUNT, RLPROMOTION_ORDERLEVELVALUEDISCOUNT, RLPROMOTION_PRIORITY, RLPROMOTION_PROD_SEARCH_PAGE, RLPROMOTION_PRODUCT_SKU, RLPROMOTION_PRODUCTLEVELBUYXGETYFREE, RLPROMOTION_PRODUCTLEVELPERCENTDISCOUNT, RLPROMOTION_PRODUCTLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_PRODUCTLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_PRODUCTLEVELVALUEDISCOUNT, RLPROMOTION_RANGES, RLPROMOTION_REQUIRED_QTY, RLPROMOTION_RESOURCES, RLPROMOTION_SATURDAY, RLPROMOTION_SHIPMODEID, RLPROMOTION_STARTDAY, RLPROMOTION_STARTHOUR, RLPROMOTION_STARTMONTH, RLPROMOTION_STARTYEAR, RLPROMOTION_SUNDAY, RLPROMOTION_TARGETSALES, RLPROMOTION_THURSDAY, RLPROMOTION_TIMERANGED, RLPROMOTION_TUESDAY, RLPROMOTION_TYPE, RLPROMOTION_VALIDFORALLCUSTOMERS, RLPROMOTION_VALUE, RLPROMOTION_VALUES, RLPROMOTION_WEDNESDAY, ZERO_STRING
 
Constructor Summary
RLSingleRangeProductLevelPromotion()
          The constructor for RLSingleRangeProductLevelPromotion
 
Method Summary
 java.lang.String generatePromotionSpecificRuleXML()
          Generate promotion specific rule XML.
 java.lang.String getDiscountProductSKU()
          For User Interface displaying.
 java.lang.String getMaximumDiscountItemQuantity()
          For User Interface displaying.
 java.lang.String getRequiredQuantity()
          For User Interface displaying.
 java.lang.String getValue()
          For User Interface displaying.
abstract  java.lang.String getValueTagName()
          Get value tag name.
 void populatePromotionSpecificDataFrom(java.util.Map h)
          Populate promotion specific data from User Interface input.
 void populatePromotionSpecificDataFrom(java.lang.String xmlString)
          Populate promotion specific data from XML String.
 void setDiscountProductSKU(java.lang.String newDiscountProductSKU)
          sets discountProductSKU.
 void setMaximumDiscountItemQuantity(int newMaximumDiscountItemQuantity)
          sets the maximumDiscountItemQuantity.
 void setRequiredQuantity(int newRequiredQuantity)
          sets the requiredQuantity.
 void setValue(java.lang.String newValue)
          Sets value.
 void setValueTagName(java.lang.String newValueTagName)
          Set value tag name.
 
Methods inherited from class com.ibm.commerce.tools.epromotion. RLProductLevelPromotion
generatePromotionLevelSpecificRuleXML, getCatalogEntryIDs, getMinimumQuantityToQualifyTagName, getPromotionDisplayLevel, populatePromotionLevelSpecificDataFrom, populatePromotionLevelSpecificDataFrom, setCatalogEntryIDs
 
Methods inherited from class com.ibm.commerce.tools.epromotion. RLPromotion
generateRuleXML, getAssignedSegments, getCurrency, getDayInWeek, getDaysInWeek, getDescription, getDescriptionLongNL, getDescriptionNL, getEndTimeStamp, getName, getPriority, getRlPromotionType, getRLPromotionType, getStartTimeStamp, getStatus, getTargetSalesFigure, isDateRanged, isTimeRanged, isValidForAllCustomers, populateFrom, populateFrom, setAssignedSegments, setCurrency, setDaysInWeek, setDescription, setDescriptionLongNL, setDescriptionNL, setEndTimeStamp, setName, setPriority, setRlPromotionType, setStartTimeStamp, setStatus, setTargetSalesFigure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

RLSingleRangeProductLevelPromotion

public RLSingleRangeProductLevelPromotion()
The constructor for RLSingleRangeProductLevelPromotion
Method Detail

generatePromotionSpecificRuleXML

public java.lang.String generatePromotionSpecificRuleXML()
Generate promotion specific rule XML.
Specified by:
generatePromotionSpecificRuleXML in class RLPromotion
Returns:
java.lang.String

getValueTagName

public abstract java.lang.String getValueTagName()
Get value tag name. This has to be implemented by sub classes.
Returns:
java.lang.String

getValue

public java.lang.String getValue()
For User Interface displaying.
Returns:
java.lang.String

getRequiredQuantity

public java.lang.String getRequiredQuantity()
For User Interface displaying.
Returns:
java.lang.String

getMaximumDiscountItemQuantity

public java.lang.String getMaximumDiscountItemQuantity()
For User Interface displaying.
Returns:
java.lang.String

getDiscountProductSKU

public java.lang.String getDiscountProductSKU()
For User Interface displaying.
Returns:
java.lang.String

populatePromotionSpecificDataFrom

public void populatePromotionSpecificDataFrom(java.lang.String xmlString)
Populate promotion specific data from XML String.
Specified by:
populatePromotionSpecificDataFrom in class RLPromotion
Parameters:
xmlString - java.lang.String

populatePromotionSpecificDataFrom

public void populatePromotionSpecificDataFrom(java.util.Map h)
                                       throws ParameterNotFoundException
Populate promotion specific data from User Interface input.
Specified by:
populatePromotionSpecificDataFrom in class RLPromotion
Parameters:
h - java.util.Map
Throws:
ParameterNotFoundException

setValueTagName

public void setValueTagName(java.lang.String newValueTagName)
Set value tag name.

setValue

public void setValue(java.lang.String newValue)
Sets value.

setRequiredQuantity

public void setRequiredQuantity(int newRequiredQuantity)
sets the requiredQuantity.

setMaximumDiscountItemQuantity

public void setMaximumDiscountItemQuantity(int newMaximumDiscountItemQuantity)
sets the maximumDiscountItemQuantity.

setDiscountProductSKU

public void setDiscountProductSKU(java.lang.String newDiscountProductSKU)
sets discountProductSKU.