Class XStreamAdminConfigPersister
java.lang.Object
com.atlassian.bamboo.persister.xstream.XStreamAdminConfigPersister
Provides an XStream implementation of
AdministrationConfiguration
.-
Constructor Summary
ConstructorDescriptionXStreamAdminConfigPersister
(String configurationDirectory, com.thoughtworks.xstream.XStream xStream) Create a persister to load and storeAdministrationConfiguration
objects in the given myConfigurationDirectory directory. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
@Nullable AdministrationConfiguration
Load theAdministrationConfiguration
from the myConfigurationDirectory.void
saveConfiguration
(AdministrationConfiguration administrationConfiguration) Save the given administrationConfiguration in the myConfigurationDirectory.
-
Constructor Details
-
XStreamAdminConfigPersister
public XStreamAdminConfigPersister(String configurationDirectory, com.thoughtworks.xstream.XStream xStream) Create a persister to load and storeAdministrationConfiguration
objects in the given myConfigurationDirectory directory.- Parameters:
configurationDirectory
- The location of the persisted objectsxStream
- XStream
-
-
Method Details
-
loadConfiguration
@Nullable public @Nullable AdministrationConfiguration loadConfiguration() throws PersisterExceptionLoad theAdministrationConfiguration
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()
-