public class UserConfigurationServiceImpl extends Object implements UserConfigurationService
Constructor and Description |
---|
UserConfigurationServiceImpl(DynamicUserConfiguration userConfiguration,
UserConfigurationPersister configurationPersister,
CrowdPropertiesPersister crowdPropertiesPersister,
BambooPermissionManager bambooPermissionManager) |
Modifier and Type | Method and Description |
---|---|
void |
changeUserConfigurationType(UserConfigurationType configurationType,
Properties crowdProperties)
Changes the application to use a new configuration at runtime.
|
Properties |
getCrowdProperties()
Returns Crowd related properties.
|
UserConfigurationType |
getUserConfigurationType()
Returns Atlassian User configuration type that is currently active.
|
boolean |
isCrowdPropertyWritable(String crowdPropertyName)
Returns true if the given Crowd property can be modified.
|
boolean |
isCustomConfigurationAvailable()
Returns true if a custom Atlassian User configuration file is available.
|
void |
reloadUserConfiguration()
Reloads user configuration using the current configuration.
|
public UserConfigurationServiceImpl(DynamicUserConfiguration userConfiguration, UserConfigurationPersister configurationPersister, CrowdPropertiesPersister crowdPropertiesPersister, BambooPermissionManager bambooPermissionManager)
public UserConfigurationType getUserConfigurationType()
UserConfigurationService
getUserConfigurationType
in interface UserConfigurationService
public void changeUserConfigurationType(@NotNull UserConfigurationType configurationType, Properties crowdProperties) throws IOException, com.atlassian.user.configuration.ConfigurationException
UserConfigurationService
changeUserConfigurationType
in interface UserConfigurationService
configurationType
- new configuration type to usecrowdProperties
- new crowd configuration properties to useIOException
- if the configuration could not be updatedcom.atlassian.user.configuration.ConfigurationException
- if the configuration could not be loadedpublic void reloadUserConfiguration() throws com.atlassian.user.configuration.ConfigurationException, IOException
UserConfigurationService
reloadUserConfiguration
in interface UserConfigurationService
com.atlassian.user.configuration.ConfigurationException
- if the configuration could not be loadedIOException
- if the configuration could not be loadedpublic boolean isCustomConfigurationAvailable()
UserConfigurationService
isCustomConfigurationAvailable
in interface UserConfigurationService
public Properties getCrowdProperties()
UserConfigurationService
getCrowdProperties
in interface UserConfigurationService
public boolean isCrowdPropertyWritable(String crowdPropertyName)
UserConfigurationService
isCrowdPropertyWritable
in interface UserConfigurationService
crowdPropertyName
- Crowd property nameCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.