com.atlassian.crowd.migration.legacy
Interface LegacyImporter

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

public interface LegacyImporter

A Mapper that will handle the import a Domain object, or any object from legacy (Crowd v1.x) XML into the datastore.


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.
 

Method Detail

importXml

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

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.


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.