com.ibm.commerce.marketing.promotion.runtime

Class DefaultAgendaBuilder

  • java.lang.Object
    • com.ibm.commerce.marketing.promotion.runtime.DefaultAgendaBuilder
  • All Implemented Interfaces:
    com.ibm.commerce.marketing.promotion.runtime.CacheablePromotionExecutionAgendaBuilder, PromotionExecutionAgendaBuilder, XMLizable, java.io.Serializable


    public class DefaultAgendaBuilder
    extends java.lang.Object
    implements com.ibm.commerce.marketing.promotion.runtime.CacheablePromotionExecutionAgendaBuilder
    The class provides an implementation of the 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>
     
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright
    • Constructor Summary

      Constructors 
      Constructor and Description
      DefaultAgendaBuilder()
      Constructor for DefaultAgendaBuilder.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultAgendaBuilder

        public DefaultAgendaBuilder()
        Constructor for DefaultAgendaBuilder.
    • Method Detail

      • addTemplate

        public void addTemplate(Template aTemplate)
        Add a template to the default agenda builder
        Parameters:
        aTemplate - The template to add for the default agenda builder
      • refresh

        public void refresh()
        Specified by:
        refresh in interface com.ibm.commerce.marketing.promotion.runtime.CacheablePromotionExecutionAgendaBuilder
        See Also:
        CacheablePromotionExecutionAgendaBuilder.refresh()