Class DefaultFulfillmentCalculatorConfigService<P extends FulfillmentCalculatorConfig>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
com.broadleafcommerce.fulfillment.service.DefaultFulfillmentCalculatorConfigService<P>
- All Implemented Interfaces:
- com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,- com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>,- FulfillmentCalculatorConfigService<P>
public class DefaultFulfillmentCalculatorConfigService<P extends FulfillmentCalculatorConfig>
extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
implements FulfillmentCalculatorConfigService<P>
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultFulfillmentCalculatorConfigService(FulfillmentCalculatorConfigRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper, com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> parser) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.extension.cache.CacheStateManagerprotected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node>protected FulfillmentCalculatorConfigRepository<com.broadleafcommerce.data.tracking.core.Trackable>readAll(com.broadleafcommerce.data.tracking.core.context.ContextInfo context) org.springframework.data.domain.Page<P>readAll(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) org.springframework.data.domain.Page<P>readAllByName(String name, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Filter allFulfillmentCalculatorConfigsby a name query.protected voidsortPriceTiers(P businessInstance) update(String id, P businessInstance, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityServicegetRsqlHelper, readAll, readAll, readAllMethods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityServiceconvertFromPersistentDomain, convertToPersistentDomain, createAll, createAllAllowingPartialSuccess, delete, getHelper, getSortPositionStrategy, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityServicecreateAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityServicereadAll, readAll, readAll
- 
Field Details- 
CACHE_ALL_CALCULATORS- See Also:
 
- 
CACHE_FILTERED_CALCULATORS- See Also:
 
 
- 
- 
Constructor Details- 
DefaultFulfillmentCalculatorConfigServicepublic DefaultFulfillmentCalculatorConfigService(FulfillmentCalculatorConfigRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper, com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> parser) 
 
- 
- 
Method Details- 
readAllByNamepublic org.springframework.data.domain.Page<P> readAllByName(String name, @NonNull cz.jirutka.rsql.parser.ast.Node filters, @NonNull org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:FulfillmentCalculatorConfigServiceFilter allFulfillmentCalculatorConfigsby a name query.- Specified by:
- readAllByNamein interface- FulfillmentCalculatorConfigService<P extends FulfillmentCalculatorConfig>
- Parameters:
- name- The config name used to filter configs.
- filters- The filters to apply to the query.
- pageable- Paging information for the query.
- context- Context information about sandbox and multitenant state.
- Returns:
- Page of FulfillmentCalculatorConfigs that match the given name and filters.
 
- 
readAllpublic org.springframework.data.domain.Page<P> readAll(@NonNull cz.jirutka.rsql.parser.ast.Node filters, @NonNull org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
- readAllin interface- com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P extends FulfillmentCalculatorConfig>
- Overrides:
- readAllin class- com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P extends FulfillmentCalculatorConfig>
 
- 
readAllpublic List<P> readAll(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
- readAllin interface- com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends FulfillmentCalculatorConfig>
- Overrides:
- readAllin class- com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends FulfillmentCalculatorConfig>
 
- 
updatepublic P update(@NonNull String id, @NonNull P businessInstance, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
- updatein interface- com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends FulfillmentCalculatorConfig>
- Overrides:
- updatein class- com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends FulfillmentCalculatorConfig>
 
- 
createpublic P create(@NonNull P businessInstance, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
- createin interface- com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends FulfillmentCalculatorConfig>
- Overrides:
- createin class- com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends FulfillmentCalculatorConfig>
 
- 
sortPriceTiers
- 
getCacheStateManagerprotected com.broadleafcommerce.common.extension.cache.CacheStateManager getCacheStateManager()
- 
getRepositoryprotected FulfillmentCalculatorConfigRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepository()- Overrides:
- getRepositoryin class- com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends FulfillmentCalculatorConfig>
 
- 
getParserprotected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> getParser()
 
-