Interface BulkOperationItemService<P extends BulkOperationItem>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityService<P>
- All Known Implementing Classes:
DefaultBulkOperationItemService
public interface BulkOperationItemService<P extends BulkOperationItem>
extends com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityService<P>
Service API for
BulkOperationItem
. Supported by BulkOperationItemRepository
.- Since:
- 2.1.0-GA
-
Method Summary
Modifier and TypeMethodDescriptionint
deleteAllByIdIn
(Collection<String> ids) Deletes all theBulkOperationItems
matching the given IDs.org.springframework.data.domain.Page<P>
readAllByBulkOperationId
(String bulkOperationId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page) Reads all bulk operation items for the given bulk operation context ID.readAllIdsByBulkOperationIdIn
(Collection<String> bulkOperationIds, int batchSize) Retrieves a batch of IDs forBulkOperationItems
that belong to the givenBulkOperations
.Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByIds, readById, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
readAllByBulkOperationId
org.springframework.data.domain.Page<P> readAllByBulkOperationId(String bulkOperationId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page) Reads all bulk operation items for the given bulk operation context ID.- Parameters:
bulkOperationId
- the context ID of the bulk operationfilters
- RSQL filters to apply in the query. Should beEmptyNode
if no additional filters should be applied.page
- the requested page of results from the database- Returns:
- all bulk operation items for the given bulk operation context ID
-
readAllIdsByBulkOperationIdIn
Retrieves a batch of IDs forBulkOperationItems
that belong to the givenBulkOperations
.- Parameters:
bulkOperationIds
- IDs of the parentBulkOperations
.batchSize
- Size of the batch to read.- Returns:
- A batch of IDs for
BulkOperationItems
that belong to the givenBulkOperations
.
-
deleteAllByIdIn
Deletes all theBulkOperationItems
matching the given IDs.- Parameters:
ids
- IDs of theBulkOperationItems
to delete.- Returns:
- The number of items deleted.
-