Class DispatchFileStorageDao
java.lang.Object
ru.bitel.bgbilling.plugins.dispatch.server.dao.DispatchFileStorageDao
DAO для работы с файлами рассылок. Вместо работы с этим DAO рекомендуется работать с 
DispatchService- 
Constructor Summary
ConstructorsConstructorDescriptionDispatchFileStorageDao(Connection con, ru.bitel.bgbilling.kernel.plugin.server.BGPluginServer plugin)  - 
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByObject(Id o) Удаляет все файлы, привязанные к данной сущностиvoiddeleteFile(int fileId) Удаление файла с указанным кодомjakarta.activation.DataSourcegetDataSource(BGServerFile serverFile) getFileInputStream(int fileId) Возврвщает поток для чтения файла с указанным кодомgetFileList(Id object) Возвращает список всех привязанных к данной сущности файловgetServerFile(int fileId) Возвращает BGServerFile для данного кода файлаuploadFile(Id object, String fileName, byte[] fileData) Загрузить файл, привязанный к данной сущности 
- 
Constructor Details
- 
DispatchFileStorageDao
public DispatchFileStorageDao(Connection con, ru.bitel.bgbilling.kernel.plugin.server.BGPluginServer plugin) throws ru.bitel.bgbilling.common.BGException - Throws:
 ru.bitel.bgbilling.common.BGException
 
 - 
 - 
Method Details
- 
uploadFile
public BGServerFile uploadFile(Id object, String fileName, byte[] fileData) throws ru.bitel.bgbilling.common.BGException Загрузить файл, привязанный к данной сущности- Parameters:
 object- сущность плагина рассылокfileName- имя файлаfileData- содержимое файла- Returns:
 - Throws:
 ru.bitel.bgbilling.common.BGException
 - 
deleteFile
public void deleteFile(int fileId) throws ru.bitel.bgbilling.common.BGException Удаление файла с указанным кодом- Parameters:
 fileId-- Throws:
 ru.bitel.bgbilling.common.BGException
 - 
getFileInputStream
Возврвщает поток для чтения файла с указанным кодом- Parameters:
 fileId-- Returns:
 - Throws:
 ru.bitel.bgbilling.common.BGExceptionIOException
 - 
getServerFile
Возвращает BGServerFile для данного кода файла- Parameters:
 fileId-- Returns:
 - Throws:
 ru.bitel.bgbilling.common.BGException
 - 
getFileList
Возвращает список всех привязанных к данной сущности файлов- Parameters:
 object-- Returns:
 - Throws:
 ru.bitel.bgbilling.common.BGException
 - 
deleteByObject
Удаляет все файлы, привязанные к данной сущности- Parameters:
 o-- Throws:
 ru.bitel.bgbilling.common.BGException
 - 
getDataSource
 
 -