com.atlassian.crowd.migration
Class AliasMapper

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

public class AliasMapper
extends GenericMapper
implements Mapper


Field Summary
protected static String ALIAS_ALIASNAME
           
protected static String ALIAS_APPLICATION_ID
           
protected static String ALIAS_USERNAME
           
protected static String ALIAS_XML_NODE
           
protected static String ALIAS_XML_ROOT
           
 
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
AliasMapper()
           
 
Method Summary
protected  void addAliasToXml(Alias alias, org.dom4j.Element aliasRoot)
           
 org.dom4j.Element exportXml(Map options)
          Exports to V2 XML.
protected  Alias getAliasFromXml(org.dom4j.Element aliasElement)
           
 void importXml(org.dom4j.Element root)
          Imports V2 XML.
 void setAliasDAO(AliasDAOHibernate aliasDAO)
           
 void setApplicationDAO(ApplicationDAOHibernate applicationDAO)
           
 
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

ALIAS_XML_ROOT

protected static final String ALIAS_XML_ROOT
See Also:
Constant Field Values

ALIAS_XML_NODE

protected static final String ALIAS_XML_NODE
See Also:
Constant Field Values

ALIAS_APPLICATION_ID

protected static final String ALIAS_APPLICATION_ID
See Also:
Constant Field Values

ALIAS_USERNAME

protected static final String ALIAS_USERNAME
See Also:
Constant Field Values

ALIAS_ALIASNAME

protected static final String ALIAS_ALIASNAME
See Also:
Constant Field Values
Constructor Detail

AliasMapper

public AliasMapper()
Method Detail

exportXml

public org.dom4j.Element exportXml(Map options)
                            throws ExportException
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:
ExportException - error producing XML.

addAliasToXml

protected void addAliasToXml(Alias alias,
                             org.dom4j.Element aliasRoot)

importXml

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

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

getAliasFromXml

protected Alias getAliasFromXml(org.dom4j.Element aliasElement)

setAliasDAO

public void setAliasDAO(AliasDAOHibernate aliasDAO)

setApplicationDAO

public void setApplicationDAO(ApplicationDAOHibernate applicationDAO)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.