Interface ReportService
public interface ReportService
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckAccessAllowByReport(String reportId) Проверка возможности просмотра отчета для пользователяbooleancheckReportExists(String reportFileName) getAccessRulesByReportId(String reportId) getListFromSqlXml(String sql) Список элементов (id, title) по sql-запросу (аналог action GetListFromSql).List<ru.bitel.bgbilling.common.model.KeyValue> getModuleReportList(String reportModule) getModulesAndServicesTreeXml(String nodeContent) Дерево модулей и услуг (аналог action GetModulesAndServicesTree).getReportData(String reportModule, String reportId) Генерация отчета (аналог action Report): возвращает данные отчета и его content-type.List<ru.bitel.bgbilling.modules.reports.common.dto.ReportModule> voidvoidsaveReport(String reportFileName, String xmlData) Сохранение xml описания отчета на сервере в папке reports после редактирования в конструктореvoidupdateAccessRulesByReport(ReportAccessRule reportAccessRule) Обновление/добавление правила доступа видимости отчета
-
Method Details
-
saveReport
Сохранение xml описания отчета на сервере в папке reports после редактирования в конструкторе- Parameters:
xmlData-- Throws:
ru.bitel.bgbilling.common.BGException
-
checkReportExists
- Throws:
ru.bitel.bgbilling.common.BGException
-
getAccessRulesByReportId
ReportAccessRule getAccessRulesByReportId(String reportId) throws ru.bitel.bgbilling.common.BGException - Parameters:
reportId- ID отчета(строковое название файла отчета без расширения)- Throws:
ru.bitel.bgbilling.common.BGException
-
reportModules
List<ru.bitel.bgbilling.modules.reports.common.dto.ReportModule> reportModules() throws ru.bitel.bgbilling.common.BGException- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
updateAccessRulesByReport
void updateAccessRulesByReport(ReportAccessRule reportAccessRule) throws ru.bitel.bgbilling.common.BGException Обновление/добавление правила доступа видимости отчета- Parameters:
reportAccessRule- правила доступа видимости отчета- Throws:
ru.bitel.bgbilling.common.BGException
-
checkAccessAllowByReport
Проверка возможности просмотра отчета для пользователя- Parameters:
reportId- ID отчета(строковое название файла отчета без расширения)- Throws:
ru.bitel.bgbilling.common.BGException
-
getModuleReportList
List<ru.bitel.bgbilling.common.model.KeyValue> getModuleReportList(String reportModule) throws ru.bitel.bgbilling.common.BGException - Parameters:
reportModule-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
getReportData
String getReportData(String reportModule, String reportId) throws ru.bitel.bgbilling.common.BGException - Parameters:
reportId-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
resetReportCache
void resetReportCache() throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
reportGenerate
ReportData reportGenerate(int moduleId, String reportId, Map<String, String> params, String maildest) throws ru.bitel.bgbilling.common.BGExceptionГенерация отчета (аналог action Report): возвращает данные отчета и его content-type. Если передан maildest — отчет дополнительно отправляется на email.- Parameters:
moduleId- идентификатор модуля (для отправки на мыло)reportId- ID отчетаparams- параметры отчета с префиксом "report_" (как в action Report: report_id, report_date1 ...)maildest- адрес email для отправки отчета (или null)- Throws:
ru.bitel.bgbilling.common.BGException
-
getListFromSqlXml
Список элементов (id, title) по sql-запросу (аналог action GetListFromSql). Возвращает xml вида- ...
- Throws:
ru.bitel.bgbilling.common.BGException
-
getModulesAndServicesTreeXml
String getModulesAndServicesTreeXml(String nodeContent) throws ru.bitel.bgbilling.common.BGException Дерево модулей и услуг (аналог action GetModulesAndServicesTree).- Parameters:
nodeContent- сериализованный тег module из описания фильтра отчета (или пусто)- Returns:
- xml вида
... , или null если nodeContent пуст. - Throws:
ru.bitel.bgbilling.common.BGException
-