public class GenericLegacyImporter extends GenericMapper
GenericMapper.Exporter<T>, GenericMapper.Importer<T>
Modifier and Type | Field and Description |
---|---|
protected static String |
DATE_FORMAT |
static String |
GENERIC_XML_ACTIVE |
static String |
GENERIC_XML_ATTRIBUTE |
static String |
GENERIC_XML_ATTRIBUTE_ID |
static String |
GENERIC_XML_ATTRIBUTE_KEY |
static String |
GENERIC_XML_ATTRIBUTE_VALUE |
static String |
GENERIC_XML_ATTRIBUTE_VALUES |
static String |
GENERIC_XML_ATTRIBUTES_NODE |
static String |
GENERIC_XML_CONCEPTION |
static String |
GENERIC_XML_ID |
static String |
GENERIC_XML_LASTMODIFIED |
static String |
GENERIC_XML_NAME |
protected org.slf4j.Logger |
logger |
DATABASE_DATE_FORMAT, DATE_CONVERTER_FOR_EXPORT, LEGACY_XML_DATE_FORMAT, PLUGIN_KEY_PREFIX
Constructor and Description |
---|
GenericLegacyImporter(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor) |
Modifier and Type | Method and Description |
---|---|
DirectoryManager |
getDirectoryManager() |
protected InternalEntityTemplate |
getInternalEntityTemplateFromLegacyXml(org.dom4j.Element element)
Constructs an InternalEntityTemplate from a legacy (Crowd 1.x) XML element.
|
protected Map<String,Set<String>> |
getMultiValuedAttributesMapFromXml(org.dom4j.Element element)
Constructs an Map<String, Set<String>> of attributes from a legacy (Crowd 1.x) XML element.
|
protected PasswordCredential |
getPasswordCredentialFromXml(org.dom4j.Element parentElement) |
protected Map<String,String> |
getSingleValuedAttributesMapFromXml(org.dom4j.Element element)
Constructs an Map<String, String> of attributes from a legacy (Crowd 1.x) XML element.
|
void |
setDirectoryManager(DirectoryManager directoryManager) |
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
protected final org.slf4j.Logger logger
protected static final String DATE_FORMAT
public static final String GENERIC_XML_ID
public static final String GENERIC_XML_NAME
public static final String GENERIC_XML_ACTIVE
public static final String GENERIC_XML_CONCEPTION
public static final String GENERIC_XML_LASTMODIFIED
public static final String GENERIC_XML_ATTRIBUTES_NODE
public static final String GENERIC_XML_ATTRIBUTE
public static final String GENERIC_XML_ATTRIBUTE_ID
public static final String GENERIC_XML_ATTRIBUTE_VALUES
public static final String GENERIC_XML_ATTRIBUTE_VALUE
public static final String GENERIC_XML_ATTRIBUTE_KEY
public GenericLegacyImporter(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor)
protected InternalEntityTemplate getInternalEntityTemplateFromLegacyXml(org.dom4j.Element element)
This imports: id, name, createdDate, updatedDate and active.
element
- XML element to import from.protected Map<String,Set<String>> getMultiValuedAttributesMapFromXml(org.dom4j.Element element)
This imports attributes with multiple values.
element
- XML element to import from.protected Map<String,String> getSingleValuedAttributesMapFromXml(org.dom4j.Element element)
This imports attributes with multiple values and picks the first attribute value if more than one exists.
element
- XML element to import from.public DirectoryManager getDirectoryManager()
public void setDirectoryManager(DirectoryManager directoryManager)
protected PasswordCredential getPasswordCredentialFromXml(org.dom4j.Element parentElement)
Copyright © 2020 Atlassian. All rights reserved.