类 DefaultSettingsManager
java.lang.Object
com.onlyoffice.manager.settings.DefaultSettingsManager
- 所有已实现的接口:
SettingsManager
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明convertObjectToDotNotationMap(T object) voidDisables the use of the demo editor.Checks whether the demo editor is enabled.Returns Docs Integration SDK Properties.getNamesSettings(T object) Returns the authorization header.Returns the security key.Returns the authorization prefix.abstract StringgetSetting(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.abstract 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.
-
构造器详细资料
-
DefaultSettingsManager
public DefaultSettingsManager()
-
-
方法详细资料
-
getSetting
从接口复制的说明:SettingsManagerReturns a value of the setting with the name specified in the request.- 指定者:
getSetting在接口中SettingsManager- 参数:
name- The setting name.- 返回:
- The setting value.
-
setSetting
从接口复制的说明:SettingsManagerSets a value for the setting with the name specified in the request.- 指定者:
setSetting在接口中SettingsManager- 参数:
name- The setting name.value- The setting value.
-
getSettings
public Map<String,String> getSettings() throws IntrospectionException, InvocationTargetException, IllegalAccessException从接口复制的说明:SettingsManagerReturns a map of the settings.- 指定者:
getSettings在接口中SettingsManager- 返回:
- 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.
-
setSettings
public void setSettings(Settings settings) throws IntrospectionException, InvocationTargetException, IllegalAccessException 从接口复制的说明:SettingsManagerSets the settings specified with the "Settings" object.- 指定者:
setSettings在接口中SettingsManager- 参数:
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.- 另请参阅:
-
getSettingBoolean
从接口复制的说明:SettingsManagerReturns a boolean value of the setting with the name specified in the request.- 指定者:
getSettingBoolean在接口中SettingsManager- 参数:
name- The setting name.defaultValue- The setting default value.- 返回:
- The setting boolean value.
-
getDocsIntegrationSdkProperties
从接口复制的说明:SettingsManagerReturns Docs Integration SDK Properties.- 指定者:
getDocsIntegrationSdkProperties在接口中SettingsManager- 返回:
- The object
DocsIntegrationSdkProperties.
-
isSecurityEnabled
从接口复制的说明:SettingsManagerChecks whether JWT validation is enabled.- 指定者:
isSecurityEnabled在接口中SettingsManager- 返回:
- True if JWT validation is enabled.
-
getSecurityKey
从接口复制的说明:SettingsManagerReturns the security key.- 指定者:
getSecurityKey在接口中SettingsManager- 返回:
- The security key.
-
getSecurityHeader
从接口复制的说明:SettingsManagerReturns the authorization header.- 指定者:
getSecurityHeader在接口中SettingsManager- 返回:
- The authorization header.
-
getSecurityPrefix
从接口复制的说明:SettingsManagerReturns the authorization prefix.- 指定者:
getSecurityPrefix在接口中SettingsManager- 返回:
- The authorization prefix.
-
isIgnoreSSLCertificate
从接口复制的说明:SettingsManagerChecks whether the setting to ignore SSL certificate is enabled.- 指定者:
isIgnoreSSLCertificate在接口中SettingsManager- 返回:
- True if the setting to ignore SSL certificate is enabled.
-
enableDemo
从接口复制的说明:SettingsManagerChecks whether the demo editor is enabled.- 指定者:
enableDemo在接口中SettingsManager- 返回:
- True if the demo editor is enabled.
-
disableDemo
public void disableDemo()从接口复制的说明:SettingsManagerDisables the use of the demo editor.- 指定者:
disableDemo在接口中SettingsManager
-
isDemoActive
从接口复制的说明:SettingsManagerChecks whether the demo editor is active.- 指定者:
isDemoActive在接口中SettingsManager- 返回:
- True if the demo editor is enabled and the demo version has not expired.
-
isDemoAvailable
从接口复制的说明:SettingsManagerChecks whether the demo editor is available.- 指定者:
isDemoAvailable在接口中SettingsManager- 返回:
- True if the demo version has not expired.
-
convertObjectToDotNotationMap
protected <T> Map<String,String> convertObjectToDotNotationMap(T object) throws IntrospectionException, InvocationTargetException, IllegalAccessException -
getNamesSettings
protected <T> List<String> getNamesSettings(T object) throws IntrospectionException, InvocationTargetException, IllegalAccessException
-