Enum Class KbSetupKeys

java.lang.Object
java.lang.Enum<KbSetupKeys>
ru.bitel.bgbilling.kernel.kb.server.bean.enums.KbSetupKeys
All Implemented Interfaces:
Serializable, Comparable<KbSetupKeys>, Constable, ParameterMapKey

public enum KbSetupKeys extends Enum<KbSetupKeys> implements ParameterMapKey
Настройки ядра - управление базами знаний (RAG).

Ключи и значения по умолчанию. Три текста у константы разные и путать их нельзя: getName() - что администратор пишет в конфигурации, getTitle() - подпись в панели, getDescription() - текст справки.

  • Enum Constant Details

    • KB_ENABLED

      public static final KbSetupKeys KB_ENABLED

      Включение БЗ

      kb.enabled=true

      Общее включение управления базами знаний. По умолчанию включено

    • KB_AUDIT_RETENTION_DAYS

      public static final KbSetupKeys KB_AUDIT_RETENTION_DAYS

      Хранение журнала

      kb.audit.retention.days=90

      Срок хранения журнала запросов к БЗ, дней. 0 - журнал не очищается

    • KB_RATE_LIMIT_PER_USER

      public static final KbSetupKeys KB_RATE_LIMIT_PER_USER

      Лимит запросов

      kb.rate.limit.per.user=0

      Число запросов к БЗ в минуту на одного пользователя. 0 - лимит не наложен

    • KB_ADMIN_ROLES

      public static final KbSetupKeys KB_ADMIN_ROLES

      Роли администратора

      kb.admin.roles=

      Роли с правами администратора БЗ, через запятую. Пусто - только глобальный ADMIN

    • KB_LOCAL_RAG_ENDPOINT

      public static final KbSetupKeys KB_LOCAL_RAG_ENDPOINT

      Локальный RAG

      kb.local.rag.endpoint=

      URL локального RAG-API для локальных БЗ (billing-local/clients/staff). Пусто - локальный RAG не настроен

    • KB_PROVIDER_TOKEN

      public static final KbSetupKeys KB_PROVIDER_TOKEN

      Токен провайдера

      kb.provider.token=

      Сырой токен, которым провайдер аутентифицируется в центре BiTel (заголовок X-Provider-Token). Выдаётся BiTel; в базе хранится только SHA-256 (таблица kb_provider_token)

    • KB_SYNC_CENTER_ENDPOINT

      public static final KbSetupKeys KB_SYNC_CENTER_ENDPOINT

      Центр синхронизации

      kb.sync.center.endpoint=

      URL центра BiTel для синхронизации billing-local. Пусто - берётся endpoint БЗ billing-remote

  • Method Details

    • values

      public static KbSetupKeys[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static KbSetupKeys valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Specified by:
      getName in interface ParameterMapKey
    • getDefaultValue

      public String getDefaultValue()
      Specified by:
      getDefaultValue in interface ParameterMapKey
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface ParameterMapKey
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface ParameterMapKey