com.atlassian.confluence.importexport.impl
Class FileXmlExporter
java.lang.Object
com.atlassian.confluence.importexport.Exporter
com.atlassian.confluence.importexport.impl.AbstractExporterImpl
com.atlassian.confluence.importexport.impl.AbstractXmlExporter
com.atlassian.confluence.importexport.impl.FileXmlExporter
- Direct Known Subclasses:
- BackupExporter, XmlExporter
public abstract class FileXmlExporter
- extends AbstractXmlExporter
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
Fields inherited from class com.atlassian.confluence.importexport.Exporter |
context |
Methods inherited from class com.atlassian.confluence.importexport.impl.AbstractXmlExporter |
backupEntities, doExport, getDescriptorOutputStream, getExportScope, getExportType, getHandlesOfObjectsForExport, getObjectsExcludedFromExport, getSettingsManager, getSourceTemplateDirForCopying, getXmlOutputStream, setBootstrapManager, setCustomProperties, setSessionFactory, setSettingsManager, setSpaceManager, setUpgradeManager, writeBackupDescriptor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attachmentManager
protected AttachmentManager attachmentManager
FileXmlExporter
public FileXmlExporter()
doExport
public java.lang.String doExport(com.atlassian.core.util.ProgressMeter progress)
throws ImportExportException
- Description copied from class:
Exporter
- Exports the content specified by the configured
ExportContext
.
- Specified by:
doExport
in class Exporter
- 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.
backupEverything
protected void backupEverything(HibernateObjectHandleTranslator translator,
com.atlassian.core.util.ProgressMeter progress)
throws ImportExportException
- copies attachments, templates and config files
- Overrides:
backupEverything
in class AbstractXmlExporter
- Throws:
ImportExportException
getIncludedSpaces
protected abstract java.util.List<Space> getIncludedSpaces()
- Returns the List of Spaces that should be included in the export
When 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
- 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.
- Throws:
ImportExportException
- See Also:
AbstractXmlExporter.getObjectsExcludedFromExport()
,
getIncludedSpaces()
backupResources
protected void backupResources()
throws ImportExportException
- Throws:
ImportExportException
backupTemplates
protected void backupTemplates()
throws ImportExportException
- Throws:
ImportExportException
backupConfigFiles
protected void backupConfigFiles()
throws ImportExportException
- Throws:
ImportExportException
backupPluginData
protected void backupPluginData()
throws ImportExportException
- Throws:
ImportExportException
setAttachmentManager
public void setAttachmentManager(AttachmentManager attachmentManager)
setBackupRestoreProviderManager
public void setBackupRestoreProviderManager(BackupRestoreProviderManager backupRestoreProviderManager)
Copyright © 2003-2013 Atlassian. All Rights Reserved.