public class UserMapper extends PartialXmlMapper implements Mapper
User
.Modifier and Type | Field and Description |
---|---|
protected static String |
USER_XML_NODE |
protected static String |
USER_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, LEGACY_GENERIC_XML_ATTRIBUTE_ID, LEGACY_GENERIC_XML_ATTRIBUTE_KEY, LEGACY_GENERIC_XML_ATTRIBUTE_VALUE, LEGACY_GENERIC_XML_ATTRIBUTE_VALUES, LEGACY_GENERIC_XML_CONCEPTION, LEGACY_GENERIC_XML_LASTMODIFIED
DATABASE_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX, XML_DATE_FORMAT
Constructor and Description |
---|
UserMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
DirectoryDAOHibernate directoryDAO,
UserDAOHibernate userDAO,
DirectoryManager directoryManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
addUserToXml(InternalUser user,
Collection<InternalUserAttribute> attributes,
org.dom4j.Element userRoot) |
org.dom4j.Element |
exportXml(Map options)
Exports to V2 XML.
|
protected List<InternalUserAttribute> |
getUserAttributesFromXml(org.dom4j.Element userElement,
InternalUser userReference) |
protected InternalUser |
getUserFromXml(org.dom4j.Element userElement) |
void |
importXml(org.dom4j.Element root)
Imports V2 XML.
|
findAllExportableDirectories, isExportOfNonLocalGroupsRequired, isImportableDirectory
exportInternalEntity, exportSingleValuedAttributes, getInternalEntityTemplateFromXml, getSingleValuedAttributesMapFromXml
addEntities, addEntity, addEntityViaMerge, addEntityViaSave, getAttributeValue, getDateAsFormattedString, getDateFromDatabase, getDateFromXml, getDirectoryTypeFromLegacyCode, getNameFromLegacyCode, getOperationTypeFromLegacyPermissionName, getSessionFactory
protected static final String USER_XML_ROOT
protected static final String USER_XML_NODE
public UserMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, DirectoryDAOHibernate directoryDAO, UserDAOHibernate userDAO, DirectoryManager directoryManager)
public org.dom4j.Element exportXml(Map options) throws ExportException
Mapper
exportXml
in interface Mapper
options
- map of arbitrarty options.ExportException
- error producing XML.protected void addUserToXml(InternalUser user, Collection<InternalUserAttribute> attributes, org.dom4j.Element userRoot)
public void importXml(org.dom4j.Element root) throws ImportException
Mapper
importXml
in interface Mapper
root
- root XML element.ImportException
- error importing data.protected InternalUser getUserFromXml(org.dom4j.Element userElement)
protected List<InternalUserAttribute> getUserAttributesFromXml(org.dom4j.Element userElement, InternalUser userReference)
Copyright © 2013 Atlassian. All Rights Reserved.