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 ofReturnAuthorization
.
-
-
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 allReturnAuthorizations
byorderId
filtering out ones withstatus
.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
-
-
-
-
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 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 databasecontextInfo
- 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 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 databasecontextInfo
- 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 allReturnAuthorizations
byorderId
filtering out ones withstatus
.- Parameters:
orderId
- ID of the parentOrder
status
- Status of the returns to filter bycontextInfo
- Additional sandbox and tenant info- Returns:
- All
ReturnAuthorizations
associated to the givenorderId
.
-
-