public interface PromotionPolicy extends XMLizable
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright
|
static int | POLICY_STATUS_ACTIVE
Value of the status of a promotion policy to indicate that it is active.
|
static int | POLICY_STATUS_DELETED
Value of the status of a promotion policy to indicate that it is marked for deletion.
|
static int | POLICY_STATUS_INACTIVE
Value of the status of a promotion policy to indicate that it is inactive.
|
Modifier and Type | Method and Description |
---|---|
boolean | apply(PromotionContext context, PromotionExecutionRecord record)
This method is used to apply the policy to a promotion to deem if any violation is found on application.
|
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 of this promotion policy
|
void | setKey(PromotionPolicyKey key)
Sets the key of this promotion policy
|
void | setStatus(int newStatus)
Sets the status of a promotion policy.
|
static final java.lang.String COPYRIGHT
static final int POLICY_STATUS_ACTIVE
static final int POLICY_STATUS_INACTIVE
static final int POLICY_STATUS_DELETED
PromotionPolicyKey getKey()
java.lang.String getDescription(java.util.Locale locale, int type)
boolean apply(PromotionContext context, PromotionExecutionRecord record) throws PromotionPolicyApplicationException
int getStatus()
void setStatus(int newStatus)
void setKey(PromotionPolicyKey key)