public class BatchHelper extends Object
DocumentConversion| Constructor and Description |
|---|
BatchHelper(DocumentConversion docConversionService)
Sets the service object.
|
| Modifier and Type | Method and Description |
|---|---|
Batch |
createBatch(String name,
List<Property> properties)
Creates a new batch with name and properties
POST /v1/batches.
|
String |
filterJson(com.google.gson.JsonObject jsonObject)
Escapes the Json object string to filter and send in the request.
|
Batch |
getBatch(String batchId)
Gets an existing batch
GET /v1/batches/{batch_id}.
|
BatchCollection |
getBatchCollection(Map<String,Object> batchListParams)
Gets a collection of all existing batches with optional query parameters for filtering results.
|
Batch |
updateBatch(String batchId,
String name,
List<Property> properties)
Updates an existing batch with the provided name and properties
PUT /v1/batches/{batch_id}.
|
public BatchHelper(DocumentConversion docConversionService)
docConversionService - the doc conversion servicepublic Batch createBatch(String name, List<Property> properties)
name - the name of the created batchproperties - the properties for the created batchDocumentConversion.createBatch(String, List)public BatchCollection getBatchCollection(Map<String,Object> batchListParams)
batchListParams - The parameters to be used in the batch list service call.
The parameters - token, limit, name and since are optional
DocumentConversion.getBatchCollection(Map)public Batch getBatch(String batchId)
batchId - id for the batch to be updatedDocumentConversion.getBatch(String)public Batch updateBatch(String batchId, String name, List<Property> properties)
batchId - id for the batch to be updatedname - name of the batch to be updatedproperties - properties of the batch to be updatedDocumentConversion.updateBatch(String, String, List)public String filterJson(com.google.gson.JsonObject jsonObject)
jsonObject - Json Object to be filteredCopyright © 2015. All rights reserved.