Interface OrderFulfillmentRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- Type Parameters:
D
- The trackable domain type the repository manages
- All Superinterfaces:
CustomizedOrderFulfillmentRepository<D>
,com.broadleafcommerce.common.extension.DomainTypeAware
,com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
,org.springframework.data.repository.Repository<D,
,String> com.broadleafcommerce.data.tracking.core.TrackableRepository<D>
,com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
- All Known Subinterfaces:
JpaOrderFulfillmentRepository<D>
@NoRepositoryBean
public interface OrderFulfillmentRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>, CustomizedOrderFulfillmentRepository<D>
Repository
for persistent counterparts of OrderFulfillment
.- Author:
- Samarth Dhruva (samarthd)
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByOrderId
(String orderId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads all of the order fulfillments that are associated with the givenorderId
.org.springframework.data.domain.Page<D>
findAllByOrderId
(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 the order fulfillments that are associated with the givenorderId
.findAllByOrderIdAndStatus
(String orderId, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads all of the orderOrderFulfillments
which are associated with the givenorderId
.findAllByOrderIdIn
(Collection<String> orderIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all of the order fulfillments which are associated with any of the givenorderIds
.org.springframework.data.domain.Page<D>
findAllByStatus
(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 of all of the order fulfillments that are associated with the givenstatus
.findByContextIdAndStatus
(String contextId, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads theOrderFulfillment
for the givenid
andstatus
.Methods inherited from interface com.broadleafcommerce.order.repository.CustomizedOrderFulfillmentRepository
findAllByOrderIdAndMatchingTenant, findAllByOrderIdAndStatusAndMatchingTenant, findAllByOrderIdInAndExcludeFulfillmentItems, findAllDistinctContextIds, findAllMatchingTenant, findByContextIdAndMatchingTenant, findByContextIdAndStatusAndMatchingTenant, findPageByOrderIdAndMatchingTenant
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledged
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRepository
archive, existsByContextId, findAll, findAll, findAll, findAll, findAll, findAll, findAllByContextId, findByContextId, findByContextIdAndCatalog, findByNativeId, findDeployable, findMaxSortMember, findMinSortMember, findOriginal, findPromotable, findPromoteOrientedItems, findRebasable, findRejectable, findRevertable, findTarget, getDomainType, getEntityInformation, getTrackableBehaviorUtil, getTypesToRegisterInMappingContext, pruneChangeDetails, pruneRestingNotificationStates, purgeObsoleteSandboxData, save, saveAll, setTrackableBehaviorUtil
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor
exists, findAll, findAll, findAll, findAll
-
Method Details
-
findAllByOrderId
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByOrderId(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 the order fulfillments 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
-
findAllByStatus
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByStatus(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 of all of the order fulfillments that are associated with the givenstatus
.- Parameters:
status
- Thestatus
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
status
-
findAllByOrderId
@Policy(operationTypes=READ) List<D> findAllByOrderId(String orderId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads all of the order fulfillments 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
-
findAllByOrderIdIn
@Policy(operationTypes=READ) List<D> findAllByOrderIdIn(Collection<String> orderIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all of the order fulfillments which are associated with any of the givenorderIds
.- Parameters:
orderIds
- The IDs of the orders to find fulfillments forcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- the fulfillments which are associated with the given
orderIds
-
findAllByOrderIdAndStatus
@Policy(operationTypes=READ) List<D> findAllByOrderIdAndStatus(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
-
findByContextIdAndStatus
@Policy(operationTypes=READ) Optional<D> findByContextIdAndStatus(String contextId, String status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Reads theOrderFulfillment
for the givenid
andstatus
.- Parameters:
contextId
- The ID of theOrderFulfillment
status
- TheOrderFulfillment.getStatus()
context
- context information surrounding sandboxing and multitenant state- Returns:
- Reads the
OrderFulfillment
for the givenid
andstatus
.
-