com.atlassian.crowd.migration.legacy.database
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
public class UserMapper
- extends DatabaseMapper
- implements DatabaseImporter
Methods inherited from class com.atlassian.crowd.migration.GenericMapper |
addEntities, addEntity, addEntityViaMerge, addEntityViaSave, getAttributeValue, getDateAsFormattedString, getDateFromDatabase, getDateFromXml, getDirectoryTypeFromLegacyCode, getNameFromLegacyCode, getOperationTypeFromLegacyPermissionName, getSessionFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserMapper
public UserMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
org.springframework.jdbc.core.JdbcOperations jdbcTemplate,
UserDAOHibernate userDAO,
DirectoryDAOHibernate directoryDAO)
importFromDatabase
public void importFromDatabase(LegacyImportDataHolder importData)
throws ImportException
- 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 interface DatabaseImporter
- Parameters:
importData
- stores significant import results
- Throws:
ImportException
importUsersFromDatabase
protected List<UserTemplateWithCredentialAndAttributes> importUsersFromDatabase(Map<Long,Long> oldToNewDirectoryIds)
throws ImportException
- Throws:
ImportException
Copyright © 2013 Atlassian. All Rights Reserved.