public abstract class BackupImporter extends Importer
Modifier and Type | Field and Description |
---|---|
static String |
CONFLUENCE_IMPORT_USE_LEGACY_IMPORTER |
static BuildAndVersionNumber |
FULL_EXPORT_BACKWARDS_COMPATIBILITY
Backwards compatibility for full export.
|
static int |
MINIMUM_BUILD_NUMBER |
static BuildAndVersionNumber |
MINIMUM_FULL_IMPORT_BUILD_NUMBER
Backwards compatibility for full export.
|
static BuildAndVersionNumber |
MINIMUM_SPACE_IMPORT_BUILD_NUMBER
If you change this, you will break OD <-> BTF imports.
|
static String |
MINIMUM_VERSION |
static BuildAndVersionNumber |
SPACE_EXPORT_BACKWARDS_COMPATIBILITY
Backwards compatibility of a space export.
|
context, sessionFactory
Constructor and Description |
---|
BackupImporter() |
Modifier and Type | Method and Description |
---|---|
void |
deleteAllDatabaseContent() |
protected ImportProcessorSummary |
doImportInternal()
Performs the actual import.
|
protected boolean |
doSpecialProcessing(net.sf.hibernate.Session session,
TransientHibernateHandle key) |
String |
getBuildNumberOfImport() |
String |
getCreatedByBuildNumberOfImport() |
protected abstract Properties |
getDescriptorProperties() |
String |
getExportType() |
protected UpgradeManager |
getUpgradeManager() |
abstract InputStream |
getXmlEntitiesStream() |
protected ImportProcessorSummary |
importEntities(boolean hasExtraToImport) |
protected ImportProcessorSummary |
importEverything() |
protected ImportProcessorSummary |
importEverything(boolean hasExtraToImport) |
boolean |
isBackupAttachments() |
static boolean |
isBackupSupportedVersion(String buildNumberOfImport) |
protected boolean |
isExportedDefaultUserGroupPermission(SpacePermission permission) |
boolean |
isExportScopeAll() |
boolean |
isIncrementalImport() |
protected void |
postImportAndCleanUp()
Perform any special logic after the import and post-import tasks are complete.
|
protected void |
preImport()
Perform any special logic prior to the import starting.
|
void |
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager) |
void |
setCacheFlusher(CacheFlusher cacheFlusher) |
void |
setCacheManager(com.atlassian.cache.CacheManager cacheManager)
Deprecated.
since 5.10 Use
setCacheFlusher(CacheFlusher) |
void |
setI18NBeanFactory(I18NBeanFactory i18NBeanFactory) |
void |
setIncrementalImport(Boolean value)
Deprecated.
since 3.5 this is not used anywhere
|
void |
setIndexManager(ConfluenceIndexManager indexManager) |
void |
setPluginStateStore(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore) |
void |
setPostRestoreUpgradeTasks(List<UpgradeTask> postRestoreUpgradeTasks) |
void |
setPreProcessors(List<ImportedObjectPreProcessor> preProcessors) |
void |
setScheduler(org.quartz.Scheduler scheduler) |
void |
setSchedulerService(com.atlassian.scheduler.core.LifecycleAwareSchedulerService schedulerService) |
void |
setSchemaHelper(SchemaHelper schemaHelper) |
void |
setSettingsManager(SettingsManager settingsManager) |
void |
setSpaceManager(SpaceManager spaceManager) |
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) |
void |
setUpgradeManager(UpgradeManager upgradeManager) |
void |
setUserAccessor(UserAccessor userAccessor) |
void |
setXmlImporter(XmlImporter xmlImporter) |
protected void |
unIndexAll() |
completeProgessMeter, doImport, getEventPublisher, publishEvent, setContext, setEventPublisher, setPostImportTasks, setSessionFactory
public static final String CONFLUENCE_IMPORT_USE_LEGACY_IMPORTER
public static final int MINIMUM_BUILD_NUMBER
public static final String MINIMUM_VERSION
public static final BuildAndVersionNumber MINIMUM_FULL_IMPORT_BUILD_NUMBER
If you change this, you will break OD <-> BTF imports. For help to review your decision, please see Please see https://pug.jira-dev.com/wiki/display/CONFDEV/How+to+add+to+or+change+the+Confluence+Database
public static final BuildAndVersionNumber MINIMUM_SPACE_IMPORT_BUILD_NUMBER
public static final BuildAndVersionNumber FULL_EXPORT_BACKWARDS_COMPATIBILITY
If you change this, you will break OD <-> BTF imports. For help to review your decision, please see https://pug.jira-dev.com/wiki/display/CONFDEV/How+to+add+to+or+change+the+Confluence+Database
public static final BuildAndVersionNumber SPACE_EXPORT_BACKWARDS_COMPATIBILITY
@Deprecated public void setIncrementalImport(Boolean value)
protected void preImport() throws ImportExportException
Importer
preImport
in class Importer
ImportExportException
- if the import should be abortedpublic static boolean isBackupSupportedVersion(String buildNumberOfImport)
protected ImportProcessorSummary doImportInternal() throws ImportExportException
Importer
doImportInternal
in class Importer
ImportExportException
- if there was a problem executing the importImportExportManager.performImport(ImportContext)
protected void postImportAndCleanUp() throws ImportExportException
Importer
postImportAndCleanUp
in class Importer
ImportExportException
- if the import process should be abortedprotected ImportProcessorSummary importEverything() throws ImportExportException
ImportExportException
protected ImportProcessorSummary importEverything(boolean hasExtraToImport) throws ImportExportException
ImportExportException
protected ImportProcessorSummary importEntities(boolean hasExtraToImport) throws ImportExportException
ImportExportException
protected boolean doSpecialProcessing(net.sf.hibernate.Session session, TransientHibernateHandle key) throws ImportExportException, net.sf.hibernate.HibernateException
ImportExportException
net.sf.hibernate.HibernateException
protected boolean isExportedDefaultUserGroupPermission(SpacePermission permission)
public void deleteAllDatabaseContent() throws net.sf.hibernate.HibernateException, SQLException, com.atlassian.config.ConfigurationException
net.sf.hibernate.HibernateException
SQLException
com.atlassian.config.ConfigurationException
protected void unIndexAll()
protected abstract Properties getDescriptorProperties() throws ImportExportException
ImportExportException
@Deprecated public void setCacheManager(com.atlassian.cache.CacheManager cacheManager)
setCacheFlusher(CacheFlusher)
public void setCacheFlusher(CacheFlusher cacheFlusher)
public void setUserAccessor(UserAccessor userAccessor)
public void setSchemaHelper(SchemaHelper schemaHelper)
public String getExportType() throws ImportExportException
ImportExportException
public boolean isBackupAttachments() throws ImportExportException
ImportExportException
public String getBuildNumberOfImport() throws ImportExportException
ImportExportException
public String getCreatedByBuildNumberOfImport() throws ImportExportException
ImportExportException
public boolean isIncrementalImport() throws ImportExportException
ImportExportException
public boolean isExportScopeAll() throws ImportExportException
ImportExportException
public abstract InputStream getXmlEntitiesStream() throws ImportExportException
ImportExportException
public void setSpaceManager(SpaceManager spaceManager)
public void setIndexManager(ConfluenceIndexManager indexManager)
public void setScheduler(org.quartz.Scheduler scheduler)
public void setSchedulerService(com.atlassian.scheduler.core.LifecycleAwareSchedulerService schedulerService)
public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
public void setPostRestoreUpgradeTasks(List<UpgradeTask> postRestoreUpgradeTasks)
public void setUpgradeManager(UpgradeManager upgradeManager)
protected UpgradeManager getUpgradeManager()
public void setXmlImporter(XmlImporter xmlImporter)
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public void setPreProcessors(List<ImportedObjectPreProcessor> preProcessors)
public void setPluginStateStore(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore)
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
public void setSettingsManager(SettingsManager settingsManager)
Copyright © 2003–2016 Atlassian. All rights reserved.