com.atlassian.crowd.migration.legacy
Class PropertyMapper

java.lang.Object
  extended by com.atlassian.crowd.migration.legacy.PropertyMapper
All Implemented Interfaces:
LegacyImporter

public class PropertyMapper
extends java.lang.Object
implements LegacyImporter


Field Summary
protected static java.lang.String PROPERTIES_XML_ROOT
           
protected static java.lang.String PROPERTY_XML_KEY
           
protected static java.lang.String PROPERTY_XML_NAME
           
protected static java.lang.String PROPERTY_XML_NODE
           
protected static java.lang.String PROPERTY_XML_VALUE
           
 
Constructor Summary
PropertyMapper()
           
 
Method Summary
 void importXml(org.dom4j.Element root, java.util.Map<java.lang.Long,java.lang.Long> oldToNewDirectoryIds)
          Imports V1 (legacy Crowd 0.x.x and 1.x.x) XML.
 void setBootstrapManager(CrowdBootstrapManager bootstrapManager)
           
 void setPropertyDAO(PropertyDAOHibernate propertyDAO)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTIES_XML_ROOT

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

PROPERTY_XML_NODE

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

PROPERTY_XML_KEY

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

PROPERTY_XML_NAME

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

PROPERTY_XML_VALUE

protected static final java.lang.String PROPERTY_XML_VALUE
See Also:
Constant Field Values
Constructor Detail

PropertyMapper

public PropertyMapper()
Method Detail

importXml

public void importXml(org.dom4j.Element root,
                      java.util.Map<java.lang.Long,java.lang.Long> oldToNewDirectoryIds)
               throws java.lang.Exception
Description copied from interface: LegacyImporter
Imports V1 (legacy Crowd 0.x.x and 1.x.x) XML.

Specified by:
importXml in interface LegacyImporter
Parameters:
root - root XML element.
oldToNewDirectoryIds - a map of directory IDs present in the XML file mapped to actual directory IDs saved in the database.
Throws:
java.lang.Exception - error importing data.

setPropertyDAO

public void setPropertyDAO(PropertyDAOHibernate propertyDAO)

setBootstrapManager

public void setBootstrapManager(CrowdBootstrapManager bootstrapManager)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.