com.atlassian.crowd.migration.legacy
Class CrowdPropertiesMapper

java.lang.Object
  extended by com.atlassian.crowd.migration.GenericMapper
      extended by com.atlassian.crowd.migration.CrowdPropertiesMapper
          extended by com.atlassian.crowd.migration.legacy.CrowdPropertiesMapper
All Implemented Interfaces:
LegacyImporter, Mapper

public class CrowdPropertiesMapper
extends CrowdPropertiesMapper
implements LegacyImporter

This class extends the current 2.x CrowdPropertiesMapper because crowd.properties mapping is 100% backwards-compatible in XML.


Field Summary
 
Fields inherited from class com.atlassian.crowd.migration.CrowdPropertiesMapper
clientProperties, PROPERTIES_XML_ROOT, PROPERTY_XML_NAME, PROPERTY_XML_NODE, PROPERTY_XML_VALUE
 
Fields inherited from class com.atlassian.crowd.migration.GenericMapper
DATE_FORMAT, GENERIC_XML_ACTIVE, GENERIC_XML_ATTRIBUTE, GENERIC_XML_ATTRIBUTE_NAME, GENERIC_XML_ATTRIBUTE_VALUE, GENERIC_XML_ATTRIBUTES, GENERIC_XML_CREATED_DATE, GENERIC_XML_ID, GENERIC_XML_NAME, GENERIC_XML_UPDATED_DATE, LEGACY_GENERIC_XML_ATTRIBUTE_ID, LEGACY_GENERIC_XML_ATTRIBUTE_KEY, LEGACY_GENERIC_XML_ATTRIBUTE_VALUE, LEGACY_GENERIC_XML_ATTRIBUTE_VALUES, LEGACY_GENERIC_XML_CONCEPTION, LEGACY_GENERIC_XML_LASTMODIFIED, logger
 
Constructor Summary
CrowdPropertiesMapper()
           
 
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.
 
Methods inherited from class com.atlassian.crowd.migration.CrowdPropertiesMapper
exportXml, importXml, setClientProperties, setPropertyUtils, setResourceLocator
 
Methods inherited from class com.atlassian.crowd.migration.GenericMapper
addEntities, addEntity, exportInternalEntity, exportSingleValuedAttributes, findAllExportableDirectories, getBatchProcessor, getDateAsFormattedString, getDateFromFormattedString, getDirectoryManager, getInternalEntityTemplateFromXml, getSessionFactory, getSingleValuedAttributesMapFromXml, setBatchProcessor, setDirectoryManager, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrowdPropertiesMapper

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


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.