@Validated
public interface AttachmentService
| Modifier and Type | Method and Description |
|---|---|
void |
copy(java.lang.String jobId,
java.io.File destination)
Copy all the attachments for a job into the specified directory.
|
void |
delete(java.lang.String jobId)
Delete the attachments for the given job.
|
void |
save(java.lang.String jobId,
java.lang.String filename,
java.io.InputStream content)
Save a given attachment for a job for later retrieval.
|
void save(java.lang.String jobId,
java.lang.String filename,
java.io.InputStream content)
throws GenieException
jobId - The id of the job to save the attachment forfilename - The name of the attachmentcontent - A stream to access the contents of the attachmentGenieException - For any error during the save processvoid copy(java.lang.String jobId,
java.io.File destination)
throws GenieException
jobId - The id of the job to get the attachments for.destination - The directory to copy the attachments intoGenieException - For any error during the copy processvoid delete(java.lang.String jobId)
throws GenieException
jobId - The id of the job to delete the attachments forGenieException - For any error during the delete process