public abstract class DefaultSettingsManager extends Object implements SettingsManager
| Constructor and Description |
|---|
DefaultSettingsManager() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> Map<String,String> |
convertObjectToDotNotationMap(T object) |
void |
disableDemo()
Disables the use of the demo editor.
|
Boolean |
enableDemo()
Checks whether the demo editor is enabled.
|
DocsIntegrationSdkProperties |
getDocsIntegrationSdkProperties()
Returns Docs Integration SDK Properties.
|
protected <T> List<String> |
getNamesSettings(T object) |
String |
getSecurityHeader()
Returns the authorization header.
|
String |
getSecurityKey()
Returns the security key.
|
String |
getSecurityPrefix()
Returns the authorization prefix.
|
abstract String |
getSetting(String name)
Returns a value of the setting with the name specified in the request.
|
Boolean |
getSettingBoolean(String name,
Boolean defaultValue)
Returns a boolean value of the setting with the name specified in the request.
|
Map<String,String> |
getSettings()
Returns a map of the settings.
|
Boolean |
isDemoActive()
Checks whether the demo editor is active.
|
Boolean |
isDemoAvailable()
Checks whether the demo editor is available.
|
Boolean |
isIgnoreSSLCertificate()
Checks whether the setting to ignore SSL certificate is enabled.
|
Boolean |
isSecurityEnabled()
Checks whether JWT validation is enabled.
|
abstract void |
setSetting(String name,
String value)
Sets a value for the setting with the name specified in the request.
|
void |
setSettings(Settings settings)
Sets the settings specified with the "Settings" object.
|
public abstract String getSetting(String name)
SettingsManagergetSetting in interface SettingsManagername - The setting name.public abstract void setSetting(String name, String value)
SettingsManagersetSetting in interface SettingsManagername - The setting name.value - The setting value.public void setSettings(Settings settings) throws IntrospectionException, InvocationTargetException, IllegalAccessException
SettingsManagersetSettings in interface SettingsManagersettings - 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.Settingspublic Map<String,String> getSettings() throws IntrospectionException, InvocationTargetException, IllegalAccessException
SettingsManagergetSettings in interface SettingsManagerIntrospectionException - 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.public Boolean getSettingBoolean(String name, Boolean defaultValue)
SettingsManagergetSettingBoolean in interface SettingsManagername - The setting name.defaultValue - The setting default value.public DocsIntegrationSdkProperties getDocsIntegrationSdkProperties()
SettingsManagergetDocsIntegrationSdkProperties in interface SettingsManagerDocsIntegrationSdkProperties.public Boolean isSecurityEnabled()
SettingsManagerisSecurityEnabled in interface SettingsManagerpublic String getSecurityKey()
SettingsManagergetSecurityKey in interface SettingsManagerpublic String getSecurityHeader()
SettingsManagergetSecurityHeader in interface SettingsManagerpublic String getSecurityPrefix()
SettingsManagergetSecurityPrefix in interface SettingsManagerpublic Boolean isIgnoreSSLCertificate()
SettingsManagerisIgnoreSSLCertificate in interface SettingsManagerpublic Boolean enableDemo()
SettingsManagerenableDemo in interface SettingsManagerpublic void disableDemo()
SettingsManagerdisableDemo in interface SettingsManagerpublic Boolean isDemoActive()
SettingsManagerisDemoActive in interface SettingsManagerpublic Boolean isDemoAvailable()
SettingsManagerisDemoAvailable in interface SettingsManagerprotected <T> Map<String,String> convertObjectToDotNotationMap(T object) throws IntrospectionException, InvocationTargetException, IllegalAccessException
protected <T> List<String> getNamesSettings(T object) throws IntrospectionException, InvocationTargetException, IllegalAccessException
Copyright © 2023–2024. All rights reserved.