public class DefaultAgendaBuilder
extends java.lang.Object
implements com.ibm.commerce.marketing.promotion.runtime.CacheablePromotionExecutionAgendaBuilder
PromotionExecutionAgendaBuilder
. This agenda builder does not
support B2B business models. It is intended to be used with a store that has
small number of active promotions.
XML Snippet of DefaultAgendaBuilder:
<PromotionExecutionAgendaBuilder impl="com.ibm.commerce.marketing.promotion.runtime.DefaultAgendaBuilder"> <InvocationTemplates> <Template> <TemplateKey> <StoreKey> <DN>o=root organization</DN> <Identifier>NullEntity</Identifier> </StoreKey> <Name>All Promotions</Name> </TemplateKey> <MonetaryValuePresence> <Price>true</Price> <ShippingCharge>false</ShippingCharge> <Tax>false</Tax> <ShippingTax>false</ShippingTax> </MonetaryValuePresence> <PromotionGroupKey> <StoreKey> <DN>o=root organization</DN> <Identifier>NullEntity</Identifier> </StoreKey> <GroupName>ProductLevelPromotion</GroupName> </PromotionGroupKey> <PromotionGroupKey> <StoreKey> <DN>o=root organization</DN> <Identifier>NullEntity</Identifier> </StoreKey> <GroupName>OrderLevelPromotion</GroupName> </PromotionGroupKey> <PromotionGroupKey> <StoreKey> <DN>o=root organization</DN> <Identifier>NullEntity</Identifier> </StoreKey> <GroupName>ShippingPromotion</GroupName> </PromotionGroupKey> </Template> <Template> <TemplateKey> <StoreKey> <DN>o=root organization</DN> <Identifier>NullEntity</Identifier> </StoreKey> <Name>Order Level Promotion</Name> </TemplateKey> <MonetaryValuePresence> <Price>true</Price> <ShippingCharge>false</ShippingCharge> <Tax>false</Tax> <ShippingTax>false</ShippingTax> </MonetaryValuePresence> <PromotionGroupKey> <StoreKey> <DN>o=root organization</DN> <Identifier>NullEntity</Identifier> </StoreKey> <GroupName>OrderLevelPromotion</GroupName> </PromotionGroupKey> </Template> </InvocationTemplates> </PromotionExecutionAgendaBuilder>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
Constructor and Description |
---|
DefaultAgendaBuilder()
Constructor for DefaultAgendaBuilder.
|
Modifier and Type | Method and Description |
---|---|
void |
addTemplate(Template aTemplate)
Add a template to the default agenda builder
|
PromotionExecutionAgenda |
buildAgenda(PromotionEngine engine,
PromotionArgument arg)
Builds a promotion execution agenda
|
void |
fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
void |
refresh() |
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public DefaultAgendaBuilder()
public PromotionExecutionAgenda buildAgenda(PromotionEngine engine, PromotionArgument arg)
PromotionExecutionAgendaBuilder
buildAgenda
in interface PromotionExecutionAgendaBuilder
engine
- the promotion engine which is invokedarg
- the promotion argument objectcom.ibm.commerce.marketing.promotion.runtime.PromotionExecutionAgendaBuilder#buildAgenda(PromotionEngine,
PromotionArgument, String)
public java.lang.String toXML() throws XMLizationException
XMLizable
toXML
in interface XMLizable
XMLizationException
- when this process failsXMLizable.toXML()
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
XMLizable
fromXML
in interface XMLizable
anXMLNode
- The node that represents an XMLizable objectDeXMLizationException
- when this process failsXMLizable.fromXML(Node)
public void addTemplate(Template aTemplate)
aTemplate
- The template to add for the default agenda builderpublic void refresh()
refresh
in interface com.ibm.commerce.marketing.promotion.runtime.CacheablePromotionExecutionAgendaBuilder
CacheablePromotionExecutionAgendaBuilder.refresh()