com.atlassian.crowd.integration.atlassianuser
Interface UserConfigurationPersister

All Known Implementing Classes:
UserConfigurationPersisterImpl

public interface UserConfigurationPersister

Provides functionality for working with Atlassian User library configuration.


Method Summary
 void detectPersistedConfigurationType()
          Detects the persisted configuration type.
 InputStream getConfigurationStream()
          Returns the active configuration.
 UserConfigurationType getConfigurationType()
          Returns the current configuration type
 boolean isCustomConfigurationAvailable()
          Returns true if a custom Atlassian User configuration file is available.
 void updateConfiguration(UserConfigurationType newConfigurationType)
          Updates configuration to the given configuration type.
 

Method Detail

getConfigurationStream

InputStream getConfigurationStream()
                                   throws IOException
Returns the active configuration.

Returns:
active configuration
Throws:
IOException - if the file cannot be read

updateConfiguration

void updateConfiguration(@NotNull
                         UserConfigurationType newConfigurationType)
                         throws IOException
Updates configuration to the given configuration type.

Parameters:
newConfigurationType - new configuration type
Throws:
IOException - If the configuration could not be updated

getConfigurationType

UserConfigurationType getConfigurationType()
Returns the current configuration type

Returns:
current configuration type

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

detectPersistedConfigurationType

void detectPersistedConfigurationType()
                                      throws IOException
Detects the persisted configuration type.

Should be called when it is likely that atlassian-user.xml has been modified.

Throws:
IOException - if the persistent configuration could not be read


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.