Class BackupImporter
- java.lang.Object
-
- com.atlassian.confluence.importexport.Importer
-
- com.atlassian.confluence.importexport.xmlimport.BackupImporter
-
- Direct Known Subclasses:
FileBackupImporter
@Deprecated public abstract class BackupImporter extends Importer
Deprecated.since 7.17.0. UseBackupRestoreManagerinstead.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFLUENCE_IMPORT_USE_LEGACY_IMPORTERDeprecated.static BuildAndVersionNumberFULL_EXPORT_BACKWARDS_COMPATIBILITYDeprecated.Backwards compatibility for full export.static intMINIMUM_BUILD_NUMBERDeprecated.static BuildAndVersionNumberMINIMUM_FULL_IMPORT_BUILD_NUMBERDeprecated.Backwards compatibility for full export.static BuildAndVersionNumberMINIMUM_SPACE_IMPORT_BUILD_NUMBERDeprecated.If you change this, you will break OD <-> BTF imports.static StringMINIMUM_VERSIONDeprecated.protected SettingsManagersettingsManagerDeprecated.static BuildAndVersionNumberSPACE_EXPORT_BACKWARDS_COMPATIBILITYDeprecated.Backwards compatibility of a space export.-
Fields inherited from class com.atlassian.confluence.importexport.Importer
context, sessionFactory
-
-
Constructor Summary
Constructors Constructor Description BackupImporter()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddeleteAllDatabaseContent()Deprecated.protected ImportProcessorSummarydoImportInternal()Deprecated.Performs the actual import.protected booleandoSpecialProcessing(org.hibernate.Session session, TransientHibernateHandle key)Deprecated.StringgetBuildNumberOfImport()Deprecated.StringgetCreatedByBuildNumberOfImport()Deprecated.protected abstract PropertiesgetDescriptorProperties()Deprecated.StringgetExportType()Deprecated.protected UpgradeManagergetUpgradeManager()Deprecated.abstract InputStreamgetXmlEntitiesStream()Deprecated.protected ImportProcessorSummaryimportEntities(boolean hasExtraToImport)Deprecated.protected ImportProcessorSummaryimportEverything()Deprecated.protected ImportProcessorSummaryimportEverything(boolean hasExtraToImport)Deprecated.booleanisBackupAttachments()Deprecated.static booleanisBackupSupportedVersion(String buildNumberOfImport)Deprecated.protected booleanisExportedDefaultUserGroupPermission(SpacePermission permission)Deprecated.booleanisExportScopeAll()Deprecated.booleanisIncrementalImport()Deprecated.protected voidpostImportAndCleanUp()Deprecated.Perform any special logic after the import and post-import tasks are complete.protected voidpreImport()Deprecated.Perform any special logic prior to the import starting.voidsetBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)Deprecated.voidsetBandanaPersister(com.atlassian.bandana.BandanaPersister bandanaPersister)Deprecated.voidsetCacheFlusher(CacheFlusher cacheFlusher)Deprecated.voidsetCacheManager(com.atlassian.cache.CacheManager cacheManager)Deprecated.since 5.10 UsesetCacheFlusher(CacheFlusher)voidsetConfluenceSchemaCreator(ConfluenceSchemaCreator confluenceSchemaCreator)Deprecated.voidsetI18NBeanFactory(I18NBeanFactory i18NBeanFactory)Deprecated.voidsetIndexManager(IndexManager indexManager)Deprecated.voidsetPluginStateStore(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore)Deprecated.voidsetPostRestoreUpgradeTasks(List<UpgradeTask> postRestoreUpgradeTasks)Deprecated.voidsetPreProcessors(List<ImportedObjectPreProcessor> preProcessors)Deprecated.voidsetSchedulerServiceController(com.atlassian.scheduler.core.SchedulerServiceController schedulerServiceController)Deprecated.voidsetSchemaHelper(ConfluenceSchemaHelper schemaHelper)Deprecated.voidsetSettingsManager(SettingsManager settingsManager)Deprecated.voidsetSpaceManager(SpaceManager spaceManager)Deprecated.voidsetTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)Deprecated.voidsetUpgradeFinalizationManager(UpgradeFinalizationManager upgradeFinalizationManager)Deprecated.voidsetUpgradeManager(UpgradeManager upgradeManager)Deprecated.voidsetUserAccessor(UserAccessor userAccessor)Deprecated.voidsetXmlImporter(XmlImporter xmlImporter)Deprecated.protected voidunIndexAll()Deprecated.-
Methods inherited from class com.atlassian.confluence.importexport.Importer
completeProgessMeter, doImport, getEventPublisher, publishEvent, setContext, setEventPublisher, setPostImportTasks, setSessionFactory
-
-
-
-
Field Detail
-
CONFLUENCE_IMPORT_USE_LEGACY_IMPORTER
public static final String CONFLUENCE_IMPORT_USE_LEGACY_IMPORTER
Deprecated.- See Also:
- Constant Field Values
-
MINIMUM_BUILD_NUMBER
public static final int MINIMUM_BUILD_NUMBER
Deprecated.- See Also:
- Constant Field Values
-
MINIMUM_VERSION
public static final String MINIMUM_VERSION
Deprecated.- See Also:
- Constant Field Values
-
MINIMUM_FULL_IMPORT_BUILD_NUMBER
public static final BuildAndVersionNumber MINIMUM_FULL_IMPORT_BUILD_NUMBER
Deprecated.Backwards compatibility for full export. It means it is possible to put an export from the old database in the new one and run all upgrade tasks.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
-
MINIMUM_SPACE_IMPORT_BUILD_NUMBER
public static final BuildAndVersionNumber MINIMUM_SPACE_IMPORT_BUILD_NUMBER
Deprecated.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
-
FULL_EXPORT_BACKWARDS_COMPATIBILITY
public static final BuildAndVersionNumber FULL_EXPORT_BACKWARDS_COMPATIBILITY
Deprecated.Backwards compatibility for full export. It means an export from the current database will be successfully used as-is by a former version of Confluence.If you change this, you will break Cloud <-> 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
-
SPACE_EXPORT_BACKWARDS_COMPATIBILITY
public static final BuildAndVersionNumber SPACE_EXPORT_BACKWARDS_COMPATIBILITY
Deprecated.Backwards compatibility of a space export. It is equal to the backwards compatibility of a full export and this constant is provided for clarity.
-
settingsManager
protected SettingsManager settingsManager
Deprecated.
-
-
Method Detail
-
preImport
protected void preImport() throws ImportExportExceptionDeprecated.Description copied from class:ImporterPerform any special logic prior to the import starting. Default implementation does nothing.- Overrides:
preImportin classImporter- Throws:
ImportExportException- if the import should be aborted
-
isBackupSupportedVersion
public static boolean isBackupSupportedVersion(String buildNumberOfImport)
Deprecated.
-
doImportInternal
protected ImportProcessorSummary doImportInternal() throws ImportExportException
Deprecated.Description copied from class:ImporterPerforms the actual import.- Specified by:
doImportInternalin classImporter- Throws:
ImportExportException- if there was a problem executing the import- See Also:
ImportExportManager.performImport(ImportContext)
-
postImportAndCleanUp
protected void postImportAndCleanUp() throws ImportExportExceptionDeprecated.Description copied from class:ImporterPerform any special logic after the import and post-import tasks are complete. This method will run even if the import fails. The default implementation does nothing.- Overrides:
postImportAndCleanUpin classImporter- Throws:
ImportExportException- if the import process should be aborted
-
importEverything
protected ImportProcessorSummary importEverything() throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
importEverything
protected ImportProcessorSummary importEverything(boolean hasExtraToImport) throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
importEntities
protected ImportProcessorSummary importEntities(boolean hasExtraToImport) throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
doSpecialProcessing
protected boolean doSpecialProcessing(org.hibernate.Session session, TransientHibernateHandle key) throws ImportExportException, org.hibernate.HibernateExceptionDeprecated.- Throws:
ImportExportExceptionorg.hibernate.HibernateException
-
isExportedDefaultUserGroupPermission
protected boolean isExportedDefaultUserGroupPermission(SpacePermission permission)
Deprecated.
-
deleteAllDatabaseContent
public void deleteAllDatabaseContent() throws org.hibernate.HibernateException, SQLException, com.atlassian.config.ConfigurationExceptionDeprecated.- Throws:
org.hibernate.HibernateExceptionSQLExceptioncom.atlassian.config.ConfigurationException
-
unIndexAll
protected void unIndexAll()
Deprecated.
-
getDescriptorProperties
protected abstract Properties getDescriptorProperties() throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
setCacheManager
@Deprecated public void setCacheManager(com.atlassian.cache.CacheManager cacheManager)
Deprecated.since 5.10 UsesetCacheFlusher(CacheFlusher)
-
setCacheFlusher
public void setCacheFlusher(CacheFlusher cacheFlusher)
Deprecated.
-
setUserAccessor
public void setUserAccessor(UserAccessor userAccessor)
Deprecated.
-
setSchemaHelper
@Deprecated public void setSchemaHelper(ConfluenceSchemaHelper schemaHelper)
Deprecated.
-
getExportType
public String getExportType() throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
isBackupAttachments
public boolean isBackupAttachments() throws ImportExportExceptionDeprecated.- Throws:
ImportExportException
-
getBuildNumberOfImport
public String getBuildNumberOfImport() throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
getCreatedByBuildNumberOfImport
public String getCreatedByBuildNumberOfImport() throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
isIncrementalImport
public boolean isIncrementalImport() throws ImportExportExceptionDeprecated.- Throws:
ImportExportException
-
isExportScopeAll
public boolean isExportScopeAll() throws ImportExportExceptionDeprecated.- Throws:
ImportExportException
-
getXmlEntitiesStream
public abstract InputStream getXmlEntitiesStream() throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
setSpaceManager
public void setSpaceManager(SpaceManager spaceManager)
Deprecated.
-
setIndexManager
public void setIndexManager(IndexManager indexManager)
Deprecated.
-
setI18NBeanFactory
public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
Deprecated.
-
setPostRestoreUpgradeTasks
public void setPostRestoreUpgradeTasks(List<UpgradeTask> postRestoreUpgradeTasks)
Deprecated.
-
setUpgradeManager
public void setUpgradeManager(UpgradeManager upgradeManager)
Deprecated.
-
getUpgradeManager
protected UpgradeManager getUpgradeManager()
Deprecated.
-
setUpgradeFinalizationManager
public void setUpgradeFinalizationManager(UpgradeFinalizationManager upgradeFinalizationManager)
Deprecated.
-
setXmlImporter
public void setXmlImporter(XmlImporter xmlImporter)
Deprecated.
-
setTransactionManager
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
Deprecated.
-
setPreProcessors
public void setPreProcessors(List<ImportedObjectPreProcessor> preProcessors)
Deprecated.
-
setPluginStateStore
public void setPluginStateStore(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore)
Deprecated.
-
setBandanaManager
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
Deprecated.
-
setBandanaPersister
public void setBandanaPersister(com.atlassian.bandana.BandanaPersister bandanaPersister)
Deprecated.
-
setSettingsManager
public void setSettingsManager(SettingsManager settingsManager)
Deprecated.
-
setConfluenceSchemaCreator
public void setConfluenceSchemaCreator(ConfluenceSchemaCreator confluenceSchemaCreator)
Deprecated.
-
setSchedulerServiceController
public void setSchedulerServiceController(com.atlassian.scheduler.core.SchedulerServiceController schedulerServiceController)
Deprecated.
-
-