@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 com.netflix.genie.common.exceptions.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 attachmentcom.netflix.genie.common.exceptions.GenieException - For any error during the save processvoid copy(java.lang.String jobId,
java.io.File destination)
throws com.netflix.genie.common.exceptions.GenieException
jobId - The id of the job to get the attachments for.destination - The directory to copy the attachments intocom.netflix.genie.common.exceptions.GenieException - For any error during the copy processvoid delete(java.lang.String jobId)
throws com.netflix.genie.common.exceptions.GenieException
jobId - The id of the job to delete the attachments forcom.netflix.genie.common.exceptions.GenieException - For any error during the delete process