public interface ConfigurationManager
| Modifier and Type | Method and Description |
|---|---|
void |
deactivateDefaultBlog()
Deactivates the default blog of the current client.
|
ApplicationConfigurationProperties |
getApplicationConfigurationProperties()
Returns the current application properties.
|
ApplicationConfigurationProperties |
getApplicationConfigurationProperties(boolean forceCacheInvalidation)
Returns the current application properties.
|
ClientConfigurationProperties |
getClientConfigurationProperties()
Returns the client configuration properties of the current client.
|
DatabaseConfiguration |
getDatabaseConfiguration()
Return the DatabaseConfiguration that is created by a
DatabaseConfigurationFactory. |
DevelopmentProperties |
getDevelopmentProperties()
Returns the development properties of the running instance.
|
StartupProperties |
getStartupProperties()
Returns the startup properties.
|
void |
setDatabaseConfigurationFactory(DatabaseConfigurationFactory databaseConfigurationFactory)
Set the factory for creating the database configuration when
getDatabaseConfiguration() is called. |
void |
setDefaultBlog(Blog blog)
Activates the default blog of the current client.
|
void |
setPrimaryAuthentication(String externalSystemId,
boolean allowDBAuth) |
void |
updateApplicationConfigurationProperties(Map<ApplicationConfigurationPropertyConstant,String> settings)
Updates a collection of application configuration properties.
|
void |
updateClientConfigurationProperties(Map<ClientConfigurationPropertyConstant,String> settings)
Updates a collection of client configuration properties.
|
void |
updateClientConfigurationProperty(ClientConfigurationPropertyConstant key,
String value)
Updates a client configuration properties.
|
void |
updateClientTimeZone(String timeZoneId)
Update the client timezone and reload the cache.
|
void |
updateConfluenceConfig(ConfluenceConfiguration confluenceAuthConfig)
Update the Confluence authentication and reload the cache.
|
void |
updateLdapConfiguration(LdapConfiguration ldapConfig)
Update the LDAP authentication and reload the cache.
|
void |
updateStartupProperties(Map<CoreConfigurationPropertyConstant,String> settings)
Update the startup properties.
|
void |
updateStartupProperty(CoreConfigurationPropertyConstant property,
String value)
Updates a startup property.
|
void deactivateDefaultBlog()
ApplicationConfigurationProperties getApplicationConfigurationProperties()
ApplicationConfigurationProperties getApplicationConfigurationProperties(boolean forceCacheInvalidation)
forceCacheInvalidation - true if the cache should be invalidated before fetchingClientConfigurationProperties getClientConfigurationProperties()
DatabaseConfiguration getDatabaseConfiguration()
DatabaseConfigurationFactory.
If no factory was set with
setDatabaseConfigurationFactory(DatabaseConfigurationFactory) null will be returned.
The configuration will only created once if this method is called after the installation has
been completed.DatabaseConfiguration to useDevelopmentProperties getDevelopmentProperties()
StartupProperties getStartupProperties()
void setDatabaseConfigurationFactory(DatabaseConfigurationFactory databaseConfigurationFactory)
getDatabaseConfiguration() is called.databaseConfigurationFactory - the database configuration factory to usevoid setDefaultBlog(Blog blog)
blog - The default blog.void setPrimaryAuthentication(String externalSystemId, boolean allowDBAuth) throws PrimaryAuthenticationException
externalSystemId - The id of the external system. If this is null, the current authentication method
will be removed.allowDBAuth - True, if internal database authentication is allowed.PrimaryAuthenticationException - Exception.void updateApplicationConfigurationProperties(Map<ApplicationConfigurationPropertyConstant,String> settings) throws ConfigurationUpdateException
settings - a mapping of the properties to their new valueConfigurationUpdateException - exception.void updateClientConfigurationProperties(Map<ClientConfigurationPropertyConstant,String> settings)
settings - a mapping of the properties to their new valuevoid updateClientConfigurationProperty(ClientConfigurationPropertyConstant key, String value)
key - the property to updatevalue - the new valuevoid updateClientTimeZone(String timeZoneId)
ConfigurationManagement.updateClientTimeZoneId(String)timeZoneId - the new timezoneIdvoid updateConfluenceConfig(ConfluenceConfiguration confluenceAuthConfig) throws EncryptionException, AuthorizationException, PrimaryAuthenticationException
ConfigurationManagement.updateConfluenceAuthConfig(ConfluenceConfiguration)confluenceAuthConfig - the configAuthorizationException - in case the current user is not client managerEncryptionException - in case of an encryption exceptionPrimaryAuthenticationException - Exception.void updateLdapConfiguration(LdapConfiguration ldapConfig) throws AuthorizationException, EncryptionException, PrimaryAuthenticationException
ConfigurationManagement.updateLdapConfiguration(LdapConfiguration)ldapConfig - the configAuthorizationException - in case the current user is not client managerEncryptionException - in case of an encryption exceptionPrimaryAuthenticationException - Exception.void updateStartupProperties(Map<CoreConfigurationPropertyConstant,String> settings) throws ConfigurationUpdateException
settings - mapping with the new values to be set.ConfigurationUpdateException - in case the update failedvoid updateStartupProperty(CoreConfigurationPropertyConstant property, String value) throws ConfigurationUpdateException
property - the property to updatevalue - the new valueConfigurationUpdateException - in case the update failedCopyright © 2019 Communote team. All rights reserved.