com.atlassian.crowd.integration.atlassianuser
Class UserConfigurationServiceImpl

java.lang.Object
  extended by com.atlassian.crowd.integration.atlassianuser.UserConfigurationServiceImpl
All Implemented Interfaces:
UserConfigurationService

public class UserConfigurationServiceImpl
extends java.lang.Object
implements UserConfigurationService


Constructor Summary
UserConfigurationServiceImpl(DynamicUserConfiguration userConfiguration, UserConfigurationPersister configurationPersister, CrowdPropertiesPersister crowdPropertiesPersister, BambooPermissionManager bambooPermissionManager)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserConfigurationServiceImpl

public UserConfigurationServiceImpl(DynamicUserConfiguration userConfiguration,
                                    UserConfigurationPersister configurationPersister,
                                    CrowdPropertiesPersister crowdPropertiesPersister,
                                    BambooPermissionManager bambooPermissionManager)
Method Detail

getUserConfigurationType

public UserConfigurationType getUserConfigurationType()
Description copied from interface: UserConfigurationService
Returns Atlassian User configuration type that is currently active.

Specified by:
getUserConfigurationType in interface UserConfigurationService
Returns:
configuration type that is currently active

changeUserConfigurationType

public void changeUserConfigurationType(UserConfigurationType configurationType,
                                        java.util.Properties crowdProperties)
                                 throws java.io.IOException,
                                        com.atlassian.user.configuration.ConfigurationException
Description copied from interface: UserConfigurationService
Changes the application to use a new configuration at runtime.

Specified by:
changeUserConfigurationType in interface UserConfigurationService
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

public void reloadUserConfiguration()
                             throws com.atlassian.user.configuration.ConfigurationException,
                                    java.io.IOException
Description copied from interface: UserConfigurationService
Reloads user configuration using the current configuration.

Specified by:
reloadUserConfiguration in interface UserConfigurationService
Throws:
com.atlassian.user.configuration.ConfigurationException - if the configuration could not be loaded
java.io.IOException - if the configuration could not be loaded

isCustomConfigurationAvailable

public boolean isCustomConfigurationAvailable()
Description copied from interface: UserConfigurationService
Returns true if a custom Atlassian User configuration file is available.

Specified by:
isCustomConfigurationAvailable in interface UserConfigurationService
Returns:
true if a custom Atlassian User configuration file is available

getCrowdProperties

public java.util.Properties getCrowdProperties()
Description copied from interface: UserConfigurationService
Returns Crowd related properties.

Specified by:
getCrowdProperties in interface UserConfigurationService
Returns:
Crowd related properties

isCrowdPropertyWritable

public boolean isCrowdPropertyWritable(java.lang.String crowdPropertyName)
Description copied from interface: UserConfigurationService
Returns true if the given Crowd property can be modified.

Specified by:
isCrowdPropertyWritable in interface UserConfigurationService
Parameters:
crowdPropertyName - Crowd property name
Returns:
true if the given Crowd property can be modified


Copyright © 2011 Atlassian. All Rights Reserved.