Interface ReturnAuthorizationRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

  • Type Parameters:
    D - The trackable domain type the repository manages
    All Superinterfaces:
    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:
    JpaReturnAuthorizationRepository<D>

    @NoRepositoryBean
    public interface ReturnAuthorizationRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
    extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
    Repository for persistent counterparts of ReturnAuthorization.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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 contextInfo)
      Retrieve return authorizations for the given order context ID.
      List<D> findAllByOrderIdAndStatusNot​(String orderId, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all ReturnAuthorizations by orderId filtering out ones with status.
      org.springframework.data.domain.Page<D> findAllByOrderIdIn​(Collection<String> orderIds, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Retrieve return authorizations for the given collection of order context IDs.
      • 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 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 contextInfo)
        Retrieve return authorizations for the given order context ID.
        Parameters:
        orderId - the context ID of the order to search 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
        contextInfo - context information around sandbox and multitenant state
        Returns:
        a page of the return authorizations associated with the given order context ID
      • findAllByOrderIdIn

        @Policy(operationTypes=READ)
        org.springframework.data.domain.Page<D> findAllByOrderIdIn​(Collection<String> orderIds,
                                                                   cz.jirutka.rsql.parser.ast.Node filters,
                                                                   org.springframework.data.domain.Pageable page,
                                                                   @Nullable
                                                                   com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Retrieve return authorizations for the given collection of order context IDs.
        Parameters:
        orderIds - the context ID of the order to search 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
        contextInfo - context information around sandbox and multitenant state
        Returns:
        a page of the return authorizations associated with the given order context ID
      • findAllByOrderIdAndStatusNot

        List<D> findAllByOrderIdAndStatusNot​(String orderId,
                                             String status,
                                             @Nullable
                                             com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Finds all ReturnAuthorizations by orderId filtering out ones with status.
        Parameters:
        orderId - ID of the parent Order
        status - Status of the returns to filter by
        contextInfo - Additional sandbox and tenant info
        Returns:
        All ReturnAuthorizations associated to the given orderId.