Class FileXmlExporter
- java.lang.Object
-
- com.atlassian.confluence.importexport.Exporter
-
- com.atlassian.confluence.impl.importexport.AbstractExporterImpl
-
- com.atlassian.confluence.impl.importexport.AbstractXmlExporter
-
- com.atlassian.confluence.importexport.impl.FileXmlExporter
-
- Direct Known Subclasses:
XmlExporter
@Deprecated public abstract class FileXmlExporter extends AbstractXmlExporter
Deprecated.since 7.14 Replaced byAbstractFileXmlExporterPerforms the file IO side of the export/backupFor example: - copying attachments to temp directory - copying config files
Then performs the zipping and packaging into a zip file
-
-
Field Summary
Fields Modifier and Type Field Description protected AttachmentManagerattachmentManagerDeprecated.-
Fields inherited from class com.atlassian.confluence.impl.importexport.AbstractXmlExporter
ATTACHMENTS_DIRECTORY, bootstrapManager, ENTITIES_FILE_NAME, EXPORT_DESCRIPTOR_FILE_NAME, sessionFactory5, spaceManager, TEMPLATES_DIRECTORY
-
Fields inherited from class com.atlassian.confluence.impl.importexport.AbstractExporterImpl
i18nBeanFactory
-
-
Constructor Summary
Constructors Constructor Description FileXmlExporter()Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidbackupAttachments()Deprecated.Backs up the Attachments and stores them in the "attachments" directory of the export.protected voidbackupConfigFiles()Deprecated.protected voidbackupEverything(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress)Deprecated.copies attachments, templates and config filesprotected voidbackupPluginData()Deprecated.protected voidbackupResources()Deprecated.protected voidbackupTemplates()Deprecated.StringdoExport(com.atlassian.core.util.ProgressMeter progress)Deprecated.Exports the content specified by the configuredExportContext.protected StringdoExportInternal(com.atlassian.core.util.ProgressMeter progress)Deprecated.protected abstract List<Space>getIncludedSpaces()Deprecated.Returns the List of Spaces that should be included in the exportvoidsetAttachmentManager(AttachmentManager attachmentManager)Deprecated.voidsetBackupRestoreProviderManager(BackupRestoreProviderManager backupRestoreProviderManager)Deprecated.voidsetConfluenceHome(com.atlassian.dc.filestore.api.compat.FilesystemPath confluenceHome)Deprecated.-
Methods inherited from class com.atlassian.confluence.impl.importexport.AbstractXmlExporter
backupEntities, doExport, getDescriptorOutputStream, getExportScope, getHandlesOfObjectsForExport, getObjectsExcludedFromExport, getSettingsManager, getSourceTemplateDirForCopying, getXmlOutputStream, setBootstrapManager, setCustomProperties, setSessionFactory5, setSettingsManager, setSpaceManager, setUpgradeManager, writeBackupDescriptor
-
Methods inherited from class com.atlassian.confluence.impl.importexport.AbstractExporterImpl
checkHaveSomethingToExport, createAndSetExportDirectory, createExportDirectory, ensureDirectoryCreated, getSpaceKeyForExportFileName, getWorkingExportContext, prepareExportFileName, setExportFileNameGenerator, setI18NBeanFactory
-
Methods inherited from class com.atlassian.confluence.importexport.Exporter
getContext, setContext
-
-
-
-
Field Detail
-
attachmentManager
protected AttachmentManager attachmentManager
Deprecated.
-
-
Method Detail
-
doExport
public String doExport(com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
Deprecated.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.
-
doExportInternal
protected String doExportInternal(com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
backupEverything
protected void backupEverything(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
Deprecated.copies attachments, templates and config files- Overrides:
backupEverythingin classAbstractXmlExporter- Throws:
ImportExportException
-
getIncludedSpaces
protected abstract List<Space> getIncludedSpaces()
Deprecated.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:
AttachmentDao.AttachmentCopier.setSpacesToInclude(java.util.List)
-
backupAttachments
protected void backupAttachments() throws ImportExportExceptionDeprecated.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
protected void backupResources() throws ImportExportExceptionDeprecated.- Throws:
ImportExportException
-
backupTemplates
protected void backupTemplates() throws ImportExportExceptionDeprecated.- Throws:
ImportExportException
-
backupConfigFiles
protected void backupConfigFiles() throws ImportExportExceptionDeprecated.- Throws:
ImportExportException
-
backupPluginData
protected void backupPluginData() throws ImportExportExceptionDeprecated.- Throws:
ImportExportException
-
setAttachmentManager
public void setAttachmentManager(AttachmentManager attachmentManager)
Deprecated.
-
setBackupRestoreProviderManager
public void setBackupRestoreProviderManager(BackupRestoreProviderManager backupRestoreProviderManager)
Deprecated.
-
setConfluenceHome
public void setConfluenceHome(com.atlassian.dc.filestore.api.compat.FilesystemPath confluenceHome)
Deprecated.
-
-