com.atlassian.crowd.migration
Interface Mapper

All Known Implementing Classes:
AliasMapper, 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(Map options)
          Exports to V2 XML.
 void importXml(org.dom4j.Element root)
          Imports V2 XML.
 

Method Detail

exportXml

org.dom4j.Element exportXml(Map options)
                            throws ExportException
Exports to V2 XML.

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

importXml

void importXml(org.dom4j.Element root)
               throws ImportException
Imports V2 XML.

Parameters:
root - root XML element.
Throws:
ImportException - error importing data.


Copyright © 2014 Atlassian. All Rights Reserved.