public interface ConfigurationManagement
Handling configurations
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONFLUENCE_SYSTEM_ID
DEFAULT_CONFLUENCE_SYSTEM_ID.
|
static String |
DEFAULT_DATABASE_ID
DEFAULT_DATABASE_ID.
|
static String |
DEFAULT_LDAP_SYSTEM_ID
Deprecated.
Use LdapUserRepository#EXTERNAL_SYSTEM_ID_DEFAULT_LDAP where possible. All LDAP
specifics should be moved to the ldap plugin.
|
Modifier and Type | Method and Description |
---|---|
Collection<ApplicationConfigurationSetting> |
getApplicationConfigurationSettings() |
ImageVO |
getClientLogo() |
Configuration |
getConfiguration() |
Blog |
getDefaultBlog()
Gets the default blog.
|
void |
removeClientLogo() |
void |
setPrimaryAuthentication(String externalSystemId,
boolean allowDBAuth,
String currentPrimaryAuthentication) |
void |
updateApplicationSettings(Map<ApplicationConfigurationPropertyConstant,String> settings)
Updates or creates the provided application settings.
|
void |
updateClientLogo(byte[] image)
Updates the client logo.
|
void |
updateClientSetting(ClientConfigurationPropertyConstant key,
String value)
Update the given setting using the key and value.
|
void |
updateClientSettings(Map<ClientConfigurationPropertyConstant,String> settings)
Updates or creates the provided client configuration settings.
|
void |
updateClientTimeZoneId(String timeZoneId) |
void |
updateConfluenceAuthConfig(ConfluenceConfiguration confluenceAuthConf)
Updates or creates the confluence authentication configuration
|
void |
updateDefaultBlog(Blog blog)
Updates the default blog.
|
void |
updateLdapConfiguration(LdapConfiguration ldapConfig) |
static final String DEFAULT_CONFLUENCE_SYSTEM_ID
@Deprecated static final String DEFAULT_LDAP_SYSTEM_ID
static final String DEFAULT_DATABASE_ID
Collection<ApplicationConfigurationSetting> getApplicationConfigurationSettings()
ImageVO getClientLogo()
Configuration getConfiguration()
Blog getDefaultBlog()
Gets the default blog.
void removeClientLogo()
void setPrimaryAuthentication(String externalSystemId, boolean allowDBAuth, String currentPrimaryAuthentication) throws PrimaryAuthenticationException
externalSystemId
- The ID of the external system which should be made the primary authentication
system. If this is null, the current primary authentication system will be
removed.allowDBAuth
- True, if authentication against the internal database should be allowed.currentPrimaryAuthentication
- The ID of the external system which is the current primary authentication system.
Can be null if there is currently no primary authentication.PrimaryAuthenticationException
- Thrown if there is no active configuration for the externalSystemId or no
configuration for the currentPrimaryAuthentication. This Exception is also thrown
if allowDBAuth is false and there are no client managers that can authenticate
against the new primary system.void updateApplicationSettings(Map<ApplicationConfigurationPropertyConstant,String> settings) throws AuthorizationException
settings
- The updated settings.AuthorizationException
- Exception.void updateClientLogo(byte[] image)
image
- The logo as byte array.void updateClientSetting(ClientConfigurationPropertyConstant key, String value)
key
- The key of the setting.value
- The updated value.void updateClientSettings(Map<ClientConfigurationPropertyConstant,String> settings)
settings
- The updated settings.void updateClientTimeZoneId(String timeZoneId)
timeZoneId
- The clients new timezone.void updateConfluenceAuthConfig(ConfluenceConfiguration confluenceAuthConf) throws AuthorizationException, PrimaryAuthenticationException
Updates or creates the confluence authentication configuration
confluenceAuthConf
- The updated Confluence authentication configuration.AuthorizationException
- Exception.PrimaryAuthenticationException
- Exception.void updateDefaultBlog(Blog blog)
Updates the default blog.
blog
- The new default blog.void updateLdapConfiguration(LdapConfiguration ldapConfig) throws AuthorizationException, PrimaryAuthenticationException
ldapConfig
- The updated LDAP authentication configuration.AuthorizationException
- Exception.PrimaryAuthenticationException
- Exception.Copyright © 2019 Communote team. All rights reserved.