public class GroupMapper extends PartialXmlMapper implements Mapper
Group
.GenericMapper.Exporter<T>, GenericMapper.Importer<T>
Modifier and Type | Field and Description |
---|---|
protected static String |
GROUP_XML_ROOT |
static String |
REMOTE_GROUP_XML_ACTIVE |
static String |
REMOTE_GROUP_XML_DESCRIPTION |
static String |
REMOTE_GROUP_XML_DIRECTORY_ID |
static String |
REMOTE_GROUP_XML_NAME |
static String |
REMOTE_GROUP_XML_NODE |
static String |
REMOTE_GROUP_XML_PRINCIPAL |
static String |
REMOTE_GROUP_XML_PRINCIPAL_DIRECTORY_ID |
static String |
REMOTE_GROUP_XML_PRINCIPAL_NAME |
static String |
REMOTE_GROUP_XML_PRINCIPAL_NODE |
static String |
REMOTE_GROUP_XML_ROOT |
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 |
---|
GroupMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
GroupDAOHibernate groupDao,
DirectoryDAOHibernate directoryDao,
DirectoryManager directoryManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
addGroupToXml(InternalGroup group,
Set<InternalGroupAttribute> attributes,
org.dom4j.Element groupRoot) |
org.dom4j.Element |
exportXml(Map<String,Object> options)
Exports to V2 XML.
|
protected Set<InternalGroupAttribute> |
getGroupAttributesFromXml(org.dom4j.Element groupElement,
InternalGroup groupReference) |
protected InternalGroup |
getGroupFromXml(org.dom4j.Element groupElement,
CrowdBackupDateConverter dateConverter) |
void |
importXml(org.dom4j.Element root)
Imports V2 XML.
|
findAllExportableDirectories, findAllExportableDirectories, isExportOfNonLocalGroupsRequired, isImportableDirectory
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
protected static final String GROUP_XML_ROOT
public static final String REMOTE_GROUP_XML_ROOT
public static final String REMOTE_GROUP_XML_NODE
public static final String REMOTE_GROUP_XML_PRINCIPAL_NAME
public static final String REMOTE_GROUP_XML_NAME
public static final String REMOTE_GROUP_XML_PRINCIPAL_DIRECTORY_ID
public static final String REMOTE_GROUP_XML_DIRECTORY_ID
public static final String REMOTE_GROUP_XML_ACTIVE
public static final String REMOTE_GROUP_XML_DESCRIPTION
public static final String REMOTE_GROUP_XML_PRINCIPAL_NODE
public static final String REMOTE_GROUP_XML_PRINCIPAL
public GroupMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, GroupDAOHibernate groupDao, DirectoryDAOHibernate directoryDao, DirectoryManager directoryManager)
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.protected void addGroupToXml(InternalGroup group, Set<InternalGroupAttribute> attributes, org.dom4j.Element groupRoot)
public void importXml(org.dom4j.Element root) throws ImportException
Mapper
importXml
in interface Mapper
root
- root XML element.ImportException
- error importing data.protected InternalGroup getGroupFromXml(org.dom4j.Element groupElement, CrowdBackupDateConverter dateConverter)
protected Set<InternalGroupAttribute> getGroupAttributesFromXml(org.dom4j.Element groupElement, InternalGroup groupReference)
Copyright © 2020 Atlassian. All rights reserved.