Package com.atlassian.bamboo.upgrade
Class ConfigurationUpgrader
- java.lang.Object
-
- com.atlassian.bamboo.upgrade.AbstractXmlUpgrader
-
- com.atlassian.bamboo.upgrade.ConfigurationUpgrader
-
- Direct Known Subclasses:
AdministrationConfigurationUpgrader
,UserConfigurationUpgrader
public abstract class ConfigurationUpgrader extends AbstractXmlUpgrader
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConfigurationUpgrader(@NotNull BootstrapManager bootstrapManager, String fileName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.dom4j.Document
getDocument()
protected abstract String
getLogPrefix()
void
save()
-
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractXmlUpgrader
appendComment, asElement, asMap, closeQuietly, getElement, getElement, getElementText, getRootElement, logChanges, remove, saveNode, setOrAdd, setOrAdd, setOrAdd, setOrAdd, update
-
-
-
-
Field Detail
-
cfgFile
protected final File cfgFile
-
-
Constructor Detail
-
ConfigurationUpgrader
protected ConfigurationUpgrader(@NotNull @NotNull BootstrapManager bootstrapManager, String fileName)
-
-
Method Detail
-
save
public void save() throws IOException
- Specified by:
save
in classAbstractXmlUpgrader
- Throws:
IOException
-
getLogPrefix
protected abstract String getLogPrefix()
-
getDocument
protected org.dom4j.Document getDocument()
- Specified by:
getDocument
in classAbstractXmlUpgrader
-
-