public class JobHelper extends Object
DocumentConversion| Constructor and Description |
|---|
JobHelper(DocumentConversion docConversionService)
Sets the service object.
|
| Modifier and Type | Method and Description |
|---|---|
JobResponse |
createJob(String name,
String batchId,
ConversionTarget conversionTarget,
com.google.gson.JsonObject config)
Creates a new job by submitting a batch for processing
POST /v1/jobs.
|
Job |
getJob(String jobId)
Gets information about a job
GET /v1/jobs/{job_id}.
|
JobCollection |
getJobCollection(Map<String,Object> jobListParams)
Gets a list of all jobs with optional query parameters for filtering results.
|
InputStream |
getJobLog(String jobId)
Gets the job processing log
GET /v1/jobs/{job_id}/log.
|
public JobHelper(DocumentConversion docConversionService)
docConversionService - the doc conversion servicepublic JobCollection getJobCollection(Map<String,Object> jobListParams)
jobListParams - The parameters to be used in the job list service call.
The parameters - token, limit, since, name, since and status are optional
DocumentConversion.getJobCollection(Map)public JobResponse createJob(String name, String batchId, ConversionTarget conversionTarget, com.google.gson.JsonObject config)
name - The name of the jobbatchId - The id of the batch to processconversionTarget - The conversion target to useconfig - The configuration to use for the job (optional), pass null to use default configDocumentConversion.createJob(String, String, ConversionTarget, JsonObject)public Job getJob(String jobId)
jobId - The id of the jobDocumentConversion.getJob(String)public InputStream getJobLog(String jobId)
jobId - The id of the jobDocumentConversion.getJobLog(String)Copyright © 2015. All rights reserved.