Interface OrderFulfillmentViewService<P extends OrderFulfillmentView>
- All Known Implementing Classes:
DefaultOrderFulfillmentViewService
public interface OrderFulfillmentViewService<P extends OrderFulfillmentView>
Enables users to view
OrderFulfillment
data in a view containing additional limited data
from Order
.
This service also enables viewing application-level fulfillment data from the tenant context.
-
Method Summary
Modifier and TypeMethodDescriptionorg.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 contextInfo) Retrieve allOrderFulfillmentViews
using a structured query string to drive the query criteria.org.springframework.data.domain.Page<P>
readAllByGroupReferenceNumber
(String groupReferenceNumber, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all of theOrderFulfillmentViews
that are associated with the givengroupReferenceNumber
.readAllByOrderId
(String orderId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all of theOrderFulfillmentViews
that are associated with the givenorderId
.Reads the requested order fulfillment view byOrderFulfillment.getId()
.
-
Method Details
-
readById
P readById(String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the requested order fulfillment view byOrderFulfillment.getId()
.- Parameters:
id
- the ID of the order fulfillment to fetchcontextInfo
- context information surrounding multitenant state. When in a tenant context, the narrowing semantics will return a record within theContextRequest.getTenantId()
regardless of whether it is associated to an application or not. This allows users to read application-level fulfillments from a tenant-context. In an application context, narrowing will apply normally.- Returns:
- the requested order fulfillment view
- Throws:
com.broadleafcommerce.data.tracking.core.exception.EntityMissingException
- if the fulfillment was not found
-
readAllByOrderId
List<P> readAllByOrderId(String orderId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all of theOrderFulfillmentViews
that are associated with the givenorderId
.Assumes that the context contains the application containing the order.
- Parameters:
orderId
- The ID of the order to find fulfillments forcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- the fulfillment views that are associated with the given
orderId
-
readAll
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 contextInfo) Retrieve allOrderFulfillmentViews
using a structured query string to drive the query criteria. The filters string is parsed by an internal implementation and the result is added to the query before executing the fetch against the persistence store. SeeFilterParser
for more information.- Parameters:
filters
- the RSQLNode
used to restrict result, must not be nullpageable
- may bePageable.unpaged()
, must not be null.contextInfo
- Request context information around sandbox and multitenant state- Returns:
- The subset (page) of narrowed entities
-
readAllByGroupReferenceNumber
org.springframework.data.domain.Page<P> readAllByGroupReferenceNumber(String groupReferenceNumber, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all of theOrderFulfillmentViews
that are associated with the givengroupReferenceNumber
.- Parameters:
groupReferenceNumber
- the reference number of the order fulfillments to fetchfilters
- the RSQLNode
used to restrict the resultspageable
- describes the page of results to returncontextInfo
- context information around sandbox and multitenant state- Returns:
- The page of narrowed order fulfillment views
-