|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PromotionRuleExceptions
This class holds exceptions to a rule, i.e. a map of sku codes and product categories that will be excluded from a particular action. This class is passed to the PromotionRuleDelegate's action methods.
Field Summary | |
---|---|
static java.lang.String |
CATEGORY_IDS
Category UIDs. |
static char |
EXCEPTION_STRING_SEPARATOR
Exception String Separator. |
static java.lang.String |
PRODUCR_IDS
Product UID. |
static java.lang.String |
PRODUCTSKU_CODES
Product SKU codes. |
Method Summary | |
---|---|
boolean |
isCategoryExcluded(Category category)
Returns true if the specified category is a rule exception because it's category id has been specified as an exception. |
boolean |
isProductExcluded(Product product)
Returns true if the specified product is a rule exception because it's product id or category id has been specified as an exception. |
boolean |
isSkuExcluded(ProductSku productSku)
Returns true if the specified sku is a rule exception because it's sku code, product id or category id has been specified as an exception. |
void |
populateFromExceptionStr(java.lang.String exceptionStr)
Return the instance of PromotionRuleExceptions from parsing the given string representation. |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Field Detail |
---|
static final java.lang.String CATEGORY_IDS
static final char EXCEPTION_STRING_SEPARATOR
static final java.lang.String PRODUCR_IDS
static final java.lang.String PRODUCTSKU_CODES
Method Detail |
---|
boolean isCategoryExcluded(Category category)
category
- the category to check
boolean isProductExcluded(Product product)
product
- the product to check
boolean isSkuExcluded(ProductSku productSku)
productSku
- the sku to check
void populateFromExceptionStr(java.lang.String exceptionStr) throws EpDomainException
PromotionRuleExceptions
from parsing the given string representation.
exceptionStr
- - the string representation of a list of RuleException
s.\
EpDomainException
- if an invalid exception string is passed in.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |