Enum Class KbSetupKeys
- All Implemented Interfaces:
Serializable,Comparable<KbSetupKeys>,Constable,ParameterMapKey
Ключи и значения по умолчанию. Три текста у константы разные и путать их нельзя:
getName() - что администратор пишет в конфигурации, getTitle() - подпись в панели,
getDescription() - текст справки.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionРоли администратораХранение журналаВключение БЗЛокальный RAGТокен провайдераЛимит запросовЦентр синхронизации -
Method Summary
Modifier and TypeMethodDescriptiongetName()getTitle()static KbSetupKeysReturns the enum constant of this class with the specified name.static KbSetupKeys[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface ru.bitel.common.ParameterMapKey
getParent, getSubLevel
-
Enum Constant Details
-
KB_ENABLED
Включение БЗ
kb.enabled=true
Общее включение управления базами знаний. По умолчанию включено
-
KB_AUDIT_RETENTION_DAYS
Хранение журнала
kb.audit.retention.days=90
Срок хранения журнала запросов к БЗ, дней. 0 - журнал не очищается
-
KB_RATE_LIMIT_PER_USER
Лимит запросов
kb.rate.limit.per.user=0
Число запросов к БЗ в минуту на одного пользователя. 0 - лимит не наложен
-
KB_ADMIN_ROLES
Роли администратора
kb.admin.roles=
Роли с правами администратора БЗ, через запятую. Пусто - только глобальный ADMIN
-
KB_LOCAL_RAG_ENDPOINT
Локальный RAG
kb.local.rag.endpoint=
URL локального RAG-API для локальных БЗ (billing-local/clients/staff). Пусто - локальный RAG не настроен
-
KB_PROVIDER_TOKEN
Токен провайдера
kb.provider.token=
Сырой токен, которым провайдер аутентифицируется в центре BiTel (заголовок X-Provider-Token). Выдаётся BiTel; в базе хранится только SHA-256 (таблица kb_provider_token)
-
KB_SYNC_CENTER_ENDPOINT
Центр синхронизации
kb.sync.center.endpoint=
URL центра BiTel для синхронизации billing-local. Пусто - берётся endpoint БЗ billing-remote
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getName
- Specified by:
getNamein interfaceParameterMapKey
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceParameterMapKey
-
getTitle
- Specified by:
getTitlein interfaceParameterMapKey
-
getDescription
- Specified by:
getDescriptionin interfaceParameterMapKey
-