public class MultipleCodesPromotionCodeResolver extends java.lang.Object implements GenericPromotionCodeResolver
XML Snippet of MultipleCodesPromotionCodeResolver is as follows:
<PromotionCodeResolver impl="com.ibm.commerce.marketing.promotion.code.MultipleCodesPromotionCodeResolver"> <Separator>;</Separator> </PromotionCodeResolver>
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
MultipleCodesPromotionCodeResolver()
The constructor of MultipleCodesPromotionCodeResolver.
|
Modifier and Type | Method and Description |
---|---|
protected boolean | correctCode(java.lang.String source, java.lang.String code)
Checks to see if an entered promotion code is part of the promotion codes associated with a promotion.
|
void | fromXML(org.w3c.dom.Node node)
Transforms the XML node into its corresponding real Object.
|
java.lang.String | getSeparator()
This method is used to get the delimiter used to separate different promotion codes.
|
PromotionKey[] | resolveCode(java.lang.String promotionCode, java.util.Hashtable nvp)
This method is used to get the PromotionKey of the promotions which have a promotion code same as the passed promotionCode parameter.
|
PromotionKey[] | resolveCode(java.lang.String promotionCode, PromotionContext context)
This method is used to get the PromotionKey of the promotions which have a promotion code same as the passed promotionCode parameter.
|
java.lang.String | retrievePromotionCode(PromotionKey pKey)
This method is used to retrieve the promotion code for a promotion identified by its PromotionKey.
|
void | setSeparator(java.lang.String string)
This method is used to set the delimiter used to separate different promotion codes.
|
java.lang.String | toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public MultipleCodesPromotionCodeResolver()
public java.lang.String retrievePromotionCode(PromotionKey pKey) throws PersistenceObjectReadException, PersistenceObjectNotFoundException
public PromotionKey[] resolveCode(java.lang.String promotionCode, PromotionContext context) throws PromotionApplicationException
public PromotionKey[] resolveCode(java.lang.String promotionCode, java.util.Hashtable nvp) throws PromotionApplicationException
protected boolean correctCode(java.lang.String source, java.lang.String code)
public void fromXML(org.w3c.dom.Node node) throws DeXMLizationException
public java.lang.String toXML() throws XMLizationException
public java.lang.String getSeparator()
public void setSeparator(java.lang.String string)