Interface ReportService


public interface ReportService
  • Method Details

    • saveReport

      void saveReport(String reportFileName, String xmlData) throws ru.bitel.bgbilling.common.BGException
      Сохранение xml описания отчета на сервере в папке reports после редактирования в конструкторе
      Parameters:
      xmlData -
      Throws:
      ru.bitel.bgbilling.common.BGException
    • checkReportExists

      boolean checkReportExists(String reportFileName) throws ru.bitel.bgbilling.common.BGException
      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

      boolean checkAccessAllowByReport(String reportId) throws ru.bitel.bgbilling.common.BGException
      Проверка возможности просмотра отчета для пользователя
      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

      String getListFromSqlXml(String sql) throws ru.bitel.bgbilling.common.BGException
      Список элементов (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