public class ApplicationMapper extends XmlMapper implements Mapper
Application
GenericMapper.Exporter<T>, GenericMapper.Importer<T>
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_XML_AUTO_GROUP_ADD_CONFIG |
static String |
APPLICATION_XML_AUTO_GROUP_ADD_CONFIGS |
static String |
APPLICATION_XML_CREDENTIAL |
static String |
APPLICATION_XML_DESCRIPTION |
static String |
APPLICATION_XML_DIRECTORY_ALLOW_ALL |
static String |
APPLICATION_XML_DIRECTORY_ID |
static String |
APPLICATION_XML_DIRECTORY_MAPPING |
static String |
APPLICATION_XML_DIRECTORY_MAPPINGS |
static String |
APPLICATION_XML_GROUP_MAPPING |
static String |
APPLICATION_XML_GROUP_MAPPINGS |
static String |
APPLICATION_XML_GROUP_NAME |
static String |
APPLICATION_XML_NODE |
static String |
APPLICATION_XML_PERMISSION |
static String |
APPLICATION_XML_PERMISSIONS |
static String |
APPLICATION_XML_REMOTE_ADDRESS |
static String |
APPLICATION_XML_REMOTE_ADDRESSES |
static String |
APPLICATION_XML_ROOT |
static String |
APPLICATION_XML_TYPE |
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
DATABASE_DATE_FORMAT, DATE_CONVERTER_FOR_EXPORT, LEGACY_XML_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX
Constructor and Description |
---|
ApplicationMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
ApplicationManager applicationManager,
DirectoryDAOHibernate directoryDAO,
ApplicationDefaultGroupMembershipConfigurationDaoHibernate defaultGroupMembershipsDao) |
Modifier and Type | Method and Description |
---|---|
protected void |
addApplicationToXml(ApplicationImpl application,
org.dom4j.Element directoryRoot) |
org.dom4j.Element |
exportXml(Map<String,Object> options)
Exports to V2 XML.
|
protected TransactionGroup<ApplicationImpl,InternalApplicationDefaultGroupMembershipConfiguration> |
getApplicationFromXml(org.dom4j.Element applicationElement,
CrowdBackupDateConverter dateConverter) |
void |
importXml(org.dom4j.Element root)
Imports V2 XML.
|
exportInternalEntity, exportSingleValuedAttributes, getInternalEntityTemplateFromXml, getSingleValuedAttributesMapFromXml
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 APPLICATION_XML_ROOT
public static final String APPLICATION_XML_NODE
public static final String APPLICATION_XML_TYPE
public static final String APPLICATION_XML_DESCRIPTION
public static final String APPLICATION_XML_CREDENTIAL
public static final String APPLICATION_XML_REMOTE_ADDRESSES
public static final String APPLICATION_XML_REMOTE_ADDRESS
public static final String APPLICATION_XML_DIRECTORY_MAPPINGS
public static final String APPLICATION_XML_DIRECTORY_MAPPING
public static final String APPLICATION_XML_AUTO_GROUP_ADD_CONFIGS
public static final String APPLICATION_XML_AUTO_GROUP_ADD_CONFIG
public static final String APPLICATION_XML_DIRECTORY_ID
public static final String APPLICATION_XML_DIRECTORY_ALLOW_ALL
public static final String APPLICATION_XML_PERMISSIONS
public static final String APPLICATION_XML_PERMISSION
public static final String APPLICATION_XML_GROUP_MAPPINGS
public static final String APPLICATION_XML_GROUP_MAPPING
public static final String APPLICATION_XML_GROUP_NAME
public ApplicationMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, ApplicationManager applicationManager, DirectoryDAOHibernate directoryDAO, ApplicationDefaultGroupMembershipConfigurationDaoHibernate defaultGroupMembershipsDao)
public org.dom4j.Element exportXml(Map<String,Object> options) throws ExportException
Mapper
exportXml
in interface Mapper
options
- map of arbitrarty options.ExportException
- error producing XML.public void importXml(org.dom4j.Element root) throws ImportException
Mapper
importXml
in interface Mapper
root
- root XML element.ImportException
- error importing data.protected void addApplicationToXml(ApplicationImpl application, org.dom4j.Element directoryRoot) throws ExportException
ExportException
protected TransactionGroup<ApplicationImpl,InternalApplicationDefaultGroupMembershipConfiguration> getApplicationFromXml(org.dom4j.Element applicationElement, CrowdBackupDateConverter dateConverter)
Copyright © 2021 Atlassian. All rights reserved.