public class DefaultPromotionContextFactory extends java.lang.Object implements PromotionContextFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright
|
Constructor and Description |
---|
DefaultPromotionContextFactory()
Constructor
|
Modifier and Type | Method and Description |
---|---|
PromotionContext | createContext(PromotionEngine engine, PromotionArgument argument)
Creates PromotionContext.
|
void | fromXML(org.w3c.dom.Node node)
Transforms the XML node into its corresponding real Object.
|
protected void | loadRewardOptions(PromotionContext context)
Load all existing promotion reward option data for the order.
|
protected java.util.Hashtable | resolvePromotionCodes(PromotionContext context)
Resolves promotion codes
|
protected java.util.Hashtable | retrieveCoupons(PromotionContext context)
Retrieves coupons entered for this order.
|
java.lang.String | toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public DefaultPromotionContextFactory()
protected java.util.Hashtable retrieveCoupons(PromotionContext context)
protected void loadRewardOptions(PromotionContext context)
public PromotionContext createContext(PromotionEngine engine, PromotionArgument argument)
protected java.util.Hashtable resolvePromotionCodes(PromotionContext context)
public void fromXML(org.w3c.dom.Node node) throws DeXMLizationException
public java.lang.String toXML() throws XMLizationException