org.broadleafcommerce.core.web.catalog
Interface DynamicSkuPricingFilter

All Superinterfaces:
javax.servlet.Filter
All Known Implementing Classes:
AbstractDynamicSkuPricingFilter, DefaultDynamicSkuPricingFilter

public interface DynamicSkuPricingFilter
extends javax.servlet.Filter

Responsible for setting up the SkuPricingConsiderationContext. Rather than simply creating a filter that implements this interface, consider instead subclassing the DefaultDynamicSkuPricingFilter and overriding the appropriate methods.

Author:
jfischer
See Also:
DefaultDynamicSkuPricingFilter}, AbstractDynamicSkuPricingFilter}, DynamicSkuPricingService}, SkuPricingConsiderationContext}

Method Summary
 DynamicSkuPricingService getDynamicSkuPricingService(javax.servlet.ServletRequest request)
          The result of this invocation should be set on SkuPricingConsiderationContext.setSkuPricingService(DynamicSkuPricingService).
 HashMap getPricingConsiderations(javax.servlet.ServletRequest request)
          The result of this invocation should be set on SkuPricingConsiderationContext.setSkuPricingConsiderationContext(HashMap) and ultimately passed to DynamicSkuPricingService to determine prices.
 
Methods inherited from interface javax.servlet.Filter
destroy, doFilter, init
 

Method Detail

getPricingConsiderations

HashMap getPricingConsiderations(javax.servlet.ServletRequest request)
The result of this invocation should be set on SkuPricingConsiderationContext.setSkuPricingConsiderationContext(HashMap) and ultimately passed to DynamicSkuPricingService to determine prices.

Parameters:
request -
Returns:
a map of considerations to be used by the service in getDynamicSkuPricingService(ServletRequest).
See Also:
SkuPricingConsiderationContext#getSkuPricingConsiderationContext()}, DynamicSkuPricingService}

getDynamicSkuPricingService

DynamicSkuPricingService getDynamicSkuPricingService(javax.servlet.ServletRequest request)
The result of this invocation should be set on SkuPricingConsiderationContext.setSkuPricingService(DynamicSkuPricingService). This is the service that will be used in calculating dynamic prices for a Sku or product option value

Parameters:
request -
Returns:
See Also:
Sku#getRetailPrice()}, Sku#getSalePrice()}


Copyright © 2013. All Rights Reserved.