Class CrowdPropertiesMapper
java.lang.Object
com.atlassian.crowd.migration.GenericMapper
com.atlassian.crowd.migration.legacy.XmlMapper
com.atlassian.crowd.migration.CrowdPropertiesMapper
com.atlassian.crowd.migration.legacy.CrowdPropertiesMapper
- All Implemented Interfaces:
LegacyImporter,Mapper
This class extends the current 2.x CrowdPropertiesMapper because crowd.properties mapping is 100% backwards-compatible in XML.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.crowd.migration.GenericMapper
GenericMapper.Exporter<T>, GenericMapper.Importer<T> -
Field Summary
Fields inherited from class com.atlassian.crowd.migration.CrowdPropertiesMapper
PROPERTIES_XML_ROOT, PROPERTY_XML_NAME, PROPERTY_XML_VALUEFields 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_DATEFields inherited from class com.atlassian.crowd.migration.GenericMapper
DATABASE_DATE_FORMAT, DATE_CONVERTER_FOR_EXPORT, LEGACY_XML_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionCrowdPropertiesMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, ResourceLocator resourceLocator, PropertyUtils propertyUtils) -
Method Summary
Modifier and TypeMethodDescriptionvoidimportXml(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.CrowdPropertiesMapper
exportXml, importXmlMethods inherited from class com.atlassian.crowd.migration.legacy.XmlMapper
exportInternalEntity, exportSingleValuedAttributes, getInternalEntityTemplateFromXml, getSingleValuedAttributesMapFromXmlMethods 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
-
Constructor Details
-
CrowdPropertiesMapper
public CrowdPropertiesMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, ResourceLocator resourceLocator, PropertyUtils propertyUtils)
-
-
Method Details
-
importXml
public void importXml(org.dom4j.Element root, LegacyImportDataHolder importData) throws ImportException Description copied from interface:LegacyImporterImports V1 (legacy Crowd 0.x.x and 1.x.x) XML.- Specified by:
importXmlin interfaceLegacyImporter- Parameters:
root- root XML element.importData- stores significant import results.- Throws:
ImportException
-