Class DefaultFulfillmentPricingConfigHelperService

java.lang.Object
com.broadleafcommerce.cartoperation.service.fulfillment.option.DefaultFulfillmentPricingConfigHelperService
All Implemented Interfaces:
FulfillmentPricingConfigHelperService

public class DefaultFulfillmentPricingConfigHelperService extends Object implements FulfillmentPricingConfigHelperService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isCreateOptionsForGroup(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig config, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Determine if new PricedFulfillmentOption should target the FulfillmentGroup or FulfillmentItem.
    boolean
    isFGSortByServiceLevel(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig config, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    boolean
    isPriceByGroup(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig config, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultFulfillmentPricingConfigHelperService

      public DefaultFulfillmentPricingConfigHelperService()
  • Method Details

    • isPriceByGroup

      public boolean isPriceByGroup(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig config, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Specified by:
      isPriceByGroup in interface FulfillmentPricingConfigHelperService
    • isCreateOptionsForGroup

      public boolean isCreateOptionsForGroup(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig config, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Determine if new PricedFulfillmentOption should target the FulfillmentGroup or FulfillmentItem. By default, this logic follows the FulfillmentPricingStrategy; the GROUP strategy will create options for groups, and the ITEM strategy will create options for items. An alternative implementation could target items for both strategies. That would create new options for each item in a group, and items would be moved to new groups if a new option is selected.
      Specified by:
      isCreateOptionsForGroup in interface FulfillmentPricingConfigHelperService
      Parameters:
      config -
      contextInfo -
      Returns:
      True if new PricedFulfillmentOption should target the FulfillmentGroup or False if new PricedFulfillmentOptions should target the FulfillmentItem
    • isFGSortByServiceLevel

      public boolean isFGSortByServiceLevel(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig config, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Specified by:
      isFGSortByServiceLevel in interface FulfillmentPricingConfigHelperService