Interface FulfillmentPricingConfigService<P extends com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig>
- Type Parameters:
P
- The projection domain for theFulfillmentPricingConfig
.
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,FulfillmentPricingConfigAccessor<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultFulfillmentPricingConfigService
public interface FulfillmentPricingConfigService<P extends com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>, FulfillmentPricingConfigAccessor<P>
Service interface for fetching
FulfillmentPricingConfig
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasApplicationConfig
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Indicate if the current application context has aFulfillmentPricingConfig
saved in the database.boolean
hasTenantConfig
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Indicate if the current tenant context has aFulfillmentPricingConfig
saved in the database.readOrGetNewConfigForApplication
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Fetch theFulfillmentPricingConfig
for the providedContextInfo
.Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
Methods inherited from interface com.broadleafcommerce.fulfillment.service.FulfillmentPricingConfigAccessor
readFulfillmentPricingConfig
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
readOrGetNewConfigForApplication
P readOrGetNewConfigForApplication(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Fetch theFulfillmentPricingConfig
for the providedContextInfo
. If none is found, return a new, non-persisted object.- Parameters:
contextInfo
- The context of the request.- Returns:
- The
FulfillmentPricingConfig
for this context.
-
hasApplicationConfig
boolean hasApplicationConfig(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Indicate if the current application context has aFulfillmentPricingConfig
saved in the database.- Parameters:
contextInfo
- The context of the request.- Returns:
- TRUE if the current application context has a
FulfillmentPricingConfig
.
-
hasTenantConfig
boolean hasTenantConfig(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Indicate if the current tenant context has aFulfillmentPricingConfig
saved in the database.- Parameters:
contextInfo
- The context of the request.- Returns:
- TRUE if the current tenant context has a
FulfillmentPricingConfig
.
-