com.atlassian.crowd.migration
Class PropertyMapper

java.lang.Object
  extended by com.atlassian.crowd.migration.GenericMapper
      extended by com.atlassian.crowd.migration.PropertyMapper
All Implemented Interfaces:
Mapper

public class PropertyMapper
extends GenericMapper
implements Mapper

This mapper will handle the mapping of a Property


Field Summary
protected static java.lang.String PROPERTIES_XML_ROOT
           
protected static java.lang.String PROPERTY_XML_KEY
           
protected static java.lang.String PROPERTY_XML_NAME
           
protected static java.lang.String PROPERTY_XML_NODE
           
protected static java.lang.String 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
PropertyMapper()
           
 
Method Summary
 org.dom4j.Element exportXml(java.util.Map options)
          Exports to V2 XML.
 void importXml(org.dom4j.Element root)
          Imports V2 XML.
 void setPropertyDAO(PropertyDAO propertyDAO)
           
 
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
 

Field Detail

PROPERTIES_XML_ROOT

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

PROPERTY_XML_NODE

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

PROPERTY_XML_KEY

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

PROPERTY_XML_NAME

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

PROPERTY_XML_VALUE

protected static final java.lang.String PROPERTY_XML_VALUE
See Also:
Constant Field Values
Constructor Detail

PropertyMapper

public PropertyMapper()
Method Detail

exportXml

public org.dom4j.Element exportXml(java.util.Map options)
                            throws java.text.ParseException
Description copied from interface: Mapper
Exports to V2 XML.

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

importXml

public void importXml(org.dom4j.Element root)
               throws java.lang.Exception
Description copied from interface: Mapper
Imports V2 XML.

Specified by:
importXml in interface Mapper
Parameters:
root - root XML element.
Throws:
java.lang.Exception - error importing data.

setPropertyDAO

public void setPropertyDAO(PropertyDAO propertyDAO)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.