public interface IFilePersistor
Modifier and Type | Method and Description |
---|---|
AttachedFile |
find(java.lang.String id)
Find AttachedFile by primary key.
|
java.util.Collection<AttachedFile> |
findLibrary(java.lang.String libraryId)
Find files belonging to a library.
|
void |
remove(java.lang.String id)
Remove the file from the storage container.
|
void |
removeLibrary(java.lang.String libraryId)
Removes files belonging to a library.
|
void |
save(AttachedFile file)
Persist a File (stored somewhere).
|
void save(AttachedFile file)
This method should generate a unique identifier for the file.
file
- Object of class AttachedFile
to be persistedvoid remove(java.lang.String id)
id
- unique identifier of the filevoid removeLibrary(java.lang.String libraryId)
libraryId
- Unique identifier of the files libraryAttachedFile find(java.lang.String id)
id
- unique identifier of the filejava.util.Collection<AttachedFile> findLibrary(java.lang.String libraryId)
libraryId
- Unique identifier of the files libraryAttachedFile