Interface AttachmentService

All Known Implementing Classes:
LocalFileSystemAttachmentServiceImpl, S3AttachmentServiceImpl

@Validated public interface AttachmentService
APIs for saving a job attachments sent in with Genie requests.
Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    saveAttachments(String jobId, Set<org.springframework.core.io.Resource> attachments)
    Save the attachments and return their URIs so agent executing the job can retrieve them.
  • Method Details

    • saveAttachments

      Set<URI> saveAttachments(@Nullable String jobId, Set<org.springframework.core.io.Resource> attachments) throws SaveAttachmentException
      Save the attachments and return their URIs so agent executing the job can retrieve them.
      Parameters:
      jobId - The id of the job these attachments are for, if one was present in the job request This is strictly for debugging and logging.
      attachments - The attachments sent by the user
      Returns:
      The set of URI which can be used to retrieve the attachments
      Throws:
      SaveAttachmentException - if an error is encountered while saving