public class DummyPromotionPolicy extends java.lang.Object implements PromotionPolicy
Constructor and Description |
---|
DummyPromotionPolicy()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean | apply(PromotionContext context, PromotionExecutionRecord record)
This method does not do anything and returns a value of true always.
|
void | fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
java.lang.String | getDescription(java.util.Locale locale, int type)
Returns the description of the promotion policy based on its type and locale.
|
PromotionPolicyKey | getKey()
Returns the key of this promotion policy
|
int | getStatus()
Returns the status.
|
void | setKey(PromotionPolicyKey akey)
Sets the key.
|
void | setStatus(int aStatus)
Sets the status.
|
java.lang.String | toXML()
Converts the object into its corresponding XML format representation.
|
public PromotionPolicyKey getKey()
public java.lang.String getDescription(java.util.Locale locale, int type)
public boolean apply(PromotionContext context, PromotionExecutionRecord record) throws PromotionPolicyApplicationException
public java.lang.String toXML() throws XMLizationException
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
public void setKey(PromotionPolicyKey akey)
public int getStatus()
public void setStatus(int aStatus)