public class PartialXmlMapper extends XmlMapper
GenericMapper.Exporter<T>, GenericMapper.Importer<T>
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 |
---|
PartialXmlMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
DirectoryManager directoryManager,
Set<DirectoryType> includedDirectoryTypes) |
Modifier and Type | Method and Description |
---|---|
protected List<Directory> |
findAllExportableDirectories()
Finds all directories that have user/group/membership data that
need to be exported (ie.
|
protected List<Directory> |
findAllExportableDirectories(boolean includeConnectors)
Finds all directories that have user/group/membership data that
need to be exported (ie.
|
protected boolean |
isExportOfNonLocalGroupsRequired(DirectoryType directoryType)
Determines whether the backup for a directory type includes all groups (both local
and non-local), or just local groups, excluding non-local (remote) groups.
|
protected boolean |
isImportableDirectory(Directory directory) |
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 PartialXmlMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, DirectoryManager directoryManager, Set<DirectoryType> includedDirectoryTypes)
protected boolean isImportableDirectory(Directory directory)
directory
- the directory to be importedprotected List<Directory> findAllExportableDirectories(boolean includeConnectors)
includeConnectors
- flag if connectors should be returned or notprotected List<Directory> findAllExportableDirectories()
protected boolean isExportOfNonLocalGroupsRequired(DirectoryType directoryType)
directoryType
- a directory typeCopyright © 2020 Atlassian. All rights reserved.