Class ItemAttributeFlatRateFulfillmentCalculatorProvider
java.lang.Object
com.broadleafcommerce.fulfillment.provider.ItemAttributeFlatRateFulfillmentCalculatorProvider
- All Implemented Interfaces:
FulfillmentCalculatorProvider
public class ItemAttributeFlatRateFulfillmentCalculatorProvider
extends Object
implements FulfillmentCalculatorProvider
Interface to define a provider capable of returning
FulfillmentCalculator instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FulfillmentCalculatorbuildCalculatorForServiceLevel(String serviceLevel) protected List<FulfillmentCalculator>protected StringbuildIdForOption(String serviceLevel) protected StringbuildNameForOption(String serviceLevel) findEligibleFulfillmentPricingCalculators(FulfillmentPricingContext context, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of FulffillmentCalculator objects based on the passed in context.intbooleanIf true, this provider will be used to build the list of fulfillment calculators.voidsetCalculatorTypePriority(int calculatorTypePriority)
-
Constructor Details
-
ItemAttributeFlatRateFulfillmentCalculatorProvider
public ItemAttributeFlatRateFulfillmentCalculatorProvider(boolean enabled)
-
-
Method Details
-
findEligibleFulfillmentPricingCalculators
public List<FulfillmentCalculator> findEligibleFulfillmentPricingCalculators(@NonNull FulfillmentPricingContext context, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of FulffillmentCalculator objects based on the passed in context.- Specified by:
findEligibleFulfillmentPricingCalculatorsin interfaceFulfillmentCalculatorProvider- Parameters:
context- Container with the request and state objects needed to determine eligibility.contextInfo- Context info sed for any DB operations.- Returns:
-
buildFlatRateCalculators
-
buildServiceLevels
-
buildCalculatorForServiceLevel
-
buildNameForOption
-
buildIdForOption
-
isEnabled
public boolean isEnabled()Description copied from interface:FulfillmentCalculatorProviderIf true, this provider will be used to build the list of fulfillment calculators.- Specified by:
isEnabledin interfaceFulfillmentCalculatorProvider- Returns:
-
getCalculatorTypePriority
public int getCalculatorTypePriority() -
setCalculatorTypePriority
public void setCalculatorTypePriority(int calculatorTypePriority)
-