GenericMapper.Exporter<T>, GenericMapper.Importer<T>
Modifier and Type | Field and Description |
---|---|
static String |
PERMISSION_XML_DIR_ID |
static String |
PERMISSION_XML_GROUP |
static String |
PERMISSION_XML_NODE |
static String |
PERMISSION_XML_PERMISSION |
static String |
PERMISSION_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 |
---|
GrantedPermissionMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
UserPermissionDAOHibernate permissionDao,
ApplicationManager applicationManager) |
Modifier and Type | Method and Description |
---|---|
protected InternalGrantedPermission |
buildPermissionFromXml(org.dom4j.Element element,
Application application,
CrowdBackupDateConverter dateConverter) |
protected org.dom4j.Element |
buildXmlFromPermission(InternalGrantedPermission permission) |
org.dom4j.Element |
exportXml(Map<String,Object> options)
Exports to V2 XML.
|
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 PERMISSION_XML_ROOT
public static final String PERMISSION_XML_NODE
public static final String PERMISSION_XML_PERMISSION
public static final String PERMISSION_XML_DIR_ID
public static final String PERMISSION_XML_GROUP
public GrantedPermissionMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, UserPermissionDAOHibernate permissionDao, ApplicationManager applicationManager)
public org.dom4j.Element exportXml(Map<String,Object> options)
Mapper
public void importXml(org.dom4j.Element root) throws ImportException
Mapper
importXml
in interface Mapper
root
- root XML element.ImportException
- error importing data.protected org.dom4j.Element buildXmlFromPermission(InternalGrantedPermission permission)
protected InternalGrantedPermission buildPermissionFromXml(org.dom4j.Element element, Application application, CrowdBackupDateConverter dateConverter)
Copyright © 2020 Atlassian. All rights reserved.