Interface CancellationPolicyService<CP extends CancellationPolicy>
- Type Parameters:
CP- an instance ofCancellationPolicy
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<CP>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<CP>
- All Known Implementing Classes:
DefaultCancellationPolicyService
public interface CancellationPolicyService<CP extends CancellationPolicy>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<CP>
Service layer for interacting with
CancellationPolicy- Author:
- karanjariwala
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<CP>readAllByName(String name, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads aPageofCancellationPolicyfor the given name and filters.readCancellationPolicyByName(String name, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads aCancellationPolicyby its name.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
-
readCancellationPolicyByName
CP readCancellationPolicyByName(String name, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads aCancellationPolicyby its name.- Parameters:
name- the name of the CancellationPolicycontextInfo- context information around sandboxing and multitenant state- Returns:
- A
CancellationPolicythat matches the name
-
readAllByName
org.springframework.data.domain.Page<CP> readAllByName(@Nullable String name, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads aPageofCancellationPolicyfor the given name and filters.- Parameters:
name- the name by which the CancellationPolicy is to be searched for.filters- additional filters to be applied for fetching the CancellationPoliciespageable- the requested page of results from the databasecontextInfo- context information around sandboxing and multitenant state- Returns:
- A
PageofCancellationPolicy
-