com.atlassian.crowd.migration
Class ApplicationMapper

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

public class ApplicationMapper
extends GenericMapper
implements Mapper

This mapper will handle the mapping of a Application


Field Summary
static java.lang.String APPLICATION_XML_CREDENTIAL
           
static java.lang.String APPLICATION_XML_DESCRIPTION
           
static java.lang.String APPLICATION_XML_DIRECTORY_ALLOW_ALL
           
static java.lang.String APPLICATION_XML_DIRECTORY_ID
           
static java.lang.String APPLICATION_XML_DIRECTORY_MAPPING
           
static java.lang.String APPLICATION_XML_DIRECTORY_MAPPINGS
           
static java.lang.String APPLICATION_XML_GROUP_MAPPING
           
static java.lang.String APPLICATION_XML_GROUP_MAPPINGS
           
static java.lang.String APPLICATION_XML_GROUP_NAME
           
static java.lang.String APPLICATION_XML_NODE
           
static java.lang.String APPLICATION_XML_PERMISSION
           
static java.lang.String APPLICATION_XML_PERMISSIONS
           
static java.lang.String APPLICATION_XML_REMOTE_ADDRESS
           
static java.lang.String APPLICATION_XML_REMOTE_ADDRESSES
           
static java.lang.String APPLICATION_XML_ROOT
           
static java.lang.String APPLICATION_XML_TYPE
           
static java.lang.String OPTION_DEFAULT_PASSWORD
           
 
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
ApplicationMapper()
           
 
Method Summary
protected  void addApplicationToXml(Application application, org.dom4j.Element directoryRoot)
           
 org.dom4j.Element exportXml(java.util.Map options)
          Exports to V2 XML.
protected  Application getApplicationFromXml(org.dom4j.Element applicationElement)
           
 void importXml(org.dom4j.Element root)
          Imports V2 XML.
 void setApplicationManager(ApplicationManager applicationManager)
           
 void setDirectoryDAO(DirectoryDAOHibernate directoryDAO)
           
 
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

APPLICATION_XML_ROOT

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

APPLICATION_XML_NODE

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

APPLICATION_XML_TYPE

public static final java.lang.String APPLICATION_XML_TYPE
See Also:
Constant Field Values

APPLICATION_XML_DESCRIPTION

public static final java.lang.String APPLICATION_XML_DESCRIPTION
See Also:
Constant Field Values

APPLICATION_XML_CREDENTIAL

public static final java.lang.String APPLICATION_XML_CREDENTIAL
See Also:
Constant Field Values

APPLICATION_XML_REMOTE_ADDRESSES

public static final java.lang.String APPLICATION_XML_REMOTE_ADDRESSES
See Also:
Constant Field Values

APPLICATION_XML_REMOTE_ADDRESS

public static final java.lang.String APPLICATION_XML_REMOTE_ADDRESS
See Also:
Constant Field Values

APPLICATION_XML_DIRECTORY_MAPPINGS

public static final java.lang.String APPLICATION_XML_DIRECTORY_MAPPINGS
See Also:
Constant Field Values

APPLICATION_XML_DIRECTORY_MAPPING

public static final java.lang.String APPLICATION_XML_DIRECTORY_MAPPING
See Also:
Constant Field Values

APPLICATION_XML_DIRECTORY_ID

public static final java.lang.String APPLICATION_XML_DIRECTORY_ID
See Also:
Constant Field Values

APPLICATION_XML_DIRECTORY_ALLOW_ALL

public static final java.lang.String APPLICATION_XML_DIRECTORY_ALLOW_ALL
See Also:
Constant Field Values

APPLICATION_XML_PERMISSIONS

public static final java.lang.String APPLICATION_XML_PERMISSIONS
See Also:
Constant Field Values

APPLICATION_XML_PERMISSION

public static final java.lang.String APPLICATION_XML_PERMISSION
See Also:
Constant Field Values

APPLICATION_XML_GROUP_MAPPINGS

public static final java.lang.String APPLICATION_XML_GROUP_MAPPINGS
See Also:
Constant Field Values

APPLICATION_XML_GROUP_MAPPING

public static final java.lang.String APPLICATION_XML_GROUP_MAPPING
See Also:
Constant Field Values

APPLICATION_XML_GROUP_NAME

public static final java.lang.String APPLICATION_XML_GROUP_NAME
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

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.

addApplicationToXml

protected void addApplicationToXml(Application application,
                                   org.dom4j.Element directoryRoot)

getApplicationFromXml

protected Application getApplicationFromXml(org.dom4j.Element applicationElement)

setApplicationManager

public void setApplicationManager(ApplicationManager applicationManager)

setDirectoryDAO

public void setDirectoryDAO(DirectoryDAOHibernate directoryDAO)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.