Interface ReturnAuthorizationService<P extends com.broadleafcommerce.order.client.domain.ReturnAuthorization>
-
- Type Parameters:
P
- The projection domain type, a subtype ofReturnAuthorization
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultReturnAuthorizationService
public interface ReturnAuthorizationService<P extends com.broadleafcommerce.order.client.domain.ReturnAuthorization> extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Service API forReturnAuthorizations
. Supported byReturnAuthorizationRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.data.domain.Page<P>
readAllByOrderId(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 ID.List<P>
readAllByOrderIdAndStatusNot(String orderId, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Reads allReturnAuthorizations
byorderId
filtering out ones withstatus
.org.springframework.data.domain.Page<P>
readAllByOrderIds(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 IDs.List<P>
replaceOrCreateAll(Collection<P> returnAuthorizations, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Replace all of the given return authorizations which already exist, or create them.-
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
-
-
-
-
Method Detail
-
readAllByOrderId
@Policy(operationTypes=READ) org.springframework.data.domain.Page<P> readAllByOrderId(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 ID.- Parameters:
orderId
- the 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 ID
-
readAllByOrderIds
@Policy(operationTypes=READ) org.springframework.data.domain.Page<P> readAllByOrderIds(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 IDs.- Parameters:
orderIds
- the IDs of the orders 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 IDs
-
replaceOrCreateAll
List<P> replaceOrCreateAll(Collection<P> returnAuthorizations, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
Replace all of the given return authorizations which already exist, or create them.- Parameters:
returnAuthorizations
- the return authorizations to replace or createcontext
- context information surrounding sandboxing and multitenant state- Returns:
- the replaced and created return authorizations
-
readAllByOrderIdAndStatusNot
List<P> readAllByOrderIdAndStatusNot(String orderId, String status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Reads 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
.
-
-