Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.server.jaxrs.batch
Class Batch

java.lang.Object
  extended by org.nuxeo.ecm.automation.server.jaxrs.batch.Batch

public class Batch
extends Object

Batch Object to encapsulate all data related to a batch, especially the temporary files used for Blobs

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

Constructor Summary
Batch(String id)
           
 
Method Summary
 void addBlob(String idx, Blob blob)
           
 void addStream(String idx, InputStream is, String name, String mime)
           
 void clear()
           
 Blob getBlob(String fileId)
           
 List<Blob> getBlobs()
          Return the uploaded blobs in the order the user choose to upload them
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Batch

public Batch(String id)
Method Detail

addBlob

public void addBlob(String idx,
                    Blob blob)

addStream

public void addStream(String idx,
                      InputStream is,
                      String name,
                      String mime)
               throws IOException
Throws:
IOException

getBlobs

public List<Blob> getBlobs()
Return the uploaded blobs in the order the user choose to upload them

Returns:

getBlob

public Blob getBlob(String fileId)

clear

public void clear()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.