Class PropertyMapper
java.lang.Object
com.atlassian.crowd.migration.GenericMapper
com.atlassian.crowd.migration.legacy.database.DatabaseMapper
com.atlassian.crowd.migration.legacy.database.PropertyMapper
- All Implemented Interfaces:
DatabaseImporter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.crowd.migration.legacy.database.DatabaseMapper
DatabaseMapper.AttributeMapper, DatabaseMapper.EntityIdentifier
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.legacy.database.DatabaseMapper
jdbcTemplate, legacyTableQueries
Fields 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
ConstructorDescriptionPropertyMapper
(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate, PropertyDAOHibernate propertyDAO, CrowdBootstrapManager bootstrapManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
importFromDatabase
(LegacyImportDataHolder importData) Migrates data from legacy Crowd database (pre 2.0) to current database (Crowd 2.0+) schema.Methods inherited from class com.atlassian.crowd.migration.legacy.database.DatabaseMapper
attributeListToMap, attributeListToMultiAttributeMap, createInternalEntityTemplate, getDateFromDatabase, setJdbcTemplate, setLegacyTableQueries
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.crowd.migration.legacy.database.DatabaseImporter
setLegacyTableQueries
-
Constructor Details
-
PropertyMapper
public PropertyMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate, PropertyDAOHibernate propertyDAO, CrowdBootstrapManager bootstrapManager)
-
-
Method Details
-
importFromDatabase
Description copied from interface:DatabaseImporter
Migrates data from legacy Crowd database (pre 2.0) to current database (Crowd 2.0+) schema.- Specified by:
importFromDatabase
in interfaceDatabaseImporter
- Parameters:
importData
- stores significant import results- Throws:
ImportException
-
importPropertiesFromDatabase
- Throws:
ImportException
-