public class DispatchFileStorageDao
extends java.lang.Object
DispatchService| Constructor and Description |
|---|
DispatchFileStorageDao(java.sql.Connection con,
ru.bitel.bgbilling.kernel.plugin.server.BGPluginServer plugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteByObject(Id o)
Удаляет все файлы, привязанные к данной сущности
|
void |
deleteFile(int fileId)
Удаление файла с указанным кодом
|
javax.activation.DataSource |
getDataSource(BGServerFile serverFile) |
java.io.FileInputStream |
getFileInputStream(int fileId)
Возврвщает поток для чтения файла с указанным кодом
|
java.util.List<BGServerFile> |
getFileList(Id object)
Возвращает список всех привязанных к данной сущности файлов
|
BGServerFile |
getServerFile(int fileId)
Возвращает BGServerFile для данного кода файла
|
BGServerFile |
uploadFile(Id object,
java.lang.String fileName,
byte[] fileData)
Загрузить файл, привязанный к данной сущности
|
public DispatchFileStorageDao(java.sql.Connection con,
ru.bitel.bgbilling.kernel.plugin.server.BGPluginServer plugin)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic BGServerFile uploadFile(Id object, java.lang.String fileName, byte[] fileData) throws ru.bitel.bgbilling.common.BGException
object - сущность плагина рассылокfileName - имя файлаfileData - содержимое файлаru.bitel.bgbilling.common.BGExceptionpublic void deleteFile(int fileId)
throws ru.bitel.bgbilling.common.BGException
fileId - ru.bitel.bgbilling.common.BGExceptionpublic java.io.FileInputStream getFileInputStream(int fileId)
throws java.io.IOException
fileId - ru.bitel.bgbilling.common.BGExceptionjava.io.IOExceptionpublic BGServerFile getServerFile(int fileId) throws ru.bitel.bgbilling.common.BGException
fileId - ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<BGServerFile> getFileList(Id object) throws ru.bitel.bgbilling.common.BGException
object - ru.bitel.bgbilling.common.BGExceptionpublic void deleteByObject(Id o) throws ru.bitel.bgbilling.common.BGException
o - ru.bitel.bgbilling.common.BGExceptionpublic javax.activation.DataSource getDataSource(BGServerFile serverFile)