Class PropertyMapper
java.lang.Object
com.atlassian.crowd.migration.GenericMapper
com.atlassian.crowd.migration.legacy.GenericLegacyImporter
com.atlassian.crowd.migration.legacy.PropertyMapper
- All Implemented Interfaces:
LegacyImporter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.crowd.migration.GenericMapper
GenericMapper.Exporter<T>, GenericMapper.Importer<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected static final String
protected static final String
Fields inherited from class com.atlassian.crowd.migration.legacy.GenericLegacyImporter
DATE_FORMAT, GENERIC_XML_ACTIVE, GENERIC_XML_ATTRIBUTE, GENERIC_XML_ATTRIBUTE_ID, GENERIC_XML_ATTRIBUTE_KEY, GENERIC_XML_ATTRIBUTE_VALUE, GENERIC_XML_ATTRIBUTE_VALUES, GENERIC_XML_ATTRIBUTES_NODE, GENERIC_XML_CONCEPTION, GENERIC_XML_ID, GENERIC_XML_LASTMODIFIED, GENERIC_XML_NAME
Fields inherited from class com.atlassian.crowd.migration.GenericMapper
DATABASE_DATE_FORMAT, DATE_CONVERTER_FOR_EXPORT, LEGACY_XML_DATE_FORMAT, PLUGIN_KEY_PREFIX
-
Constructor Summary
ConstructorDescriptionPropertyMapper
(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, PropertyDAOHibernate propertyDAO, CrowdBootstrapManager bootstrapManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
importXml
(org.dom4j.Element root, LegacyImportDataHolder importData) Imports V1 (legacy Crowd 0.x.x and 1.x.x) XML.Methods inherited from class com.atlassian.crowd.migration.legacy.GenericLegacyImporter
getDirectoryManager, getInternalEntityTemplateFromLegacyXml, getMultiValuedAttributesMapFromXml, getPasswordCredentialFromXml, getSingleValuedAttributesMapFromXml, setDirectoryManager
Methods inherited from class com.atlassian.crowd.migration.GenericMapper
addEntities, addEntitiesViaMerge, addEntitiesViaReplicate, addEntity, addEntity, addEntityViaMerge, addEntityViaSave, clearSession, exportXml, getAttributeValue, getBoolean, getBoolean, getDateConverterForXml, getDateFromTimestamp, getDirectoryTypeFromLegacyCode, getLong, getNameFromLegacyCode, getOperationTypeFromLegacyPermissionName, getOptionalValue, getSessionFactory, getString, getValue, importXml, setCDATA, setText, setTimestamp
-
Field Details
-
PROPERTIES_XML_ROOT
- See Also:
-
PROPERTY_XML_NODE
- See Also:
-
PROPERTY_XML_KEY
- See Also:
-
PROPERTY_XML_NAME
- See Also:
-
PROPERTY_XML_VALUE
- See Also:
-
-
Constructor Details
-
PropertyMapper
public PropertyMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, PropertyDAOHibernate propertyDAO, CrowdBootstrapManager bootstrapManager)
-
-
Method Details
-
importXml
public void importXml(org.dom4j.Element root, LegacyImportDataHolder importData) throws ImportException Description copied from interface:LegacyImporter
Imports V1 (legacy Crowd 0.x.x and 1.x.x) XML.- Specified by:
importXml
in interfaceLegacyImporter
- Parameters:
root
- root XML element.importData
- stores significant import results.- Throws:
ImportException
-