|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.DefaultComponent org.nuxeo.ecm.automation.server.jaxrs.batch.BatchManagerComponent
public class BatchManagerComponent
Runtime Component implementing the BatchManager
service
Constructor Summary | |
---|---|
BatchManagerComponent()
|
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 |
Blob |
getBlob(String batchId,
String fileId)
|
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 |
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
activate, applicationStarted, deactivate, getAdapter, registerContribution, registerExtension, unregisterContribution, unregisterExtension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchManagerComponent()
Method Detail |
---|
public String initBatch(String batchId, String contextName)
BatchManager
initBatch
in interface BatchManager
public void addStream(String batchId, String idx, InputStream is, String name, String mime) throws IOException
BatchManager
Batch
if needed
Streams are persisted as temporary files
addStream
in interface BatchManager
IOException
public List<Blob> getBlobs(String batchId)
BatchManager
getBlobs
in interface BatchManager
public Blob getBlob(String batchId, String fileId)
getBlob
in interface BatchManager
public void clean(String batchId)
BatchManager
clean
in interface BatchManager
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |