Interface FeeService<F extends Fee>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<F>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<F>
- All Known Implementing Classes:
DefaultFeeService
public interface FeeService<F extends Fee>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<F>
Base service API for
Fee. Backed by a FeeRepository.- Since:
- Pricing Services 2.2.0, Release Train 2.3.0
- Author:
- Julia Lopez-Pozas (jlopezpozas)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsByFeeCode(String feeCode, String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Whether there exists aFeewhere theFee.getFeeCode()matchesfeeCodeand theFee.getId()does not matchid.readAllByApplicationId(String applicationId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Fetches and returns allFeesthat exist in an application that matches the given application ID.org.springframework.data.domain.Page<F>readAllByLabel(String label, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Read allFeesthat match the given label.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, updateSortMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
readAllByApplicationId
List<F> readAllByApplicationId(@NonNull String applicationId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Fetches and returns allFeesthat exist in an application that matches the given application ID.- Parameters:
applicationId- the application ID to use for matching when fetching feescontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- a list of
Feesthat exist in an application that matches the given application ID - Since:
- Pricing Services 2.2.0, Release Train 2.3.0
-
existsByFeeCode
boolean existsByFeeCode(@NonNull String feeCode, @Nullable String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Whether there exists aFeewhere theFee.getFeeCode()matchesfeeCodeand theFee.getId()does not matchid.- Parameters:
feeCode- The fee code to matchid- The id to not matchcontext- context information surrounding sandboxing and multitenant state- Returns:
- Whether there exists a
Feewhere theFee.getFeeCode()matchesfeeCodeand theFee.getId()does not matchid. - Since:
- Pricing Services 2.2.0, Release Train 2.3.0
-
readAllByLabel
org.springframework.data.domain.Page<F> readAllByLabel(@Nullable String label, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Read allFeesthat match the given label.- Parameters:
label- the fee label to filter byfilters- additional filters to apply in the query. Should beEmptyNodeif no additional filters should be applied.page- the requested page of results from the databasecontext- context information surrounding sandboxing and multitenant state- Returns:
- all fees that match the given label
- Since:
- Pricing Services 2.2.0, Release Train 2.3.0
-
getRepositoryDomain
-