Class UserMapper
java.lang.Object
com.atlassian.crowd.migration.GenericMapper
com.atlassian.crowd.migration.legacy.database.DatabaseMapper
com.atlassian.crowd.migration.legacy.database.UserMapper
- 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
ConstructorDescriptionUserMapper
(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate, UserDAOHibernate userDAO, DirectoryDAOHibernate directoryDAO) -
Method Summary
Modifier and TypeMethodDescriptionvoid
importFromDatabase
(LegacyImportDataHolder importData) Migrates data from legacy Crowd database (pre 2.0) to current database (Crowd 2.0+) schema.protected List<UserTemplateWithCredentialAndAttributes>
importUsersFromDatabase
(Map<Long, Long> oldToNewDirectoryIds) 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
-
UserMapper
public UserMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate, UserDAOHibernate userDAO, DirectoryDAOHibernate directoryDAO)
-
-
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
-
importUsersFromDatabase
protected List<UserTemplateWithCredentialAndAttributes> importUsersFromDatabase(Map<Long, Long> oldToNewDirectoryIds) throws ImportException- Throws:
ImportException
-