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 byAbstractFileXmlExporter
Performs 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 AttachmentManager
attachmentManager
Deprecated.-
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 void
backupAttachments()
Deprecated.Backs up the Attachments and stores them in the "attachments" directory of the export.protected void
backupConfigFiles()
Deprecated.protected void
backupEverything(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress)
Deprecated.copies attachments, templates and config filesprotected void
backupPluginData()
Deprecated.protected void
backupResources()
Deprecated.protected void
backupTemplates()
Deprecated.String
doExport(com.atlassian.core.util.ProgressMeter progress)
Deprecated.Exports the content specified by the configuredExportContext
.protected String
doExportInternal(com.atlassian.core.util.ProgressMeter progress)
Deprecated.protected abstract List<Space>
getIncludedSpaces()
Deprecated.Returns the List of Spaces that should be included in the exportvoid
setAttachmentManager(AttachmentManager attachmentManager)
Deprecated.void
setBackupRestoreProviderManager(BackupRestoreProviderManager backupRestoreProviderManager)
Deprecated.void
setConfluenceHome(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:Exporter
Exports the content specified by the configuredExportContext
.- Specified by:
doExport
in 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:
backupEverything
in 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 ImportExportException
Deprecated.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 ImportExportException
Deprecated.- Throws:
ImportExportException
-
backupTemplates
protected void backupTemplates() throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
backupConfigFiles
protected void backupConfigFiles() throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
backupPluginData
protected void backupPluginData() throws ImportExportException
Deprecated.- 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.
-
-