Package com.flower.docs.service.api.job
Interface JobService
-
- All Known Subinterfaces:
ArchiveService
,SearchExportService
public interface JobService
Asynchronous job service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getJobError(java.lang.String jobId)
Get the error message of an asynchronous jobjavax.activation.DataHandler
getJobResult(java.lang.String jobId)
Get archive file if the asynchronous archive job is donecom.flower.docs.domain.job.FlowerJobStatus
getJobStatus(java.lang.String jobId)
Get the status of an asynchronous job
-
-
-
Method Detail
-
getJobStatus
com.flower.docs.domain.job.FlowerJobStatus getJobStatus(java.lang.String jobId)
Get the status of an asynchronous job- Parameters:
jobId
- The identifier of a job
-
getJobError
java.lang.String getJobError(java.lang.String jobId)
Get the error message of an asynchronous job- Parameters:
jobId
- The identifier of a job
-
getJobResult
javax.activation.DataHandler getJobResult(java.lang.String jobId) throws com.flower.docs.domain.exception.FunctionalException, com.flower.docs.domain.exception.TechnicalException
Get archive file if the asynchronous archive job is done- Parameters:
jobId
- The identifier of a job- Throws:
com.flower.docs.domain.exception.FunctionalException
- If a functional error occurredcom.flower.docs.domain.exception.TechnicalException
- If a technical error occurred
-
-