Class DefaultDynamicSkuPricingFilter
java.lang.Object
org.broadleafcommerce.core.web.catalog.AbstractDynamicSkuPricingFilter
org.broadleafcommerce.core.web.catalog.DefaultDynamicSkuPricingFilter
- All Implemented Interfaces:
jakarta.servlet.Filter,DynamicSkuPricingFilter
Register this filter via Spring DelegatingFilterProxy, or register your own implementation
that provides additional, desirable members to the pricingConsiderations Map
that is generated from the getPricingConsiderations method.
- Author:
- jfischer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.profile.web.core.CustomerStateprotected org.broadleafcommerce.core.catalog.service.dynamic.DynamicSkuPricingService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.core.catalog.service.dynamic.DynamicSkuPricingServicegetDynamicSkuPricingService(jakarta.servlet.ServletRequest request) The result of this invocation should be set onSkuPricingConsiderationContext.setSkuPricingService(DynamicSkuPricingService).getPricingConsiderations(jakarta.servlet.ServletRequest request) The result of this invocation should be set onSkuPricingConsiderationContext.setSkuPricingConsiderationContext(HashMap)and ultimately passed toDynamicSkuPricingServiceto determine prices.Methods inherited from class org.broadleafcommerce.core.web.catalog.AbstractDynamicSkuPricingFilter
destroy, doFilter, init
-
Field Details
-
skuPricingService
@Autowired @Qualifier("blDynamicSkuPricingService") protected org.broadleafcommerce.core.catalog.service.dynamic.DynamicSkuPricingService skuPricingService -
customerState
@Autowired @Qualifier("blCustomerState") protected org.broadleafcommerce.profile.web.core.CustomerState customerState
-
-
Constructor Details
-
DefaultDynamicSkuPricingFilter
public DefaultDynamicSkuPricingFilter()
-
-
Method Details
-
getDynamicSkuPricingService
public org.broadleafcommerce.core.catalog.service.dynamic.DynamicSkuPricingService getDynamicSkuPricingService(jakarta.servlet.ServletRequest request) Description copied from interface:DynamicSkuPricingFilterThe result of this invocation should be set onSkuPricingConsiderationContext.setSkuPricingService(DynamicSkuPricingService). This is the service that will be used in calculating dynamic prices for a Sku or product option value- Returns:
-
getPricingConsiderations
Description copied from interface:DynamicSkuPricingFilterThe result of this invocation should be set onSkuPricingConsiderationContext.setSkuPricingConsiderationContext(HashMap)and ultimately passed toDynamicSkuPricingServiceto determine prices.- Returns:
- a map of considerations to be used by the service in
DynamicSkuPricingFilter.getDynamicSkuPricingService(ServletRequest).
-