java.lang.Object | +--com.ibm.commerce.tools.epromotion.RLPromotion
The promotion class is an object used to hold all of the information associated with a particular ePromotion created in the User Interface. It is intended to be extended by customers who wish to create and support their own ePromotion types.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Constructor Summary | |
---|---|
RLPromotion() Default constructor of this class |
Method Summary | |
---|---|
abstract
java.lang.String |
generatePromotionLevelSpecificRuleXML() Generate promotion level specific rule XML, has to be implemented by sub type. |
abstract
java.lang.String |
generatePromotionSpecificRuleXML() Generate promotion specific rule XML, has to be implemented by sub type. |
java.lang.String |
generateRuleXML() Generates and returns the XML to represent a promotion |
java.util.Vector |
getAssignedSegments() Get the assignedSegments |
java.lang.String |
getCurrency() Get the currency |
java.util.Vector |
getDayInWeek() Get the daysInWeek |
java.util.Vector |
getDaysInWeek() Gets the daysInWeek |
java.lang.String |
getDescription() Get the description |
java.lang.String |
getDescriptionLongNL() Get the customers viewable long description (tranlsation-enabled). |
java.lang.String |
getDescriptionNL() Return the customers viewable description (tranlsation-enabled). |
java.sql.Timestamp |
getEndTimeStamp() Get the promotion end timestamp |
java.lang.String |
getName() Get the promotion name |
int |
getPriority() Get the promotion priority |
abstract
java.lang.Integer |
getPromotionDisplayLevel() Get the promotion display level |
java.lang.String |
getRlPromotionType() Gets the rlPromotionType |
java.lang.String |
getRLPromotionType() Get promotion type |
java.sql.Timestamp |
getStartTimeStamp() Get promotion start timestamp |
int |
getStatus() Get promotion status |
java.lang.String |
getTargetSalesFigure() Get promotion target sales |
boolean |
isDateRanged() Check if the promotion is scheduled by date |
boolean |
isTimeRanged() Check if the promotion is scheduled by time |
boolean |
isValidForAllCustomers() Check if the promotion is valid for all customers |
protected
void |
populateFrom(java.util.Map h) PopulateFrom is used to tell an RLPromotion to populate itself from a Map. |
void |
populateFrom(java.lang.String xmlString) PopulateFrom(xmlString) is used to provide an RLPromotion method to populate itself from a XML String. |
abstract
void |
populatePromotionLevelSpecificDataFrom(java.util.Map h) Populate promotion level specific data for itself from a Map. |
abstract
void |
populatePromotionLevelSpecificDataFrom(java.lang.String xmlString) Populate promotion level specific data for itself from XML String. |
abstract
void |
populatePromotionSpecificDataFrom(java.util.Map h) Populate promotion specific data for itself from a Map. |
abstract
void |
populatePromotionSpecificDataFrom(java.lang.String xmlString) Populate promotion specific data for itself from XML String. |
void |
setAssignedSegments(java.util.Vector newAssignedSegments) Sets the assignedSegments |
void |
setCurrency(java.lang.String newCurrency) Sets the currency |
void |
setDaysInWeek(java.util.Vector newDaysInWeek) Sets the daysInWeek |
void |
setDescription(java.lang.String newDesc) Because the description is stored in the CalcoDesc table, it has to be set outside of 'populate' method. |
void |
setDescriptionLongNL(java.lang.String newDescriptionLongNL) Because the descriptionLongNL is stored in the Calcodedsc table, it has to be set outside of 'populate' method. |
void |
setDescriptionNL(java.lang.String newDescNL) Because the descriptionNL is stored in the Calcodedsc table, it has to be set outside of 'populate' method. |
void |
setEndTimeStamp(java.sql.Timestamp newEndTimeStamp) Sets the endTimeStamp |
void |
setName(java.lang.String newDiscountName) Set the name of the Discount. |
void |
setPriority(int newPriority) Sets the priority |
void |
setRlPromotionType(java.lang.String newRlPromotionType) Sets the rlPromotionType |
void |
setStartTimeStamp(java.sql.Timestamp newStartTimeStamp) Sets the startTimeStamp |
void |
setStatus(int newStatus) Sets the status |
void |
setTargetSalesFigure(java.lang.String newTargetSalesFigure) targetSalesFigure is not stored in the XML string, it has to be set outside of 'populate' method. |
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
Constructor Detail |
---|
public RLPromotion()
Method Detail |
---|
public abstract java.lang.String generatePromotionLevelSpecificRuleXML()
public abstract java.lang.String generatePromotionSpecificRuleXML()
public java.lang.String generateRuleXML()
public java.util.Vector getAssignedSegments()
public java.lang.String getCurrency()
public java.util.Vector getDayInWeek()
public java.lang.String getDescription()
public java.lang.String getDescriptionLongNL()
public java.lang.String getDescriptionNL()
public java.sql.Timestamp getEndTimeStamp()
public java.lang.String getName()
public int getPriority()
public abstract java.lang.Integer getPromotionDisplayLevel()
public java.lang.String getRLPromotionType()
public java.sql.Timestamp getStartTimeStamp()
public int getStatus()
public java.lang.String getTargetSalesFigure()
public boolean isDateRanged()
public boolean isTimeRanged()
public boolean isValidForAllCustomers()
public void populateFrom(java.lang.String xmlString) throws ParameterNotFoundException, java.text.ParseException
ParameterNotFoundException
java.text.ParseException
protected void populateFrom(java.util.Map h) throws ParameterNotFoundException, java.text.ParseException
h
- java.util.Hashtable
ParameterNotFoundException
java.text.ParseException
public abstract void populatePromotionLevelSpecificDataFrom(java.lang.String xmlString) throws ParameterNotFoundException
ParameterNotFoundException
public abstract void populatePromotionLevelSpecificDataFrom(java.util.Map h) throws ParameterNotFoundException
h
- java.util.Map
ParameterNotFoundException
public abstract void populatePromotionSpecificDataFrom(java.lang.String xmlString) throws ParameterNotFoundException
ParameterNotFoundException
public abstract void populatePromotionSpecificDataFrom(java.util.Map h) throws ParameterNotFoundException
h
- java.util.Map
ParameterNotFoundException
public void setDescription(java.lang.String newDesc)
public void setDescriptionLongNL(java.lang.String newDescriptionLongNL)
newDescriptionLongNL
- java.lang.Stringpublic void setDescriptionNL(java.lang.String newDescNL)
public void setName(java.lang.String newDiscountName)
newDiscountName
- java.lang.Stringpublic void setTargetSalesFigure(java.lang.String newTargetSalesFigure)
public void setAssignedSegments(java.util.Vector newAssignedSegments)
public void setCurrency(java.lang.String newCurrency)
public java.util.Vector getDaysInWeek()
public void setDaysInWeek(java.util.Vector newDaysInWeek)
public void setEndTimeStamp(java.sql.Timestamp newEndTimeStamp)
public void setPriority(int newPriority)
public java.lang.String getRlPromotionType()
public void setRlPromotionType(java.lang.String newRlPromotionType)
public void setStartTimeStamp(java.sql.Timestamp newStartTimeStamp)
public void setStatus(int newStatus)