Class DefaultBatchHandler
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
Default batch handler,
- Since:
- 10.1
-
Field Summary
Fields inherited from class org.nuxeo.ecm.automation.server.jaxrs.batch.handler.AbstractBatchHandler
BATCH_HANDLER_NAME, name, PROP_TRANSIENT_STORE_NAME, transientStoreName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompleteUpload(String batchId, String fileIndex, BatchFileInfo fileInfo) Callback for the batch handler to execute post-upload actions.Attempts to fetch a batch with the given id.refreshToken(String batchId) Attempts to renew the credentials associated to this batch handler.Methods inherited from class org.nuxeo.ecm.automation.server.jaxrs.batch.handler.AbstractBatchHandler
generateBatchId, getBatchParameters, getName, getTransientStore, initialize, initialize, newBatch
-
Constructor Details
-
DefaultBatchHandler
public DefaultBatchHandler()
-
-
Method Details
-
getBatch
Description copied from interface:BatchHandlerAttempts to fetch a batch with the given id.- Parameters:
batchId- the batch id to fetch- Returns:
- the batch with the given id, or
nullif not found
-
completeUpload
Description copied from interface:BatchHandlerCallback for the batch handler to execute post-upload actions. This is only typically used in third-party batch handlers.- Parameters:
batchId- the batch idfileIndex- the file index within the batchfileInfo- file information regarting the uploaded file- Returns:
trueif the action was success
-
refreshToken
Description copied from interface:BatchHandlerAttempts 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
-