java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.batch.handler.AbstractBatchHandler
org.nuxeo.ecm.automation.server.jaxrs.batch.handler.impl.DefaultBatchHandler
All Implemented Interfaces:
BatchHandler

public class DefaultBatchHandler extends AbstractBatchHandler
Default batch handler,
Since:
10.1
  • Constructor Details

    • DefaultBatchHandler

      public DefaultBatchHandler()
  • Method Details

    • getBatch

      public Batch getBatch(String batchId)
      Description copied from interface: BatchHandler
      Attempts to fetch a batch with the given id.
      Parameters:
      batchId - the batch id to fetch
      Returns:
      the batch with the given id, or null if not found
    • completeUpload

      public boolean completeUpload(String batchId, String fileIndex, BatchFileInfo fileInfo)
      Description copied from interface: BatchHandler
      Callback for the batch handler to execute post-upload actions. This is only typically used in third-party batch handlers.
      Parameters:
      batchId - the batch id
      fileIndex - the file index within the batch
      fileInfo - file information regarting the uploaded file
      Returns:
      true if the action was success
    • refreshToken

      public Map<String,Object> refreshToken(String batchId)
      Description copied from interface: BatchHandler
      Attempts to renew the credentials associated to this batch handler. This is only typically used in third-party batch handlers.
      Parameters:
      batchId - the batch id
      Returns:
      the new credentials