com.atlassian.crowd.migration
Interface Mapper

All Known Implementing Classes:
ApplicationMapper, CrowdConfigMapper, CrowdConfigMapper, CrowdPropertiesMapper, CrowdPropertiesMapper, DirectoryMapper, GroupMapper, MembershipMapper, PropertyMapper, UserMapper

public interface Mapper

A Mapper that will handle the import and export of a Domain object, or any object from XML into the datastore and vice-versa.


Method Summary
 org.dom4j.Element exportXml(java.util.Map options)
          Exports to V2 XML.
 void importXml(org.dom4j.Element root)
          Imports V2 XML.
 

Method Detail

exportXml

org.dom4j.Element exportXml(java.util.Map options)
                            throws java.text.ParseException
Exports to V2 XML.

Parameters:
options - map of arbitrarty options.
Returns:
XML element, or null if you are not mapping
Throws:
java.text.ParseException - error producing XML.

importXml

void importXml(org.dom4j.Element root)
               throws java.lang.Exception
Imports V2 XML.

Parameters:
root - root XML element.
Throws:
java.lang.Exception - error importing data.


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.