|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.commerce.pricing.ClosenessQualifierEvaluator
public class ClosenessQualifierEvaluator
This class serves as the base class for several specific types of ClosenessQualiferEvaluators: ItemClosenessQualifierEvaluator, OrderClosenessQualifierEvaluator, ShippingClosenessQualifierEvaluator, and TaxClosenessQualifierEvaluator.
The ClosenessQualifierEvaluators check to see if an order or item is close to qualifying for a given promotion under the "closenessQualifiers" of the promotion. If the order or item qualifies as close, information is added to the given PriceInfo object to indicate that the promotion is close, and a PromotionClosenessQualification event is fired.
If the PriceInfo of the item or order contains a closenessQualifier that it no longer satisfies, a PromotionClosenessDisqualification event is fired.
Properties:
ItemClosenessQualifierEvaluator
,
OrderClosenessQualifierEvaluator
,
ShippingClosenessQualifierEvaluator
,
TaxClosenessQualifierEvaluator
,
Qualifier
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected static java.util.ResourceBundle |
sResourceBundle
Resource Bundle |
static int |
TYPE_ITEM
|
static int |
TYPE_ORDER
|
static int |
TYPE_SHIPPING
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
ClosenessQualifierEvaluator()
|
Method Summary | |
---|---|
protected void |
addClosenessQualifierToPriceInfo(AmountInfo pPriceInfo,
RepositoryItem pClosenessQualifier)
Adds the given closenessQualifier to the given priceInfo |
protected void |
checkForNullParameters(AmountInfo pPriceInfo,
RepositoryItem pPricingModel,
java.lang.Object pCommerceObject,
java.lang.String pResource)
Throws a PricingException if the pPriceInfo, pPricingModel, or pCommerceObject parameters are null. |
protected void |
checkForNullParameters(java.lang.Object pPriceInfo,
RepositoryItem pPricingModel,
java.lang.Object pCommerceObject,
java.lang.String pResource)
Throws a PricingException if the pPriceInfo, pPricingModel, or pCommerceObject parameters are null. |
protected java.util.List |
getPriceQuotes(java.util.List pCommerceItems)
Returns a list of PriceInfo objects associated with the given commerce items. |
java.util.Comparator |
getPricingModelComparator()
|
PricingModelProperties |
getPricingModelProperties()
|
Qualifier |
getQualifierService()
|
protected boolean |
isUpsellable(RepositoryItem pPricingModel)
Returns the value of the "upsell" property of the pricingModel |
void |
setPricingModelComparator(java.util.Comparator pPricingModelComparator)
Sets the component that sorts the closenessQualifiers based on their priority |
void |
setPricingModelProperties(PricingModelProperties pPricingModelProperties)
Sets the component that holds the names of the properties in the pricingModel item descriptor |
void |
setQualifierService(Qualifier pQualifierService)
Sets a component that does the pricing model qualification |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
protected static java.util.ResourceBundle sResourceBundle
public static final int TYPE_ITEM
public static final int TYPE_SHIPPING
public static final int TYPE_ORDER
Constructor Detail |
---|
public ClosenessQualifierEvaluator()
Method Detail |
---|
public void setPricingModelComparator(java.util.Comparator pPricingModelComparator)
pPricingModelComparator
- the component that sorts the closenessQualifiers
based on their prioritypublic java.util.Comparator getPricingModelComparator()
public void setPricingModelProperties(PricingModelProperties pPricingModelProperties)
pPricingModelProperties
- the component that holds the names of the
properties in the pricingModel item descriptorpublic PricingModelProperties getPricingModelProperties()
public void setQualifierService(Qualifier pQualifierService)
pPricingModelProperties
- a component that does the pricing model
qualificationpublic Qualifier getQualifierService()
protected void addClosenessQualifierToPriceInfo(AmountInfo pPriceInfo, RepositoryItem pClosenessQualifier)
pPriceInfo
- pClosenessQualifier
- protected void checkForNullParameters(AmountInfo pPriceInfo, RepositoryItem pPricingModel, java.lang.Object pCommerceObject, java.lang.String pResource) throws PricingException
pPriceInfo
- pPricingModel
- pCommerceObject
- pCommerceObjectResource
-
PricingException
protected void checkForNullParameters(java.lang.Object pPriceInfo, RepositoryItem pPricingModel, java.lang.Object pCommerceObject, java.lang.String pResource) throws PricingException
pPriceInfo
- pPricingModel
- pCommerceObject
- pCommerceObjectResource
-
PricingException
protected java.util.List getPriceQuotes(java.util.List pCommerceItems)
pCommerceItems
-
protected boolean isUpsellable(RepositoryItem pPricingModel)
pPricingModel
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |