public interface DbFilesHandler extends DbHandler
boolean downloadContent(Connection c, long fileId, OutputStream output) throws SQLException, IOException
SQLExceptionIOExceptionboolean downloadPreview(Connection c, long fileId, OutputStream output) throws SQLException, IOException
SQLExceptionIOExceptionDbFile getFile(Connection c, long id) throws SQLException
SQLExceptionDbFile getFile(Connection c, String hash) throws SQLException
SQLExceptionDbFile[] getFiles(Connection c) throws SQLException
SQLExceptionDbFile[] getFiles(Connection c, long[] ids) throws SQLException
SQLExceptionDbFile[] getFiles(Connection c, String[] hashes) throws SQLException
SQLExceptionDbFile[] getFiles(Connection c, long objectId, Boolean published, String mimeType) throws SQLException
SQLExceptionlong[] getFileIds(Connection c) throws SQLException
SQLExceptionlong[] getFileIds(Connection c, long objectId, Boolean published, String mimeType) throws SQLException
SQLExceptionvoid loadFileTranslations(Connection c, DbFile file, DbLanguagesHandler languageHandler) throws SQLException
SQLExceptionvoid loadFileTranslations(Connection c, DbFile file, Map<Long,String> languages) throws SQLException
SQLExceptionvoid loadFileTranslations(Connection c, DbFile[] files, DbLanguagesHandler languageHandler) throws SQLException
SQLExceptionvoid loadFileTranslations(Connection c, DbFile[] files, Map<Long,String> languages) throws SQLException
SQLExceptionvoid removeFile(Connection c, long id) throws SQLException
SQLExceptionvoid removeFiles(Connection c, long[] ids) throws SQLException
SQLExceptionvoid saveFile(Connection c, DbFile file, File content) throws SQLException, IOException
SQLExceptionIOExceptionvoid saveFile(Connection c, DbFile file, File content, File preview, DbLanguagesHandler languageHandler) throws SQLException, IOException
SQLExceptionIOExceptionvoid saveFile(Connection c, DbFile file, File content, File preview, Map<Long,String> languageMap) throws SQLException, IOException
SQLExceptionIOExceptionvoid setFileContent(Connection c, long fileId, File content, File preview) throws SQLException, IOException
SQLExceptionIOExceptionCopyright © 2019 OpenEstate. All rights reserved.