public class RoleMapper extends GenericLegacyImporter implements LegacyImporter
GenericMapper.Exporter<T>, GenericMapper.Importer<T>
Modifier and Type | Field and Description |
---|---|
static String |
REMOTE_ROLE_XML_DESCRIPTION |
static String |
REMOTE_ROLE_XML_DIRECTORY_ID |
static String |
REMOTE_ROLE_XML_PRINCIPAL |
static String |
REMOTE_ROLE_XML_PRINCIPAL_DIRECTORY_ID |
static String |
REMOTE_ROLE_XML_PRINCIPAL_NODE |
static String |
REMOTE_ROLE_XML_ROOT |
DATE_FORMAT, GENERIC_XML_ACTIVE, GENERIC_XML_ATTRIBUTE, GENERIC_XML_ATTRIBUTE_ID, GENERIC_XML_ATTRIBUTE_KEY, GENERIC_XML_ATTRIBUTE_VALUE, GENERIC_XML_ATTRIBUTE_VALUES, GENERIC_XML_ATTRIBUTES_NODE, GENERIC_XML_CONCEPTION, GENERIC_XML_ID, GENERIC_XML_LASTMODIFIED, GENERIC_XML_NAME, logger
DATABASE_DATE_FORMAT, DATE_CONVERTER_FOR_EXPORT, LEGACY_XML_DATE_FORMAT, PLUGIN_KEY_PREFIX
Constructor and Description |
---|
RoleMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
GroupDAOHibernate groupDAO,
MembershipDAOHibernate membershipDAO,
DirectoryDAOHibernate directoryDAO) |
Modifier and Type | Method and Description |
---|---|
protected Set<InternalMembership> |
getMemberships(org.dom4j.Element roleElement,
LegacyImportDataHolder importData,
BatchResultWithIdReferences<Group> roleImportResults) |
protected InternalGroupWithAttributes |
getRoleAndAttributesFromXml(org.dom4j.Element roleElement,
Map<Long,Long> oldToNewDirectoryIds) |
void |
importXml(org.dom4j.Element root,
LegacyImportDataHolder importData)
Imports V1 (legacy Crowd 0.x.x and 1.x.x) XML.
|
getDirectoryManager, getInternalEntityTemplateFromLegacyXml, getMultiValuedAttributesMapFromXml, getPasswordCredentialFromXml, getSingleValuedAttributesMapFromXml, setDirectoryManager
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
public static final String REMOTE_ROLE_XML_ROOT
public static final String REMOTE_ROLE_XML_PRINCIPAL_DIRECTORY_ID
public static final String REMOTE_ROLE_XML_DIRECTORY_ID
public static final String REMOTE_ROLE_XML_DESCRIPTION
public static final String REMOTE_ROLE_XML_PRINCIPAL_NODE
public static final String REMOTE_ROLE_XML_PRINCIPAL
public RoleMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, GroupDAOHibernate groupDAO, MembershipDAOHibernate membershipDAO, DirectoryDAOHibernate directoryDAO)
public void importXml(org.dom4j.Element root, LegacyImportDataHolder importData) throws ImportException
LegacyImporter
importXml
in interface LegacyImporter
root
- root XML element.importData
- stores significant import results.ImportException
protected InternalGroupWithAttributes getRoleAndAttributesFromXml(org.dom4j.Element roleElement, Map<Long,Long> oldToNewDirectoryIds)
protected Set<InternalMembership> getMemberships(org.dom4j.Element roleElement, LegacyImportDataHolder importData, BatchResultWithIdReferences<Group> roleImportResults)
Copyright © 2020 Atlassian. All rights reserved.