com.atlassian.crowd.migration.legacy
Class ApplicationMapper

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

public class ApplicationMapper
extends GenericLegacyImporter
implements LegacyImporter


Field Summary
protected static java.lang.String APPLICATION_XML_NODE
           
protected static java.lang.String APPLICATION_XML_ROOT
           
static java.lang.String OPTION_DEFAULT_PASSWORD
           
 
Fields inherited from class com.atlassian.crowd.migration.legacy.GenericLegacyImporter
DATE_FORMAT, GENERIC_XML_ACTIVE, GENERIC_XML_ATTRIBUTE, GENERIC_XML_ATTRIBUTE_ID, GENERIC_XML_ATTRIBUTE_KEY, GENERIC_XML_ATTRIBUTE_VALUE, GENERIC_XML_ATTRIBUTE_VALUES, GENERIC_XML_ATTRIBUTES_NODE, GENERIC_XML_CONCEPTION, GENERIC_XML_ID, GENERIC_XML_LASTMODIFIED, GENERIC_XML_NAME, logger
 
Constructor Summary
ApplicationMapper()
           
 
Method Summary
protected  Application getApplicationFromXml(org.dom4j.Element applicationElement, java.util.Map<java.lang.Long,java.lang.Long> oldToNewDirectoryIds)
           
 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 setApplicationDAO(ApplicationDAO applicationDAO)
           
 void setDirectoryDAO(DirectoryDAOHibernate directoryDAO)
           
 
Methods inherited from class com.atlassian.crowd.migration.legacy.GenericLegacyImporter
getBatchProcessor, getDateAsFormattedString, getDateFromFormattedString, getDirectoryManager, getInternalEntityTemplateFromLegacyXml, getMultiValuedAttributesMapFromXml, getOperationTypeFromLegacyPermissionName, getPasswordCredentialFromXml, getSessionFactory, getSingleValuedAttributesMapFromXml, setBatchProcessor, setDirectoryManager, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_XML_ROOT

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

APPLICATION_XML_NODE

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

OPTION_DEFAULT_PASSWORD

public static final java.lang.String OPTION_DEFAULT_PASSWORD
See Also:
Constant Field Values
Constructor Detail

ApplicationMapper

public ApplicationMapper()
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.

getApplicationFromXml

protected Application getApplicationFromXml(org.dom4j.Element applicationElement,
                                            java.util.Map<java.lang.Long,java.lang.Long> oldToNewDirectoryIds)

setDirectoryDAO

public void setDirectoryDAO(DirectoryDAOHibernate directoryDAO)

setApplicationDAO

public void setApplicationDAO(ApplicationDAO applicationDAO)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.