Interface OrderFulfillmentService<P extends com.broadleafcommerce.order.client.domain.OrderFulfillment>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultOrderFulfillmentService
OrderFulfillment
. Supported by OrderFulfillmentRepository
.-
Method Summary
Modifier and TypeMethodDescriptionorg.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) Retrieves the order fulfillments matching the providedgroupReferenceNumber
and filters.org.springframework.data.domain.Page<P>
readAllByGroupReferenceNumberAndMatchingTenant
(String groupReferenceNumber, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the order fulfillments matching the providedgroupReferenceNumber
and filters, and the tenant fromContextInfo
if present.readAllByOrderId
(String orderId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads all of theOrderFulfillments
that are associated with the givenorderId
.org.springframework.data.domain.Page<P>
readAllByOrderId
(String orderId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads a page of all of theOrderFulfillments
that are associated with the givenorderId
.readAllByOrderIdAndMatchingTenant
(String orderId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the order fulfillment matching the provided ID and the tenant fromContextInfo
if present.readAllByOrderIdAndStatus
(String orderId, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads all of the orderOrderFulfillments
which are associated with the givenorderId
.readAllByOrderIdAndStatusAndMatchingTenant
(String orderId, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads all of the orderOrderFulfillments
which are associated with the givenorderId
, and the tenant fromContextInfo
if present.readAllByOrderIdIn
(Collection<String> orderIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads all of theOrderFulfillments
which are associated with any of the givenorderIds
.readAllByOrderIdInAndExcludeFulfillmentItems
(List<String> orderIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the order fulfillments for the providedorderIds
.org.springframework.data.domain.Page<P>
readAllByStatus
(String status, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads a page ofOrderFulfillments
in the givenstatus
.org.springframework.data.domain.Page<P>
readAllMatchingTenant
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the order fulfillments matching the provided filters and the tenant fromContextInfo
if present.readAllUniqueIds
(int page, cz.jirutka.rsql.parser.ast.Node filters) Retrieves a list of unique order fulfillment context IDs no larger than page.readByContextIdAndMatchingTenant
(String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the order fulfillment matching the provided ID and the tenant fromContextInfo
if present.readByContextIdAndStatus
(String id, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads theOrderFulfillment
for the givenid
andstatus
.readByContextIdAndStatusAndMatchingTenant
(String id, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads theOrderFulfillment
for the givenid
andstatus
, and the tenant fromContextInfo
if present.org.springframework.data.domain.Page<P>
readPageByOrderIdMatchingTenant
(String orderId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the order fulfillments matching theorderId
and the provided filters and the tenant fromContextInfo
if present.replaceMatchingTenant
(String id, P updates, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Update the given order fulfillment at the tenant level.replaceOrCreateAll
(Collection<P> fulfillments, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Replace all of the given fulfillments which already exist, or create them.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, updateSort
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
readAllByOrderId
org.springframework.data.domain.Page<P> readAllByOrderId(String orderId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads a page of all of theOrderFulfillments
that are associated with the givenorderId
.- Parameters:
orderId
- The ID of the order to find fulfillments forfilters
- additional filters to apply in the query. Should beEmptyNode
if no additional filters should be applied.page
- the requested page of results from the databasecontext
- context information surrounding sandboxing and multitenant state- Returns:
- A page of fulfillments that are associated with the given
orderId
-
readAllByOrderId
List<P> readAllByOrderId(String orderId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads all of theOrderFulfillments
that are associated with the givenorderId
.- Parameters:
orderId
- The ID of the order to find fulfillments forcontext
- context information surrounding sandboxing and multitenant state- Returns:
- the fulfillments that are associated with the given
orderId
-
readAllByOrderIdIn
List<P> readAllByOrderIdIn(Collection<String> orderIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads all of theOrderFulfillments
which are associated with any of the givenorderIds
.- Parameters:
orderIds
- The IDs of the orders to find fulfillments forcontext
- context information surrounding sandboxing and multitenant state- Returns:
- the fulfillments which are associated with the given
orderIds
-
replaceOrCreateAll
List<P> replaceOrCreateAll(Collection<P> fulfillments, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Replace all of the given fulfillments which already exist, or create them.- Parameters:
fulfillments
- the fulfillments to replace or createcontext
- context information surrounding sandboxing and multitenant state- Returns:
- the replaced and created fulfillments
-
readAllUniqueIds
Retrieves a list of unique order fulfillment context IDs no larger than page. It is expected that any appropriate offset is achieved through criteria designated infilters
.- Parameters:
page
- the requested page of results from the database. -1 indicates no limit.filters
- An RSQL filter used to narrow query results. May beEmptyNode
if no filters should be applied.- Returns:
- unique order fulfillment IDs
-
readAllByOrderIdAndStatus
List<P> readAllByOrderIdAndStatus(String orderId, String status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads all of the orderOrderFulfillments
which are associated with the givenorderId
.- Parameters:
orderId
- The ID of the parentOrder
status
- TheOrderFulfillment.getStatus()
context
- context information surrounding sandboxing and multitenant state- Returns:
- the
OrderFulfillments
which are associated with the givenorderId
-
readAllByStatus
org.springframework.data.domain.Page<P> readAllByStatus(String status, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads a page ofOrderFulfillments
in the givenstatus
.- Parameters:
status
- TheOrderFulfillment.getStatus()
to filter onfilters
- additional filters to apply in the query. Should beEmptyNode
if no additional filters should be applied.page
- the requested page of results from the databasecontext
- context information surrounding sandboxing and multitenant state- Returns:
- A page of fulfillments that are associated with the given
status
-
readByContextIdAndStatus
Optional<P> readByContextIdAndStatus(String id, String status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads theOrderFulfillment
for the givenid
andstatus
.- Parameters:
id
- The ID of theOrderFulfillment
status
- TheOrderFulfillment.getStatus()
context
- context information surrounding sandboxing and multitenant state- Returns:
- Reads the
OrderFulfillment
for the givenid
andstatus
.
-
readByContextIdAndMatchingTenant
Optional<P> readByContextIdAndMatchingTenant(String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the order fulfillment matching the provided ID and the tenant fromContextInfo
if present.Differs from the standard narrowing behavior of
CrudEntityService.readByContextId(String, ContextInfo)
, which only returns tenant-level (non-application-associated) records when fetching from a tenant context. This implementation finds all records within the tenant regardless of whether they're associated to an application.- Parameters:
id
- the id of the order fulfillment to findcontextInfo
- context information surrounding multitenant state- Returns:
- an
Optional
containing the requested order fulfillment if found within the tenant, orOptional.empty()
otherwise
-
replaceMatchingTenant
P replaceMatchingTenant(String id, P updates, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Update the given order fulfillment at the tenant level.- Parameters:
id
- Id of the fulfillment to updateupdates
- Updates to applycontextInfo
- Additional multitenant and sandbox info- Returns:
- The updated fulifllment if found.
-
readAllByOrderIdAndMatchingTenant
List<P> readAllByOrderIdAndMatchingTenant(String orderId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the order fulfillment matching the provided ID and the tenant fromContextInfo
if present.Differs from the standard narrowing behavior of
readAllByOrderId(String, ContextInfo)
, which only returns tenant-level (non-application-associated) records when fetching from a tenant context. This implementation finds all records within the tenant regardless of whether they're associated to an application.- Parameters:
orderId
- The ID of the order to find fulfillments forcontextInfo
- context information surrounding multitenant state- Returns:
- the fulfillments that are associated with the given
orderId
-
readPageByOrderIdMatchingTenant
org.springframework.data.domain.Page<P> readPageByOrderIdMatchingTenant(String orderId, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the order fulfillments matching theorderId
and the provided filters and the tenant fromContextInfo
if present.Differs from the standard narrowing behavior of
readAllByOrderId(String, Node, Pageable, ContextInfo)
, which only returns tenant-level (non-application-associated) records when fetching from a tenant context. This implementation finds all records within the tenant regardless of whether they're associated to an application.- Parameters:
id
- the id of the order fulfillment to findcontextInfo
- context information surrounding multitenant state- Returns:
- an
Optional
containing the requested order fulfillment if found within the tenant, orOptional.empty()
otherwise
-
readAllMatchingTenant
org.springframework.data.domain.Page<P> readAllMatchingTenant(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the order fulfillments matching the provided filters and the tenant fromContextInfo
if present.Differs from the standard narrowing behavior of {@link OrderFulfillmentService#readAll(Node, Pageable, ContextInfo), which only returns tenant-level (non-application-associated) records when fetching from a tenant context. This implementation finds all records within the tenant regardless of whether they're associated to an application.
- Parameters:
id
- the id of the order fulfillment to findcontextInfo
- context information surrounding multitenant state- Returns:
- an
Optional
containing the requested order fulfillment if found within the tenant, orOptional.empty()
otherwise
-
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) Retrieves the order fulfillments matching the providedgroupReferenceNumber
and filters.- Parameters:
groupReferenceNumber
- the group reference number to match onfilters
- An RSQL filter used to narrow query results. May beEmptyNode
if no filters should be applied.pageable
- the requested page of results from the databasecontextInfo
- context information surrounding multitenant state- Returns:
- A page of fulfillments that are associated with the given
groupReferenceNumber
-
readAllByGroupReferenceNumberAndMatchingTenant
org.springframework.data.domain.Page<P> readAllByGroupReferenceNumberAndMatchingTenant(String groupReferenceNumber, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the order fulfillments matching the providedgroupReferenceNumber
and filters, and the tenant fromContextInfo
if present.- Parameters:
groupReferenceNumber
- the group reference number to match onfilters
- An RSQL filter used to narrow query results. May beEmptyNode
if no filters should be applied.pageable
- the requested page of results from the databasecontextInfo
- context information surrounding multitenant state- Returns:
- A page of fulfillments that are associated with the given
groupReferenceNumber
-
readAllByOrderIdInAndExcludeFulfillmentItems
List<P> readAllByOrderIdInAndExcludeFulfillmentItems(List<String> orderIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves the order fulfillments for the providedorderIds
. This method doesn't fetch the associatedOrderFulfillmentItem
.- Parameters:
orderIds
- the order idscontextInfo
- context information surrounding multitenant state- Returns:
- the fulfillments that are associated with the given
orderIds
-
readAllByOrderIdAndStatusAndMatchingTenant
List<P> readAllByOrderIdAndStatusAndMatchingTenant(String orderId, String status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads all of the orderOrderFulfillments
which are associated with the givenorderId
, and the tenant fromContextInfo
if present.- Parameters:
orderId
- The ID of the parentOrder
status
- TheOrderFulfillment.getStatus()
context
- context information surrounding sandboxing and multitenant state- Returns:
- the
OrderFulfillments
which are associated with the givenorderId
and tenant.
-
readByContextIdAndStatusAndMatchingTenant
Optional<P> readByContextIdAndStatusAndMatchingTenant(String id, String status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads theOrderFulfillment
for the givenid
andstatus
, and the tenant fromContextInfo
if present.- Parameters:
id
- The ID of theOrderFulfillment
status
- TheOrderFulfillment.getStatus()
context
- context information surrounding sandboxing and multitenant state- Returns:
- Reads the
OrderFulfillment
for the givenid
,status
, and tenant.
-