com.atlassian.crowd.migration
Class GroupMapper
java.lang.Object
com.atlassian.crowd.migration.GenericMapper
com.atlassian.crowd.migration.legacy.XmlMapper
com.atlassian.crowd.migration.GroupMapper
- All Implemented Interfaces:
- Mapper
public class GroupMapper
- extends XmlMapper
- implements Mapper
This mapper will handle the mapping of a Group
.
Fields inherited from class com.atlassian.crowd.migration.legacy.XmlMapper |
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 |
Methods inherited from class com.atlassian.crowd.migration.GenericMapper |
addEntities, addEntity, addEntityViaMerge, addEntityViaSave, getAttributeValue, getDateAsFormattedString, getDateFromDatabase, getDateFromXml, getDirectoryTypeFromLegacyCode, getNameFromLegacyCode, getOperationTypeFromLegacyPermissionName, getSessionFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GROUP_XML_ROOT
protected static final java.lang.String GROUP_XML_ROOT
- See Also:
- Constant Field Values
REMOTE_GROUP_XML_ROOT
public static final java.lang.String REMOTE_GROUP_XML_ROOT
- See Also:
- Constant Field Values
REMOTE_GROUP_XML_NODE
public static final java.lang.String REMOTE_GROUP_XML_NODE
- See Also:
- Constant Field Values
REMOTE_GROUP_XML_PRINCIPAL_NAME
public static final java.lang.String REMOTE_GROUP_XML_PRINCIPAL_NAME
- See Also:
- Constant Field Values
REMOTE_GROUP_XML_NAME
public static final java.lang.String REMOTE_GROUP_XML_NAME
- See Also:
- Constant Field Values
REMOTE_GROUP_XML_PRINCIPAL_DIRECTORY_ID
public static final java.lang.String REMOTE_GROUP_XML_PRINCIPAL_DIRECTORY_ID
- See Also:
- Constant Field Values
REMOTE_GROUP_XML_DIRECTORY_ID
public static final java.lang.String REMOTE_GROUP_XML_DIRECTORY_ID
- See Also:
- Constant Field Values
REMOTE_GROUP_XML_ACTIVE
public static final java.lang.String REMOTE_GROUP_XML_ACTIVE
- See Also:
- Constant Field Values
REMOTE_GROUP_XML_DESCRIPTION
public static final java.lang.String REMOTE_GROUP_XML_DESCRIPTION
- See Also:
- Constant Field Values
REMOTE_GROUP_XML_PRINCIPAL_NODE
public static final java.lang.String REMOTE_GROUP_XML_PRINCIPAL_NODE
- See Also:
- Constant Field Values
REMOTE_GROUP_XML_PRINCIPAL
public static final java.lang.String REMOTE_GROUP_XML_PRINCIPAL
- See Also:
- Constant Field Values
GroupMapper
public GroupMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
GroupDAOHibernate groupDao,
DirectoryDAOHibernate directoryDao)
exportXml
public org.dom4j.Element exportXml(java.util.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.
addGroupToXml
protected void addGroupToXml(InternalGroup group,
java.util.Set<InternalGroupAttribute> attributes,
org.dom4j.Element groupRoot)
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.
getGroupFromXml
protected InternalGroup getGroupFromXml(org.dom4j.Element groupElement)
getGroupAttributesFromXml
protected java.util.Set<InternalGroupAttribute> getGroupAttributesFromXml(org.dom4j.Element groupElement,
InternalGroup groupReference)
Copyright © 2010 Atlassian. All Rights Reserved.