Enum Class KbextSetupKeys
- All Implemented Interfaces:
Serializable,Comparable<KbextSetupKeys>,Constable,ParameterMapKey
Ключи и значения по умолчанию живут здесь, а не в настройках сервера:
конфигурация плагина хранится в таблице plugin_config и приходит в
BGPluginServer.getSetup(). Чтение — через KbextSettings,
которая отдаёт дефолт из этого перечисления, когда значения в конфигурации
плагина ещё нет.
Три текста у константы разные, и путать их нельзя: getName() — то,
что администратор пишет в конфигурации плагина, getTitle() — подпись
в панели, getDescription() — текст справки.
Глобальные переключатели ядра (kb.enabled, интервал фоновой
синхронизации) — на стороне KbSetupKeys и в этих настройках не дублируются.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionВключение синхронизацииПараллельность синхронизацииТаймаут синхронизацииДоступ к веб-авторингуРазмер документа -
Method Summary
Modifier and TypeMethodDescriptiongetName()getTitle()static KbextSetupKeysReturns the enum constant of this class with the specified name.static KbextSetupKeys[]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
-
SYNC_ENABLED
Включение синхронизации
kbext.sync.enabled=true
Общее включение операций синхронизации и веб-авторинга плагина; при выключении эти операции отклоняются
-
SYNC_MAX_PARALLEL
Параллельность синхронизации
kbext.sync.max.parallel=2
Число одновременных записей документов в локальный RAG при синхронизации; 0 — последовательно
-
SYNC_TIMEOUT_S
Таймаут синхронизации
kbext.sync.timeout.s=60
Таймаут одной операции синхронизации (партии документов), секунд
-
WEBUI_ALLOWED_ROLES
Доступ к веб-авторингу
kbext.webui.allowed.roles=
Список id разрешённых договоров через запятую (web-сессия договорная, поэтому именно договоры); пусто — доступна любому договору с правом WRITE на БЗ
-
WEBUI_MAX_DOC_SIZE_B
Размер документа
kbext.webui.max.doc.size.b=1048576
Максимальный размер загружаемого документа в веб-авторинге, байт; превышение отклоняется
-
-
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
-