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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanisCreateOptionsForGroup(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig config, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determine if newPricedFulfillmentOptionshould target theFulfillmentGrouporFulfillmentItem.booleanisFGSortByServiceLevel(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig config, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) booleanisPriceByGroup(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:
isPriceByGroupin interfaceFulfillmentPricingConfigHelperService
-
isCreateOptionsForGroup
public boolean isCreateOptionsForGroup(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig config, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determine if newPricedFulfillmentOptionshould target theFulfillmentGrouporFulfillmentItem. 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:
isCreateOptionsForGroupin interfaceFulfillmentPricingConfigHelperService- Parameters:
config-contextInfo-- Returns:
- True if new
PricedFulfillmentOptionshould 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:
isFGSortByServiceLevelin interfaceFulfillmentPricingConfigHelperService
-