Class DefaultDynamicSkuPricingFilter

java.lang.Object
org.broadleafcommerce.core.web.catalog.AbstractDynamicSkuPricingFilter
org.broadleafcommerce.core.web.catalog.DefaultDynamicSkuPricingFilter
All Implemented Interfaces:
jakarta.servlet.Filter, DynamicSkuPricingFilter

public class DefaultDynamicSkuPricingFilter extends AbstractDynamicSkuPricingFilter
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

    Fields
    Modifier and Type
    Field
    Description
    protected org.broadleafcommerce.profile.web.core.CustomerState
     
    protected org.broadleafcommerce.core.catalog.service.dynamic.DynamicSkuPricingService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.broadleafcommerce.core.catalog.service.dynamic.DynamicSkuPricingService
    getDynamicSkuPricingService(jakarta.servlet.ServletRequest request)
    The result of this invocation should be set on SkuPricingConsiderationContext.setSkuPricingService(DynamicSkuPricingService).
    getPricingConsiderations(jakarta.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 class org.broadleafcommerce.core.web.catalog.AbstractDynamicSkuPricingFilter

    destroy, doFilter, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: DynamicSkuPricingFilter
      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
      Returns:
    • getPricingConsiderations

      public HashMap getPricingConsiderations(jakarta.servlet.ServletRequest request)
      Description copied from interface: DynamicSkuPricingFilter
      The result of this invocation should be set on SkuPricingConsiderationContext.setSkuPricingConsiderationContext(HashMap) and ultimately passed to DynamicSkuPricingService to determine prices.
      Returns:
      a map of considerations to be used by the service in DynamicSkuPricingFilter.getDynamicSkuPricingService(ServletRequest).