Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.automation.server.jaxrs.batch
Interface BatchManager

All Known Implementing Classes:
BatchManagerComponent

public interface BatchManager

Service interface to collect inputs (Blobs) for an operation or operation chain

Since:
5.4.2
Author:
Tiry (tdelprat@nuxeo.com)

Method Summary
 void addStream(String batchId, String idx, InputStream is, String name, String mime)
          Add an inputStream in a batch Will create a new Batch if needed Streams are persisted as temporary files
 void clean(String batchId)
          Cleanup the temporary storage associated to the batch
 List<Blob> getBlobs(String batchId)
          Get Blobs associated to a given batch.
 String initBatch(String batchId, String contextName)
          Initialize a batch with a given batchId and Context Name If batchId is not provided, it will be automatically generated
 

Method Detail

addStream

void addStream(String batchId,
               String idx,
               InputStream is,
               String name,
               String mime)
               throws IOException
Add an inputStream in a batch Will create a new Batch if needed Streams are persisted as temporary files

Parameters:
batchId -
idx -
is -
name -
mime -
Throws:
IOException

getBlobs

List<Blob> getBlobs(String batchId)
Get Blobs associated to a given batch. Returns null if batch does not exist

Parameters:
batchId -
Returns:

clean

void clean(String batchId)
Cleanup the temporary storage associated to the batch

Parameters:
batchId -

initBatch

String initBatch(String batchId,
                 String contextName)
Initialize a batch with a given batchId and Context Name If batchId is not provided, it will be automatically generated

Parameters:
batchId -
contextName -
Returns:
the batchId

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.