Class AbstractFileXmlExporter
java.lang.Object
com.atlassian.confluence.importexport.Exporter
com.atlassian.confluence.impl.importexport.AbstractExporterImpl
com.atlassian.confluence.impl.importexport.AbstractXmlExporter
com.atlassian.confluence.impl.importexport.AbstractFileXmlExporter
Performs the file IO side of the export/backup
For example: - copying attachments to temp directory - copying config files
Then performs the zipping and packaging into a zip file
- Since:
- 7.14
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AttachmentManagerInternalprotected final ExecutorServiceFields inherited from class com.atlassian.confluence.impl.importexport.AbstractXmlExporter
ATTACHMENTS_DIRECTORY, bootstrapManager, ENTITIES_FILE_NAME, EXPORT_DESCRIPTOR_FILE_NAME, sessionFactory5, spaceManager, TEMPLATES_DIRECTORYFields inherited from class com.atlassian.confluence.impl.importexport.AbstractExporterImpl
i18nBeanFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidBacks up the Attachments and stores them in the "attachments" directory of the export.protected voidprotected voidprotected voidprotected voiddoExport(com.atlassian.core.util.ProgressMeter progress) Exports the content specified by the configuredExportContext.Returns the List of Spaces that should be included in the exportvoidsetAttachmentManager(AttachmentManagerInternal attachmentManager) voidsetBackupRestoreProviderManager(BackupRestoreProviderManager backupRestoreProviderManager) voidsetConfluenceHome(com.atlassian.dc.filestore.api.compat.FilesystemPath confluenceHome) protected voidwaitUntilJobFinishes(Long jobId) Methods inherited from class com.atlassian.confluence.impl.importexport.AbstractXmlExporter
getExportScope, getObjectsExcludedFromExport, getSettingsManager, getSourceTemplateDirForCopying, getXmlOutputStream, setBootstrapManager, setSessionFactory5, setSettingsManager, setSpaceManager, setUpgradeManagerMethods inherited from class com.atlassian.confluence.impl.importexport.AbstractExporterImpl
checkHaveSomethingToExport, createAndSetExportDirectory, createExportDirectory, ensureDirectoryCreated, getSpaceKeyForExportFileName, getWorkingExportContext, prepareExportFileName, setExportFileNameGenerator, setI18NBeanFactoryMethods inherited from class com.atlassian.confluence.importexport.Exporter
getContext, setContext
-
Field Details
-
attachmentManager
-
executorService
-
-
Constructor Details
-
AbstractFileXmlExporter
public AbstractFileXmlExporter()
-
-
Method Details
-
doExport
Description copied from class:ExporterExports the content specified by the configuredExportContext.- Specified by:
doExportin classExporter- Parameters:
progress- the meter to update with progress during the export.- Returns:
- the path to the exported content.
- Throws:
ImportExportException- if it fails for any reason.
-
waitUntilJobFinishes
- Throws:
InterruptedException
-
getIncludedSpaces
Returns the List of Spaces that should be included in the exportWhen all Spaces are included, an empty List should be returned
- Returns:
- a List of Space objects
- See Also:
-
backupAttachments
Backs up the Attachments and stores them in the "attachments" directory of the export.This method copies all attachments from the current Attachment store to the export location.
The spaces to be included in the export are used to restrict what attachments are included. The pages to be excluded in the export are used to restrict what attachments are included.
-
backupResources
- Throws:
ImportExportException
-
backupTemplates
- Throws:
ImportExportException
-
backupConfigFiles
- Throws:
ImportExportException
-
backupPluginData
- Throws:
ImportExportException
-
setAttachmentManager
-
setBackupRestoreProviderManager
public void setBackupRestoreProviderManager(BackupRestoreProviderManager backupRestoreProviderManager) -
setConfluenceHome
public void setConfluenceHome(com.atlassian.dc.filestore.api.compat.FilesystemPath confluenceHome)
-