Interface CancellationPolicyProvider<C extends CancellationPolicy>
- All Known Implementing Classes:
ExternalCancellationPolicyProvider
public interface CancellationPolicyProvider<C extends CancellationPolicy>
Provider interfacing with a service or datastore providing catalog entity details for the
CancellationPolicy.- Author:
- Sunny Yu
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<C>readAll(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads allCancellationPoliciesbased on the provided filters and paging.Reads aCancellationPolicyby its id.
-
Method Details
-
readById
C readById(String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads aCancellationPolicyby its id.- Parameters:
id- the id of theCancellationPolicycontextInfo- context information around multi-tenant state- Returns:
- the
CancellationPolicywith the provided id
-
readAll
org.springframework.data.domain.Page<C> readAll(@Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads allCancellationPoliciesbased on the provided filters and paging.- Parameters:
filters- theNodefilters to applypage- the currentPageablecontextInfo- context information around multi-tenant state- Returns:
- a page of
CancellationPolicies
-