public class CrowdConfigMapper extends Object implements Mapper
crowd.cfg.xml
and place this into Crowd XML export/import.
At the moment, this only manages the import/export of the serverID property.
The Server ID is exported and imported since a Server ID is tied to a dataset and not a physical server.Modifier and Type | Field and Description |
---|---|
protected static String |
CONFIG_XML_NAME |
protected static String |
CONFIG_XML_NODE |
protected static String |
CONFIG_XML_ROOT |
protected static String |
CONFIG_XML_VALUE |
protected List<String> |
propertiesToMap |
Constructor and Description |
---|
CrowdConfigMapper(CrowdBootstrapManager bootstrapManager) |
Modifier and Type | Method and Description |
---|---|
org.dom4j.Element |
exportXml(Map<String,Object> options)
Exports to V2 XML.
|
CrowdBootstrapManager |
getBootstrapManager() |
void |
importXml(org.dom4j.Element root)
Imports V2 XML.
|
protected static final String CONFIG_XML_ROOT
protected static final String CONFIG_XML_NODE
protected static final String CONFIG_XML_NAME
protected static final String CONFIG_XML_VALUE
public CrowdConfigMapper(CrowdBootstrapManager bootstrapManager)
public org.dom4j.Element exportXml(Map<String,Object> options) throws ExportException
Mapper
exportXml
in interface Mapper
options
- map of arbitrarty options.ExportException
- error producing XML.public void importXml(org.dom4j.Element root) throws ImportException
Mapper
importXml
in interface Mapper
root
- root XML element.ImportException
- error importing data.public CrowdBootstrapManager getBootstrapManager()
Copyright © 2020 Atlassian. All rights reserved.