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.EntityIdentifierNested 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, legacyTableQueriesFields 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
ConstructorsConstructorDescriptionPropertyMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate, PropertyDAOHibernate propertyDAO, CrowdBootstrapManager bootstrapManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidimportFromDatabase(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, setLegacyTableQueriesMethods 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, setTimestampMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:DatabaseImporterMigrates data from legacy Crowd database (pre 2.0) to current database (Crowd 2.0+) schema.- Specified by:
importFromDatabasein interfaceDatabaseImporter- Parameters:
importData- stores significant import results- Throws:
ImportException
-
importPropertiesFromDatabase
- Throws:
ImportException
-