public class RoleMapper extends DatabaseMapper implements DatabaseImporter
DatabaseMapper.AttributeMapper, DatabaseMapper.EntityIdentifier
GenericMapper.Exporter<T>, GenericMapper.Importer<T>
jdbcTemplate, legacyTableQueries
DATABASE_DATE_FORMAT, DATE_CONVERTER_FOR_EXPORT, LEGACY_XML_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX
Constructor and Description |
---|
RoleMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
org.springframework.jdbc.core.JdbcOperations jdbcTemplate,
GroupDAOHibernate groupDAO,
MembershipDAOHibernate membershipDAO,
DirectoryDAOHibernate directoryDAO) |
Modifier and Type | Method and Description |
---|---|
void |
importFromDatabase(LegacyImportDataHolder importData)
Migrates data from legacy Crowd database (pre 2.0) to current database (Crowd 2.0+) schema.
|
protected Set<InternalMembership> |
importMembershipsFromDatabase(LegacyImportDataHolder importData,
BatchResultWithIdReferences<Group> roleImportResults) |
protected List<InternalGroupWithAttributes> |
importRolesFromDatabase(Map<Long,Long> oldToNewDirectoryIds) |
attributeListToMap, attributeListToMultiAttributeMap, createInternalEntityTemplate, getDateFromDatabase, setJdbcTemplate, setLegacyTableQueries
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setLegacyTableQueries
public RoleMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate, GroupDAOHibernate groupDAO, MembershipDAOHibernate membershipDAO, DirectoryDAOHibernate directoryDAO)
public void importFromDatabase(LegacyImportDataHolder importData) throws ImportException
DatabaseImporter
importFromDatabase
in interface DatabaseImporter
importData
- stores significant import resultsImportException
protected List<InternalGroupWithAttributes> importRolesFromDatabase(Map<Long,Long> oldToNewDirectoryIds)
protected Set<InternalMembership> importMembershipsFromDatabase(LegacyImportDataHolder importData, BatchResultWithIdReferences<Group> roleImportResults)
Copyright © 2021 Atlassian. All rights reserved.