Class DefaultBulkOperationItemService<P extends BulkOperationItem>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseMappableCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlMappableCrudEntityService<P>
com.broadleafcommerce.catalog.service.bulkoperation.DefaultBulkOperationItemService<P>
- All Implemented Interfaces:
BulkOperationItemService<P>,com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityService<P>
public class DefaultBulkOperationItemService<P extends BulkOperationItem>
extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlMappableCrudEntityService<P>
implements BulkOperationItemService<P>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultBulkOperationItemService(BulkOperationItemRepository<com.broadleafcommerce.data.tracking.core.Identifiable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityHelper helper, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> parser) -
Method Summary
Modifier and TypeMethodDescriptionintdeleteAllByIdIn(@NonNull Collection<String> ids) Deletes all theBulkOperationItemsmatching the given IDs.protected BulkOperationItemRepository<com.broadleafcommerce.data.tracking.core.Identifiable>org.springframework.data.domain.Page<P>readAllByBulkOperationId(String bulkOperationId, @NonNull cz.jirutka.rsql.parser.ast.Node filters, @NonNull org.springframework.data.domain.Pageable page) Reads all bulk operation items for the given bulk operation context ID.readAllIdsByBulkOperationIdIn(@NonNull Collection<String> bulkOperationIds, int batchSize) Retrieves a batch of IDs forBulkOperationItemsthat belong to the givenBulkOperations.Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlMappableCrudEntityService
getRsqlHelper, readAll, readAll, readAll, readAllMethods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseMappableCrudEntityService
convertFromPersistentDomain, create, createAll, createAllAllowingPartialSuccess, delete, getHelper, readAll, readAll, readAll, readAllByIds, readById, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByIds, readById, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccessMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityService
readAll, readAll, readAll, readAll
-
Constructor Details
-
DefaultBulkOperationItemService
public DefaultBulkOperationItemService(BulkOperationItemRepository<com.broadleafcommerce.data.tracking.core.Identifiable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityHelper helper, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> parser)
-
-
Method Details
-
readAllByBulkOperationId
public org.springframework.data.domain.Page<P> readAllByBulkOperationId(String bulkOperationId, @NonNull @NonNull cz.jirutka.rsql.parser.ast.Node filters, @NonNull @NonNull org.springframework.data.domain.Pageable page) Description copied from interface:BulkOperationItemServiceReads all bulk operation items for the given bulk operation context ID.- Specified by:
readAllByBulkOperationIdin interfaceBulkOperationItemService<P extends BulkOperationItem>- Parameters:
bulkOperationId- the context ID of the bulk operationfilters- RSQL filters to apply in the query. Should beEmptyNodeif 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
public List<String> readAllIdsByBulkOperationIdIn(@NonNull @NonNull Collection<String> bulkOperationIds, int batchSize) Description copied from interface:BulkOperationItemServiceRetrieves a batch of IDs forBulkOperationItemsthat belong to the givenBulkOperations.- Specified by:
readAllIdsByBulkOperationIdInin interfaceBulkOperationItemService<P extends BulkOperationItem>- Parameters:
bulkOperationIds- IDs of the parentBulkOperations.batchSize- Size of the batch to read.- Returns:
- A batch of IDs for
BulkOperationItemsthat belong to the givenBulkOperations.
-
deleteAllByIdIn
Description copied from interface:BulkOperationItemServiceDeletes all theBulkOperationItemsmatching the given IDs.- Specified by:
deleteAllByIdInin interfaceBulkOperationItemService<P extends BulkOperationItem>- Parameters:
ids- IDs of theBulkOperationItemsto delete.- Returns:
- The number of items deleted.
-
getRepository
protected BulkOperationItemRepository<com.broadleafcommerce.data.tracking.core.Identifiable> getRepository()- Overrides:
getRepositoryin classcom.broadleafcommerce.data.tracking.core.service.BaseMappableCrudEntityService<P extends BulkOperationItem>
-