public interface UserConfigurationPersister
Modifier and Type | Method and Description |
---|---|
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.
|
InputStream getConfigurationStream() throws IOException
IOException
- if the file cannot be readvoid updateConfiguration(@NotNull UserConfigurationType newConfigurationType) throws IOException
newConfigurationType
- new configuration typeIOException
- If the configuration could not be updatedUserConfigurationType getConfigurationType()
boolean isCustomConfigurationAvailable()
void detectPersistedConfigurationType() throws IOException
Should be called when it is likely that atlassian-user.xml has been modified.
IOException
- if the persistent configuration could not be readCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.