public interface FileService
| Modifier and Type | Method and Description |
|---|---|
FileInfo |
deleteFile(long id)
Delete file with the given id The file is not physically deleted, it is
only a logical deletion
|
FileItem |
getFile(long id)
Get the file (info + binary) of the given id
|
FileInfo |
getFileInfo(long id)
Get only the file info of the given id
|
FileItem |
updateFile(FileItem file)
Update the stored file using the provided DAO and binary provider.
|
FileItem |
writeFile(FileItem file)
Store the file using the provided DAO and binary provider.
|
FileInfo getFileInfo(long id)
id - file idFileItem getFile(long id) throws FileStorageException
id - file idFileStorageException - signals that an I/O exception of some sort has
occurred.FileItem writeFile(FileItem file) throws FileStorageException, IOException
file - file itemIOException - signals that an I/O exception of some sort has
occurred.FileStorageException - signals that an error occur on save resource.FileItem updateFile(FileItem file) throws FileStorageException, IOException
file - file itemIOException - signals that an I/O exception of some sort has
occurred.FileStorageException - signals that an error occur on save resource.FileInfo deleteFile(long id)
id - Id of the file to deleteCopyright © 2003–2018 eXo Platform SAS. All rights reserved.