|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.integration.atlassianuser.UserConfigurationPersisterImpl
public class UserConfigurationPersisterImpl
Constructor Summary | |
---|---|
UserConfigurationPersisterImpl(java.io.File configurationDirectory)
|
Method Summary | |
---|---|
void |
detectPersistedConfigurationType()
Detects the persisted configuration type. |
java.io.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 configurationType)
Updates configuration to the given configuration type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserConfigurationPersisterImpl(java.io.File configurationDirectory) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.io.InputStream getConfigurationStream() throws java.io.IOException
UserConfigurationPersister
getConfigurationStream
in interface UserConfigurationPersister
java.io.IOException
- if the file cannot be readpublic void updateConfiguration(UserConfigurationType configurationType) throws java.io.IOException
UserConfigurationPersister
updateConfiguration
in interface UserConfigurationPersister
configurationType
- new configuration type
java.io.IOException
- If the configuration could not be updatedpublic UserConfigurationType getConfigurationType()
UserConfigurationPersister
getConfigurationType
in interface UserConfigurationPersister
public boolean isCustomConfigurationAvailable()
UserConfigurationPersister
isCustomConfigurationAvailable
in interface UserConfigurationPersister
true
if the current configuration is UserConfigurationType.CUSTOM
or if a backup
is availablepublic void detectPersistedConfigurationType() throws java.io.IOException
UserConfigurationPersister
Should be called when it is likely that atlassian-user.xml has been modified.
detectPersistedConfigurationType
in interface UserConfigurationPersister
java.io.IOException
- if the persistent configuration could not be read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |