public class BatchDocumentHelper extends Object
DocumentConversion| Constructor and Description |
|---|
BatchDocumentHelper(DocumentConversion docConversionService)
Sets the service object.
|
| Modifier and Type | Method and Description |
|---|---|
BatchDocumentResponse |
addDocumentToBatch(String batchId,
String documentId)
Adds a document to the batch whose ids are specified
PUT /v1/batches/{batch_id}/documents/{document_id}.
|
BatchDocumentResponse |
getBatchDocument(String batchId,
String documentId)
Retrieves the document from the batch whose ids are specified
GET /v1/batches/{batch_id}/documents/{document_id}.
|
BatchDocumentCollection |
getBatchDocumentCollection(String batchId,
Map<String,Object> batchDocListParams)
Gets a list of existing documents in the batch with optional query parameters for filtering results.
|
public BatchDocumentHelper(DocumentConversion docConversionService)
docConversionService - the doc conversion servicepublic BatchDocumentResponse addDocumentToBatch(String batchId, String documentId)
batchId - id of the batch to be retrieveddocumentId - id of the document to be retrievedDocumentConversion.addDocumentToBatch(String, String)public BatchDocumentCollection getBatchDocumentCollection(String batchId, Map<String,Object> batchDocListParams)
batchId - The id for the batch whose documents are returnedbatchDocListParams - The parameters to be used in the batch documents list service call.
The parameters - token, limit, since, job_id and media_type are optional
DocumentConversion.getBatchDocumentCollection(String, Map)public BatchDocumentResponse getBatchDocument(String batchId, String documentId)
batchId - id of the batch to be retrieveddocumentId - id of the document to be retrievedDocumentConversion.getBatchDocument(String, String)Copyright © 2015. All rights reserved.