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