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 Type
    Method
    Description
    findAllByOrderId(String orderId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Reads all of the order fulfillments that are associated with the given orderId.
    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 given orderId.
    findAllByOrderIdAndStatus(String orderId, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Reads all of the order OrderFulfillments which are associated with the given orderId.
    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 given orderIds.
    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 given status.
    findByContextIdAndStatus(String contextId, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Reads the OrderFulfillment for the given id and status.

    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 given orderId.
      Parameters:
      orderId - The ID of the order to find fulfillments for
      filters - additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
      page - the requested page of results from the database
      context - 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 given status.
      Parameters:
      status - The status to find fulfillments for
      filters - additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
      page - the requested page of results from the database
      context - 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 given orderId.
      Parameters:
      orderId - The ID of the order to find fulfillments for
      context - 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 given orderIds.
      Parameters:
      orderIds - The IDs of the orders to find fulfillments for
      contextInfo - 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 order OrderFulfillments which are associated with the given orderId.
      Parameters:
      orderId - The ID of the parent Order
      status - The OrderFulfillment.getStatus()
      context - context information surrounding sandboxing and multitenant state
      Returns:
      the OrderFulfillments which are associated with the given orderId
    • findByContextIdAndStatus

      @Policy(operationTypes=READ) Optional<D> findByContextIdAndStatus(String contextId, String status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Reads the OrderFulfillment for the given id and status.
      Parameters:
      contextId - The ID of the OrderFulfillment
      status - The OrderFulfillment.getStatus()
      context - context information surrounding sandboxing and multitenant state
      Returns:
      Reads the OrderFulfillment for the given id and status.