com.ibm.commerce.marketing.promotion.code

Interface PromotionCodeResolver

  • All Superinterfaces:
    java.io.Serializable, XMLizable
    All Known Subinterfaces:
    PromotionCodeManager

    Deprecated. 
    replaced by GenericPromotionCodeResolver

    public interface PromotionCodeResolver
    extends XMLizable
    Based on the predefined promotion code generation rule, resolve all the information this promotion code carrying.
    • Field Detail

      • COPYRIGHT

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

      • resolve

        PromotionKey resolve(java.lang.String code,
                             java.util.Hashtable NVP)
                      throws PromotionApplicationException
        Deprecated. 
        Resolves a promotion code to a promotion. A name value pair style parameters can be passed in. The implementor is responsible for checking whether the needed parameters are passed in as required. This is for customization purposes. This method is often used when promotion codes are evaluated. The reason the other resolve method is not used is because it needs a PromotionContext object, which may not be available at the time codes are validated.
        Parameters:
        code - the code
        NVP - custom properties passed to the resolver for promotion code resolution.
        Returns:
        the key to the promotion which is identified by this promotion code
        Throws:
        PromotionApplicationException