com.atlassian.bamboo.persister.xstream
Class XStreamAdminConfigPersister

java.lang.Object
  extended by com.atlassian.bamboo.persister.xstream.XStreamAdminConfigPersister

public class XStreamAdminConfigPersister
extends Object

Provides an XStream implementation of AdministrationConfiguration.


Constructor Summary
XStreamAdminConfigPersister(String configurationDirectory, XStreamManager xStreamManager)
          Create a persister to load and store AdministrationConfiguration objects in the given myConfigurationDirectory directory.
 
Method Summary
protected  boolean isSetupComplete()
           
 AdministrationConfiguration loadConfiguation()
          Load the AdministrationConfiguration from the myConfigurationDirectory.
 void saveConfiguration(AdministrationConfiguration administrationConfiguration)
          Save the given administrationConfiguration in the myConfigurationDirectory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XStreamAdminConfigPersister

public XStreamAdminConfigPersister(String configurationDirectory,
                                   XStreamManager xStreamManager)
Create a persister to load and store AdministrationConfiguration objects in the given myConfigurationDirectory directory.

Parameters:
configurationDirectory - The location of the persisted objects
xStreamManager - XStream manager
Method Detail

loadConfiguation

@Nullable
public AdministrationConfiguration loadConfiguation()
                                             throws PersisterException
Load the AdministrationConfiguration from the myConfigurationDirectory.

Returns:
The loaded object. Null if there is no saved object
Throws:
PersisterException - Could not load the configuration file.

saveConfiguration

public void saveConfiguration(AdministrationConfiguration administrationConfiguration)
                       throws PersisterException
Save the given administrationConfiguration in the myConfigurationDirectory.

Parameters:
administrationConfiguration - The object to save
Throws:
PersisterException - Could not save the configuration file.

isSetupComplete

protected boolean isSetupComplete()


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