Class DirectoryMapper
java.lang.Object
com.atlassian.crowd.migration.GenericMapper
com.atlassian.crowd.migration.legacy.database.DatabaseMapper
com.atlassian.crowd.migration.legacy.database.DirectoryMapper
- 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
ConstructorDescriptionDirectoryMapper
(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<DirectoryImpl>
importDirectoriesFromDatabase
(Map<Long, Long> oldToNewDirectoryIds) void
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
-
DirectoryMapper
public DirectoryMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
-
-
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
-
importDirectoriesFromDatabase
protected List<DirectoryImpl> importDirectoriesFromDatabase(Map<Long, Long> oldToNewDirectoryIds) throws ImportException- Throws:
ImportException
-