Interface EditorService


public interface EditorService
Сервис настройки диалога (редактора) на стороне сервера - по аналогии с TableService. Класс редактора находится в пакете <пакет-модуля>.editor среди наследников ru.bitel.bgbilling.kernel.editor.server.bean.BGEditorInfo по имени Editor + key.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<ru.bitel.bgbilling.common.model.KeyValue>
    editorDirectoryGet(String component, int componentId, String editorKey, String fieldName, BGUEditorParams editorParams)
    Загрузка справочника (набора значений) для поля COMBOBOX редактора.
    editorGet(String component, int componentId, String editorKey, BGUEditorParams editorParams)
    Загрузка редактора: заголовок диалога, раскладка параметров и текущие значения полей.
    editorList(String componentId)
    Список доступных диалогов компонента (ключи без префикса "Editor").
    editorSave(String component, int componentId, String editorKey, BGUEditorParams editorParams)
    Сохранение значений полей на стороне сервера (предваряется валидацией).
    List<ru.bitel.bgbilling.common.model.KeyValue>
    editorValidate(String component, int componentId, String editorKey, BGUEditorParams editorParams)
    Валидация значений полей на стороне сервера.
  • Method Details

    • editorGet

      BGUEditorData editorGet(String component, int componentId, String editorKey, BGUEditorParams editorParams) throws ru.bitel.bgbilling.common.BGException
      Загрузка редактора: заголовок диалога, раскладка параметров и текущие значения полей.
      Throws:
      ru.bitel.bgbilling.common.BGException
    • editorDirectoryGet

      List<ru.bitel.bgbilling.common.model.KeyValue> editorDirectoryGet(String component, int componentId, String editorKey, String fieldName, BGUEditorParams editorParams) throws ru.bitel.bgbilling.common.BGException
      Загрузка справочника (набора значений) для поля COMBOBOX редактора.
      Throws:
      ru.bitel.bgbilling.common.BGException
    • editorValidate

      List<ru.bitel.bgbilling.common.model.KeyValue> editorValidate(String component, int componentId, String editorKey, BGUEditorParams editorParams) throws ru.bitel.bgbilling.common.BGException
      Валидация значений полей на стороне сервера. Возврат пустого списка - ошибок нет.
      Throws:
      ru.bitel.bgbilling.common.BGException
    • editorSave

      String editorSave(String component, int componentId, String editorKey, BGUEditorParams editorParams) throws ru.bitel.bgbilling.common.BGException
      Сохранение значений полей на стороне сервера (предваряется валидацией). Возврат результата сохранения (например, id объекта).
      Throws:
      ru.bitel.bgbilling.common.BGException
    • editorList

      List<String> editorList(String componentId) throws ru.bitel.bgbilling.common.BGException
      Список доступных диалогов компонента (ключи без префикса "Editor").
      Throws:
      ru.bitel.bgbilling.common.BGException