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>
Repositoryfor persistent counterparts ofOrderFulfillment.- Author:
- Samarth Dhruva (samarthd)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<D>findAllByOrderId(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.List<D>findAllByOrderIdAndStatus(String orderId, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)Reads all of the orderOrderFulfillmentswhich are associated with the givenorderId.List<D>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.Optional<D>findByContextIdAndStatus(String contextId, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)Reads theOrderFulfillmentfor the givenidandstatus.-
Methods inherited from interface com.broadleafcommerce.order.repository.CustomizedOrderFulfillmentRepository
findAllByOrderIdAndMatchingTenant, findAllDistinctContextIds, findAllMatchingTenant, findByContextIdAndMatchingTenant
-
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
-
-
-
-
Method Detail
-
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 beEmptyNodeif 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
-
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 orderOrderFulfillmentswhich are associated with the givenorderId.- Parameters:
orderId- The ID of the parentOrderstatus- TheOrderFulfillment.getStatus()context- context information surrounding sandboxing and multitenant state- Returns:
- the
OrderFulfillmentswhich 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 theOrderFulfillmentfor the givenidandstatus.- Parameters:
contextId- The ID of theOrderFulfillmentstatus- TheOrderFulfillment.getStatus()context- context information surrounding sandboxing and multitenant state- Returns:
- Reads the
OrderFulfillmentfor the givenidandstatus.
-
-