public class XmlMigrationManagerImpl extends Object implements XmlMigrationManager, org.springframework.web.context.ServletContextAware
Modifier and Type | Field and Description |
---|---|
static String |
CROWD_DATEFORMAT_ATTRIBUTE |
static String |
CROWD_XML_BUILD_DATE |
static String |
CROWD_XML_BUILD_NUMBER |
static String |
CROWD_XML_DATE |
static String |
CROWD_XML_VERSION |
static String |
IMPORT_EVENT_TYPE |
static String |
ISO8601_PATTERN |
static String |
OPTION_RESET_DOMAIN |
static String |
TRIM_WHITESPACE_IN_BACKUP_KEY |
static String |
XML_ROOT |
Constructor and Description |
---|
XmlMigrationManagerImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanDatabase() |
long |
exportXml(String path,
Map<String,Object> options)
Exports the Crowd server's state to an XML file.
|
long |
importXml(String path)
Imports exported Crowd server state from an XML file.
|
void |
setAuditLogContext(AuditLogContext auditLogContext) |
void |
setAuditLogMetadataResolver(AuditLogMetadataResolver auditLogMetadataResolver) |
void |
setCacheManagers(List<com.atlassian.cache.CacheManager> cacheManagers) |
void |
setConnectionProviderController(ConnectionProviderController connectionProviderController) |
void |
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) |
void |
setLegacyXmlMigrator(LegacyXmlMigrator legacyXmlMigrator) |
void |
setLockService(com.atlassian.beehive.ClusterLockService lockService) |
void |
setResettableHiLoGeneratorResetter(ResettableHiLoGeneratorResetter resettableHiLoGeneratorResetter) |
void |
setSchemaHelper(SchemaHelper schemaHelper) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) |
void |
setUpgradeManager(UpgradeManager upgradeManager) |
void |
setVerificationManager(VerificationManager verificationManager) |
void |
setXmlMigrator(XmlMigrator xmlMigrator) |
public static final String TRIM_WHITESPACE_IN_BACKUP_KEY
public static final String IMPORT_EVENT_TYPE
public static final String XML_ROOT
public static final String CROWD_XML_VERSION
public static final String CROWD_XML_DATE
public static final String CROWD_XML_BUILD_NUMBER
public static final String CROWD_XML_BUILD_DATE
public static final String OPTION_RESET_DOMAIN
public static final String CROWD_DATEFORMAT_ATTRIBUTE
public static final String ISO8601_PATTERN
@Transactional public long exportXml(String path, Map<String,Object> options) throws ExportException, BackupOrRestoreAlreadyInProgressException
XmlMigrationManager
exportXml
in interface XmlMigrationManager
path
- file path of export XML.options
- export options.ExportException
- something went wrong during the export.BackupOrRestoreAlreadyInProgressException
- in case a backup or a restore is already in progresspublic long importXml(String path) throws ImportException, BackupOrRestoreAlreadyInProgressException
XmlMigrationManager
importXml
in interface XmlMigrationManager
path
- file path of the XML backup to import.ImportException
- something went wrong during the import.BackupOrRestoreAlreadyInProgressException
- in case a backup or a restore is already in progressprotected void cleanDatabase() throws OperationFailedException
OperationFailedException
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public void setCacheManagers(List<com.atlassian.cache.CacheManager> cacheManagers)
public void setResettableHiLoGeneratorResetter(ResettableHiLoGeneratorResetter resettableHiLoGeneratorResetter)
public void setUpgradeManager(UpgradeManager upgradeManager)
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
public void setXmlMigrator(XmlMigrator xmlMigrator)
public void setLegacyXmlMigrator(LegacyXmlMigrator legacyXmlMigrator)
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
public void setVerificationManager(VerificationManager verificationManager)
public void setLockService(com.atlassian.beehive.ClusterLockService lockService)
public void setSchemaHelper(SchemaHelper schemaHelper)
public void setConnectionProviderController(ConnectionProviderController connectionProviderController)
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public void setAuditLogContext(AuditLogContext auditLogContext)
public void setAuditLogMetadataResolver(AuditLogMetadataResolver auditLogMetadataResolver)
Copyright © 2020 Atlassian. All rights reserved.