接口 SettingsManager
- 所有已知实现类:
DefaultSettingsManager
public interface SettingsManager
-
方法概要
修饰符和类型方法说明voidDisables the use of the demo editor.Checks whether the demo editor is enabled.Returns Docs Integration SDK Properties.Returns the authorization header.Returns the security key.Returns the authorization prefix.getSetting(String name) Returns a value of the setting with the name specified in the request.getSettingBoolean(String name, Boolean defaultValue) Returns a boolean value of the setting with the name specified in the request.Returns a map of the settings.Checks whether the demo editor is active.Checks whether the demo editor is available.Checks whether the setting to ignore SSL certificate is enabled.Checks whether JWT validation is enabled.voidsetSetting(String name, String value) Sets a value for the setting with the name specified in the request.voidsetSettings(Settings settings) Sets the settings specified with the "Settings" object.
-
方法详细资料
-
getSetting
Returns a value of the setting with the name specified in the request.- 参数:
name- The setting name.- 返回:
- The setting value.
-
setSetting
Sets a value for the setting with the name specified in the request.- 参数:
name- The setting name.value- The setting value.
-
setSettings
void setSettings(Settings settings) throws IntrospectionException, InvocationTargetException, IllegalAccessException Sets the settings specified with the "Settings" object.- 参数:
settings- The settings to be set.- 抛出:
IntrospectionException- If the processing fails unexpectedly.InvocationTargetException- – If the underlying method throws an exception.IllegalAccessException- – If this Method object is enforcing Java language access control and the underlying method is inaccessible.- 另请参阅:
-
getSettings
Map<String,String> getSettings() throws IntrospectionException, InvocationTargetException, IllegalAccessExceptionReturns a map of the settings.- 返回:
- A map of the settings.
- 抛出:
IntrospectionException- If the processing fails unexpectedly.InvocationTargetException- – If the underlying method throws an exception.IllegalAccessException- – If this Method object is enforcing Java language access control and the underlying method is inaccessible.
-
getSettingBoolean
Returns a boolean value of the setting with the name specified in the request.- 参数:
name- The setting name.defaultValue- The setting default value.- 返回:
- The setting boolean value.
-
getDocsIntegrationSdkProperties
DocsIntegrationSdkProperties getDocsIntegrationSdkProperties()Returns Docs Integration SDK Properties.- 返回:
- The object
DocsIntegrationSdkProperties.
-
isSecurityEnabled
Boolean isSecurityEnabled()Checks whether JWT validation is enabled.- 返回:
- True if JWT validation is enabled.
-
isIgnoreSSLCertificate
Boolean isIgnoreSSLCertificate()Checks whether the setting to ignore SSL certificate is enabled.- 返回:
- True if the setting to ignore SSL certificate is enabled.
-
getSecurityKey
String getSecurityKey()Returns the security key.- 返回:
- The security key.
-
getSecurityHeader
String getSecurityHeader()Returns the authorization header.- 返回:
- The authorization header.
-
getSecurityPrefix
String getSecurityPrefix()Returns the authorization prefix.- 返回:
- The authorization prefix.
-
enableDemo
Boolean enableDemo()Checks whether the demo editor is enabled.- 返回:
- True if the demo editor is enabled.
-
disableDemo
void disableDemo()Disables the use of the demo editor. -
isDemoActive
Boolean isDemoActive()Checks whether the demo editor is active.- 返回:
- True if the demo editor is enabled and the demo version has not expired.
-
isDemoAvailable
Boolean isDemoAvailable()Checks whether the demo editor is available.- 返回:
- True if the demo version has not expired.
-