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. UseBackupRestoreManager
instead.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFLUENCE_IMPORT_USE_LEGACY_IMPORTER
Deprecated.static BuildAndVersionNumber
FULL_EXPORT_BACKWARDS_COMPATIBILITY
Deprecated.Backwards compatibility for full export.static int
MINIMUM_BUILD_NUMBER
Deprecated.static BuildAndVersionNumber
MINIMUM_FULL_IMPORT_BUILD_NUMBER
Deprecated.Backwards compatibility for full export.static BuildAndVersionNumber
MINIMUM_SPACE_IMPORT_BUILD_NUMBER
Deprecated.If you change this, you will break OD <-> BTF imports.static String
MINIMUM_VERSION
Deprecated.protected SettingsManager
settingsManager
Deprecated.static BuildAndVersionNumber
SPACE_EXPORT_BACKWARDS_COMPATIBILITY
Deprecated.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 void
deleteAllDatabaseContent()
Deprecated.protected ImportProcessorSummary
doImportInternal()
Deprecated.Performs the actual import.protected boolean
doSpecialProcessing(org.hibernate.Session session, TransientHibernateHandle key)
Deprecated.String
getBuildNumberOfImport()
Deprecated.String
getCreatedByBuildNumberOfImport()
Deprecated.protected abstract Properties
getDescriptorProperties()
Deprecated.String
getExportType()
Deprecated.protected UpgradeManager
getUpgradeManager()
Deprecated.abstract InputStream
getXmlEntitiesStream()
Deprecated.protected ImportProcessorSummary
importEntities(boolean hasExtraToImport)
Deprecated.protected ImportProcessorSummary
importEverything()
Deprecated.protected ImportProcessorSummary
importEverything(boolean hasExtraToImport)
Deprecated.boolean
isBackupAttachments()
Deprecated.static boolean
isBackupSupportedVersion(String buildNumberOfImport)
Deprecated.protected boolean
isExportedDefaultUserGroupPermission(SpacePermission permission)
Deprecated.boolean
isExportScopeAll()
Deprecated.boolean
isIncrementalImport()
Deprecated.protected void
postImportAndCleanUp()
Deprecated.Perform any special logic after the import and post-import tasks are complete.protected void
preImport()
Deprecated.Perform any special logic prior to the import starting.void
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
Deprecated.void
setBandanaPersister(com.atlassian.bandana.BandanaPersister bandanaPersister)
Deprecated.void
setCacheFlusher(CacheFlusher cacheFlusher)
Deprecated.void
setCacheManager(com.atlassian.cache.CacheManager cacheManager)
Deprecated.since 5.10 UsesetCacheFlusher(CacheFlusher)
void
setConfluenceSchemaCreator(ConfluenceSchemaCreator confluenceSchemaCreator)
Deprecated.void
setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
Deprecated.void
setIndexManager(IndexManager indexManager)
Deprecated.void
setPluginStateStore(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore)
Deprecated.void
setPostRestoreUpgradeTasks(List<UpgradeTask> postRestoreUpgradeTasks)
Deprecated.void
setPreProcessors(List<ImportedObjectPreProcessor> preProcessors)
Deprecated.void
setSchedulerServiceController(com.atlassian.scheduler.core.SchedulerServiceController schedulerServiceController)
Deprecated.void
setSchemaHelper(ConfluenceSchemaHelper schemaHelper)
Deprecated.void
setSettingsManager(SettingsManager settingsManager)
Deprecated.void
setSpaceManager(SpaceManager spaceManager)
Deprecated.void
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
Deprecated.void
setUpgradeFinalizationManager(UpgradeFinalizationManager upgradeFinalizationManager)
Deprecated.void
setUpgradeManager(UpgradeManager upgradeManager)
Deprecated.void
setUserAccessor(UserAccessor userAccessor)
Deprecated.void
setXmlImporter(XmlImporter xmlImporter)
Deprecated.protected void
unIndexAll()
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 ImportExportException
Deprecated.Description copied from class:Importer
Perform any special logic prior to the import starting. Default implementation does nothing.- Overrides:
preImport
in 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:Importer
Performs the actual import.- Specified by:
doImportInternal
in classImporter
- Throws:
ImportExportException
- if there was a problem executing the import- See Also:
ImportExportManager.performImport(ImportContext)
-
postImportAndCleanUp
protected void postImportAndCleanUp() throws ImportExportException
Deprecated.Description copied from class:Importer
Perform 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:
postImportAndCleanUp
in 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.HibernateException
Deprecated.- Throws:
ImportExportException
org.hibernate.HibernateException
-
isExportedDefaultUserGroupPermission
protected boolean isExportedDefaultUserGroupPermission(SpacePermission permission)
Deprecated.
-
deleteAllDatabaseContent
public void deleteAllDatabaseContent() throws org.hibernate.HibernateException, SQLException, com.atlassian.config.ConfigurationException
Deprecated.- Throws:
org.hibernate.HibernateException
SQLException
com.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 ImportExportException
Deprecated.- 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 ImportExportException
Deprecated.- Throws:
ImportExportException
-
isExportScopeAll
public boolean isExportScopeAll() throws ImportExportException
Deprecated.- 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.
-
-