Interface BulkOperationHandler

All Known Implementing Classes:
CatalogBulkOperationHandler

public interface BulkOperationHandler
Handles the bulk operation request into Bulk Operation Services. Extensions of this handler will determine the service to call into for performing the provided bulk operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(String operationType, String entityType)
    Determines if this handler can handle the bulk operation request.
    com.broadleafcommerce.bulk.v2.domain.BulkOperationResponse
    handle(com.broadleafcommerce.bulk.v2.domain.BulkOperationRequest bulkOperationRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Handles this bulk operation request for the specified entity or operation type.
  • Method Details

    • canHandle

      boolean canHandle(String operationType, String entityType)
      Determines if this handler can handle the bulk operation request.
      Parameters:
      operationType - the operation type of the bulk operation request
      entityType - the entity type being updated by the bulk operation request
      Returns:
      true, if this handler is able to handle the bulk operation
    • handle

      com.broadleafcommerce.bulk.v2.domain.BulkOperationResponse handle(com.broadleafcommerce.bulk.v2.domain.BulkOperationRequest bulkOperationRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Handles this bulk operation request for the specified entity or operation type.
      Parameters:
      bulkOperationRequest - the bulk operation request DTO
      contextInfo - context information surrounding sandboxing/multitenant state
      Returns:
      the bulk operation response DTO for the created bulk operation