com.atlassian.crowd.migration
Class CrowdConfigMapper

java.lang.Object
  extended by com.atlassian.crowd.migration.CrowdConfigMapper
All Implemented Interfaces:
Mapper
Direct Known Subclasses:
CrowdConfigMapper

public class CrowdConfigMapper
extends java.lang.Object
implements Mapper

Mapper implementation that will take the values from a Crowd instances 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.


Field Summary
protected static java.lang.String CONFIG_XML_NAME
           
protected static java.lang.String CONFIG_XML_NODE
           
protected static java.lang.String CONFIG_XML_ROOT
           
protected static java.lang.String CONFIG_XML_VALUE
           
protected  java.util.List<java.lang.String> propertiesToMap
           
 
Constructor Summary
CrowdConfigMapper(CrowdBootstrapManager bootstrapManager)
           
 
Method Summary
 org.dom4j.Element exportXml(java.util.Map options)
          Exports to V2 XML.
 CrowdBootstrapManager getBootstrapManager()
           
 void importXml(org.dom4j.Element root)
          Imports V2 XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_XML_ROOT

protected static final java.lang.String CONFIG_XML_ROOT
See Also:
Constant Field Values

CONFIG_XML_NODE

protected static final java.lang.String CONFIG_XML_NODE
See Also:
Constant Field Values

CONFIG_XML_NAME

protected static final java.lang.String CONFIG_XML_NAME
See Also:
Constant Field Values

CONFIG_XML_VALUE

protected static final java.lang.String CONFIG_XML_VALUE
See Also:
Constant Field Values

propertiesToMap

protected java.util.List<java.lang.String> propertiesToMap
Constructor Detail

CrowdConfigMapper

public CrowdConfigMapper(CrowdBootstrapManager bootstrapManager)
Method Detail

exportXml

public org.dom4j.Element exportXml(java.util.Map options)
                            throws ExportException
Description copied from interface: Mapper
Exports to V2 XML.

Specified by:
exportXml in interface Mapper
Parameters:
options - map of arbitrarty options.
Returns:
XML element, or null if you are not mapping
Throws:
ExportException - error producing XML.

importXml

public void importXml(org.dom4j.Element root)
               throws ImportException
Description copied from interface: Mapper
Imports V2 XML.

Specified by:
importXml in interface Mapper
Parameters:
root - root XML element.
Throws:
ImportException - error importing data.

getBootstrapManager

public CrowdBootstrapManager getBootstrapManager()


Copyright © 2011 Atlassian. All Rights Reserved.