Interface FileStorage
- All Known Implementing Classes:
DummyFileStorage
public interface FileStorage
File storage interface.
-
Method Summary
-
Method Details
-
store
Store a file.- Parameters:
file- filename- file nameuser- user or nulldomain- domain or null (default)- Returns:
- unique file ID
- Throws:
Exception- exception
-
findFile
Find a file (latest version). The file delivered within the download must be physically temporarily available, so it can be delivered by a stream and the file referenced by the download will ALWAYS be deleted after sending it to the client; so it is necessary to create a temporary file in the download - never reference the original file, e.g. when a real file structure is used as a file storage!- Parameters:
uniqueFileId- unique file iddomain- domain or null (default)- Returns:
- download or null if file is not available
- Throws:
Exception- exception
-
delete
Delete a file.- Parameters:
uniqueFileId- unique file iddomain- domain or null (default)- Returns:
- true if at least one (of all versions) has been found and deleted
- Throws:
Exception- exception
-