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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isCreateOptionsForGroup
(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig config, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determine if newPricedFulfillmentOption
should target theFulfillmentGroup
orFulfillmentItem
.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)
-
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 interfaceFulfillmentPricingConfigHelperService
-
isCreateOptionsForGroup
public boolean isCreateOptionsForGroup(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig config, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determine if newPricedFulfillmentOption
should target theFulfillmentGroup
orFulfillmentItem
. By default, this logic follows theFulfillmentPricingStrategy
; 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 interfaceFulfillmentPricingConfigHelperService
- 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 interfaceFulfillmentPricingConfigHelperService
-