com.atlassian.crowd.integration.atlassianuser
Interface UserConfigurationService

All Known Implementing Classes:
UserConfigurationServiceImpl

public interface UserConfigurationService

Provides services for dynamically changing the behaviour of Atlassian User library.


Method Summary
 void changeUserConfigurationType(UserConfigurationType configurationType, java.util.Properties crowdProperties)
          Changes the application to use a new configuration at runtime.
 java.util.Properties getCrowdProperties()
          Returns Crowd related properties.
 UserConfigurationType getUserConfigurationType()
          Returns Atlassian User configuration type that is currently active.
 boolean isCrowdPropertyWritable(java.lang.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.
 

Method Detail

getUserConfigurationType

UserConfigurationType getUserConfigurationType()
Returns Atlassian User configuration type that is currently active.

Returns:
configuration type that is currently active

changeUserConfigurationType

void changeUserConfigurationType(@NotNull
                                 UserConfigurationType configurationType,
                                 @Nullable
                                 java.util.Properties crowdProperties)
                                 throws java.io.IOException,
                                        com.atlassian.user.configuration.ConfigurationException
Changes the application to use a new configuration at runtime.

Parameters:
configurationType - new configuration type to use
crowdProperties - new crowd configuration properties to use
Throws:
java.io.IOException - if the configuration could not be updated
com.atlassian.user.configuration.ConfigurationException - if the configuration could not be loaded

reloadUserConfiguration

void reloadUserConfiguration()
                             throws com.atlassian.user.configuration.ConfigurationException,
                                    java.io.IOException
Reloads user configuration using the current configuration.

Throws:
java.io.IOException - if the configuration could not be loaded
com.atlassian.user.configuration.ConfigurationException - if the configuration could not be loaded

isCustomConfigurationAvailable

boolean isCustomConfigurationAvailable()
Returns true if a custom Atlassian User configuration file is available.

Returns:
true if a custom Atlassian User configuration file is available

getCrowdProperties

java.util.Properties getCrowdProperties()
Returns Crowd related properties.

Returns:
Crowd related properties

isCrowdPropertyWritable

boolean isCrowdPropertyWritable(@NotNull
                                java.lang.String crowdPropertyName)
Returns true if the given Crowd property can be modified.

Parameters:
crowdPropertyName - Crowd property name
Returns:
true if the given Crowd property can be modified


Copyright © 2012 Atlassian. All Rights Reserved.