public class ApplicationMapper extends DatabaseMapper implements DatabaseImporter
DatabaseMapper.AttributeMapper, DatabaseMapper.EntityIdentifier
jdbcTemplate, legacyTableQueries
DATABASE_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX, XML_DATE_FORMAT
Constructor and Description |
---|
ApplicationMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
org.springframework.jdbc.core.JdbcOperations jdbcTemplate,
DirectoryDAOHibernate directoryDAO) |
Modifier and Type | Method and Description |
---|---|
protected List<ApplicationImpl> |
importApplicationsFromDatabase(Map<Long,Long> oldToNewDirectoryIds) |
void |
importFromDatabase(LegacyImportDataHolder importData)
Migrates data from legacy Crowd database (pre 2.0) to current database (Crowd 2.0+) schema.
|
attributeListToMap, attributeListToMultiAttributeMap, createInternalEntityTemplate, setJdbcTemplate, setLegacyTableQueries
addEntities, addEntity, addEntityViaMerge, addEntityViaSave, getAttributeValue, getDateAsFormattedString, getDateFromDatabase, getDateFromXml, getDirectoryTypeFromLegacyCode, getNameFromLegacyCode, getOperationTypeFromLegacyPermissionName, getSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setLegacyTableQueries
public ApplicationMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate, DirectoryDAOHibernate directoryDAO)
public void importFromDatabase(LegacyImportDataHolder importData) throws ImportException
DatabaseImporter
importFromDatabase
in interface DatabaseImporter
importData
- stores significant import resultsImportException
protected List<ApplicationImpl> importApplicationsFromDatabase(Map<Long,Long> oldToNewDirectoryIds)
Copyright © 2016 Atlassian. All rights reserved.