Class FileStorageOnDisk
java.lang.Object
net.n2oapp.framework.sandbox.file_storage.FileStorageOnDisk
- All Implemented Interfaces:
FileStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFileContent(String projectId, String file) Получение содержимого файлаgetProjectFiles(String projectId) Получение списка файловbooleanisProjectExists(String projectId) Проверка существования проектаvoidСохранение файла
-
Constructor Details
-
FileStorageOnDisk
public FileStorageOnDisk()
-
-
Method Details
-
saveFile
Description copied from interface:FileStorageСохранение файла- Specified by:
saveFilein interfaceFileStorage- Parameters:
projectId- Идентификатор проектаfile- Имя файлаsource- Содержимое файла
-
getFileContent
Description copied from interface:FileStorageПолучение содержимого файла- Specified by:
getFileContentin interfaceFileStorage- Parameters:
projectId- Идентификатор проектаfile- Имя файла- Returns:
- Содержимое файла
-
getProjectFiles
Description copied from interface:FileStorageПолучение списка файлов- Specified by:
getProjectFilesin interfaceFileStorage- Parameters:
projectId- Идентификатор проекта- Returns:
- Список моделей файлов
-
isProjectExists
Description copied from interface:FileStorageПроверка существования проекта- Specified by:
isProjectExistsin interfaceFileStorage- Parameters:
projectId- Идентификатор проекта- Returns:
- true - проект существует, false - проект не существует
-