Interface FileStorage

All Known Implementing Classes:
FileStorageOnDisk, S3FileStorage

public interface FileStorage
  • Method Details

    • saveFile

      void saveFile(String projectId, String file, String source)
      Сохранение файла
      Parameters:
      projectId - Идентификатор проекта
      file - Имя файла
      source - Содержимое файла
    • getFileContent

      String getFileContent(String projectId, String file)
      Получение содержимого файла
      Parameters:
      projectId - Идентификатор проекта
      file - Имя файла
      Returns:
      Содержимое файла
    • getProjectFiles

      List<FileModel> getProjectFiles(String projectId)
      Получение списка файлов
      Parameters:
      projectId - Идентификатор проекта
      Returns:
      Список моделей файлов
    • isProjectExists

      boolean isProjectExists(String projectId)
      Проверка существования проекта
      Parameters:
      projectId - Идентификатор проекта
      Returns:
      true - проект существует, false - проект не существует