Interface FileStorageService


public interface FileStorageService
  • Method Details

    • add

      void add(String fileUniqueName, InputStream fileData) throws IOException
      Add a file
      Parameters:
      fileUniqueName - the file unique name
      fileData - the file input stream
      Throws:
      IOException - is a file could not be stored
    • fetch

      Optional<InputStream> fetch(String fileUniqueName)
    • deleteAll

      void deleteAll(List<String> fileUniqueNames) throws IOException
      Delete the files data identified by the fileUniqueNames. If a file is already deleted, no exception must be raised Must not fail if the files have already been deleted
      Parameters:
      fileUniqueNames - The unique names of the files that should be deleted
      Throws:
      IOException - is a file could not be deleted