Package com.atlassian.crowd.migration
Class ApplicationMapper
java.lang.Object
com.atlassian.crowd.migration.GenericMapper
com.atlassian.crowd.migration.legacy.XmlMapper
com.atlassian.crowd.migration.ApplicationMapper
- All Implemented Interfaces:
Mapper
This mapper will handle the mapping of a
Application
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.crowd.migration.GenericMapper
GenericMapper.Exporter<T>, GenericMapper.Importer<T>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.atlassian.crowd.migration.legacy.XmlMapper
GENERIC_XML_ACTIVE, GENERIC_XML_ATTRIBUTE, GENERIC_XML_ATTRIBUTE_NAME, GENERIC_XML_ATTRIBUTE_VALUE, GENERIC_XML_ATTRIBUTES, GENERIC_XML_CREATED_DATE, GENERIC_XML_ID, GENERIC_XML_NAME, GENERIC_XML_UPDATED_DATE
Fields inherited from class com.atlassian.crowd.migration.GenericMapper
DATABASE_DATE_FORMAT, DATE_CONVERTER_FOR_EXPORT, LEGACY_XML_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX
-
Constructor Summary
ConstructorDescriptionApplicationMapper
(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, ApplicationManager applicationManager, DirectoryDAOHibernate directoryDAO, ApplicationDefaultGroupMembershipConfigurationDaoHibernate defaultGroupMembershipsDao) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addApplicationToXml
(ApplicationImpl application, org.dom4j.Element directoryRoot) org.dom4j.Element
Exports to V2 XML.getApplicationFromXml
(org.dom4j.Element applicationElement, CrowdBackupDateConverter dateConverter) void
importXml
(org.dom4j.Element root) Imports V2 XML.Methods inherited from class com.atlassian.crowd.migration.legacy.XmlMapper
exportInternalEntity, exportSingleValuedAttributes, getInternalEntityTemplateFromXml, getSingleValuedAttributesMapFromXml
Methods inherited from class com.atlassian.crowd.migration.GenericMapper
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
-
Field Details
-
APPLICATION_XML_ROOT
- See Also:
-
APPLICATION_XML_NODE
- See Also:
-
APPLICATION_XML_TYPE
- See Also:
-
APPLICATION_XML_DESCRIPTION
- See Also:
-
APPLICATION_XML_CREDENTIAL
- See Also:
-
APPLICATION_XML_REMOTE_ADDRESSES
- See Also:
-
APPLICATION_XML_REMOTE_ADDRESS
- See Also:
-
APPLICATION_XML_DIRECTORY_MAPPINGS
- See Also:
-
APPLICATION_XML_DIRECTORY_MAPPING
- See Also:
-
APPLICATION_XML_AUTO_GROUP_ADD_CONFIGS
- See Also:
-
APPLICATION_XML_AUTO_GROUP_ADD_CONFIG
- See Also:
-
APPLICATION_XML_DIRECTORY_ID
- See Also:
-
APPLICATION_XML_DIRECTORY_ALLOW_ALL
- See Also:
-
APPLICATION_XML_PERMISSIONS
- See Also:
-
APPLICATION_XML_PERMISSION
- See Also:
-
APPLICATION_XML_GROUP_MAPPINGS
- See Also:
-
APPLICATION_XML_GROUP_MAPPING
- See Also:
-
APPLICATION_XML_GROUP_NAME
- See Also:
-
-
Constructor Details
-
ApplicationMapper
public ApplicationMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, ApplicationManager applicationManager, DirectoryDAOHibernate directoryDAO, ApplicationDefaultGroupMembershipConfigurationDaoHibernate defaultGroupMembershipsDao)
-
-
Method Details
-
exportXml
Description copied from interface:Mapper
Exports to V2 XML.- Specified by:
exportXml
in interfaceMapper
- Parameters:
options
- map of arbitrarty options.- Returns:
- XML element, or null if you are not mapping
- Throws:
ExportException
- error producing XML.
-
importXml
Description copied from interface:Mapper
Imports V2 XML.- Specified by:
importXml
in interfaceMapper
- Parameters:
root
- root XML element.- Throws:
ImportException
- error importing data.
-
addApplicationToXml
protected void addApplicationToXml(ApplicationImpl application, org.dom4j.Element directoryRoot) throws ExportException - Throws:
ExportException
-
getApplicationFromXml
protected TransactionGroup<ApplicationImpl,InternalApplicationDefaultGroupMembershipConfiguration> getApplicationFromXml(org.dom4j.Element applicationElement, CrowdBackupDateConverter dateConverter)
-