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
Methods inherited from class com.atlassian.confluence.importexport.impl.AbstractXmlExporter |
addPropertiesForContent, backupEntities, doExport, getContentAndContentPropertiesFromSpace, getDescriptorOutputStream, getExportType, getHandlesOfObjectsForExport, getObjectsExcludedFromExport, getSettingsManager, getSourceTemplateDirForCopying, getXmlOutputStream, setBootstrapManager, setMailContentManager, setPageManager, setPropertySetManager, setSessionFactory, setSettingsManager, setSpaceManager, 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 String doExport(com.atlassian.core.util.ProgressMeter progress)
throws ImportExportException
- Specified by:
doExport
in class Exporter
- Throws:
ImportExportException
backupEverything
protected void backupEverything(ObjectHandleTranslator 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 List 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
setAttachmentManager
public void setAttachmentManager(AttachmentManager attachmentManager)