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 Summary
-
Constructor Summary
ConstructorDescriptionDefaultFulfillmentCalculatorConfigService
(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 Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.extension.cache.CacheStateManager
protected 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 allFulfillmentCalculatorConfigs
by a name query.protected void
sortPriceTiers
(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.BaseRsqlCrudEntityService
getRsqlHelper, readAll, readAll, readAll
Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, createAll, createAllAllowingPartialSuccess, delete, getHelper, getSortPositionStrategy, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, updateAll, updateAllAllowingPartialSuccess, updateSort
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, updateAll, updateAllAllowingPartialSuccess, updateSort
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll
-
Field Details
-
CACHE_ALL_CALCULATORS
- See Also:
-
CACHE_FILTERED_CALCULATORS
- See Also:
-
-
Constructor Details
-
DefaultFulfillmentCalculatorConfigService
public 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
-
readAllByName
public 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:FulfillmentCalculatorConfigService
Filter allFulfillmentCalculatorConfigs
by a name query.- Specified by:
readAllByName
in interfaceFulfillmentCalculatorConfigService<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.
-
readAll
public 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:
readAll
in interfacecom.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P extends FulfillmentCalculatorConfig>
- Overrides:
readAll
in classcom.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P extends FulfillmentCalculatorConfig>
-
readAll
public List<P> readAll(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
readAll
in interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends FulfillmentCalculatorConfig>
- Overrides:
readAll
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends FulfillmentCalculatorConfig>
-
update
public P update(@NonNull String id, @NonNull P businessInstance, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
update
in interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends FulfillmentCalculatorConfig>
- Overrides:
update
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends FulfillmentCalculatorConfig>
-
create
public P create(@NonNull P businessInstance, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
create
in interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends FulfillmentCalculatorConfig>
- Overrides:
create
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends FulfillmentCalculatorConfig>
-
sortPriceTiers
-
getCacheStateManager
protected com.broadleafcommerce.common.extension.cache.CacheStateManager getCacheStateManager() -
getRepository
protected FulfillmentCalculatorConfigRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepository()- Overrides:
getRepository
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends FulfillmentCalculatorConfig>
-
getParser
protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> getParser()
-