com.ibm.commerce.tools.epromotion

Class RLPromotionFactory

  • java.lang.Object
    • com.ibm.commerce.tools.epromotion.RLPromotionFactory


  • public class RLPromotionFactory
    extends java.lang.Object
    Representing a RLPromotion Factory.
    • Field Summary

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

      Constructors 
      Constructor and Description
      RLPromotionFactory()
      Default constructor for RLPromotionFactory.
      RLPromotionFactory(java.util.Properties newFactoryClassMap)
      Constructor for RLPromotionFactory.
    • Field Detail

      • COPYRIGHT

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

      • RLPromotionFactory

        public RLPromotionFactory()
        Default constructor for RLPromotionFactory.
      • RLPromotionFactory

        public RLPromotionFactory(java.util.Properties newFactoryClassMap)
        Constructor for RLPromotionFactory.
        Parameters:
        newFactoryClassMap - java.util.Properties
    • Method Detail

      • createRLPromotion

        public RLPromotion createRLPromotion(java.lang.String rlPromotionType,
                                             java.lang.String xmlString)
        createRLPromotion creates an object which represents a discrete discount or product promotion type. The object returned must derive from the RLPromotion abstract class, which contains all metadata for the discount or product promotion types. This RLPromotion object is populated from XML String.
        Parameters:
        rlPromotionType - String
        xmlString - String
        Returns:
        com.ibm.commerce.tools.epromotion.RLPromotion
      • createRLPromotion

        public RLPromotion createRLPromotion(java.lang.String rlPromotionType,
                                             java.util.Map parameters)
        createRLPromotion creates an object which represents a discrete discount or product promotion type. The object returned must derive from the RLPromotion abstract class, which contains all metadata for the discount or product promotion types.
        Parameters:
        rlPromotionType - java.lang.String
        parameters - A map.
        Returns:
        com.ibm.commerce.tools.epromotion.RLPromotion
      • retrieveFromComponentConfiguration

        public static RLPromotionFactory retrieveFromComponentConfiguration()
        Retrieve the RLPromotionFactory from the RLPromotionComponentConfiguration.
        Returns:
        com.ibm.commerce.tools.epromotion.RLPromotionFactory