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 Type
    Method
    Description
    int
    Deletes all the BulkOperationItems 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 for BulkOperationItems that belong to the given BulkOperations.

    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 operation
      filters - RSQL 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
      Returns:
      all bulk operation items for the given bulk operation context ID
    • readAllIdsByBulkOperationIdIn

      List<String> readAllIdsByBulkOperationIdIn(Collection<String> bulkOperationIds, int batchSize)
      Retrieves a batch of IDs for BulkOperationItems that belong to the given BulkOperations.
      Parameters:
      bulkOperationIds - IDs of the parent BulkOperations.
      batchSize - Size of the batch to read.
      Returns:
      A batch of IDs for BulkOperationItems that belong to the given BulkOperations.
    • deleteAllByIdIn

      int deleteAllByIdIn(Collection<String> ids)
      Deletes all the BulkOperationItems matching the given IDs.
      Parameters:
      ids - IDs of the BulkOperationItems to delete.
      Returns:
      The number of items deleted.