public abstract class FileXmlExporter extends AbstractXmlExporter
For example: - copying attachments to temp directory - copying config files
Then performs the zipping and packaging into a zip file
| Modifier and Type | Field and Description |
|---|---|
protected AttachmentManager |
attachmentManager |
ATTACHMENTS_DIRECTORY, bootstrapManager, ENTITIES_FILE_NAME, EXPORT_DESCRIPTOR_FILE_NAME, sessionFactory, spaceManager, TEMPLATES_DIRECTORYi18nBeanFactory| Constructor and Description |
|---|
FileXmlExporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
backupAttachments()
Backs up the Attachments and stores them in the "attachments" directory of the export.
|
protected void |
backupConfigFiles() |
protected void |
backupEverything(HibernateObjectHandleTranslator translator,
com.atlassian.core.util.ProgressMeter progress)
copies attachments, templates and config files
|
protected void |
backupPluginData() |
protected void |
backupResources() |
protected void |
backupTemplates() |
String |
doExport(com.atlassian.core.util.ProgressMeter progress)
Exports the content specified by the configured
ExportContext. |
protected String |
doExportInternal(com.atlassian.core.util.ProgressMeter progress) |
protected abstract List<Space> |
getIncludedSpaces()
Returns the List of Spaces that should be included in the export
|
void |
setAttachmentManager(AttachmentManager attachmentManager) |
void |
setBackupRestoreProviderManager(BackupRestoreProviderManager backupRestoreProviderManager) |
backupEntities, doExport, getDescriptorOutputStream, getExportScope, getHandlesOfObjectsForExport, getObjectsExcludedFromExport, getSettingsManager, getSourceTemplateDirForCopying, getXmlOutputStream, setBootstrapManager, setCustomProperties, setSessionFactory, setSettingsManager, setSpaceManager, setUpgradeManager, writeBackupDescriptorcheckHaveSomethingToExport, createAndSetExportDirectory, createExportDirectory, ensureDirectoryCreated, getSpaceKeyForExportFileName, getWorkingExportContext, prepareExportFileName, setExportFileNameGenerator, setI18NBeanFactorygetContext, setContextprotected AttachmentManager attachmentManager
public String doExport(com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
ExporterExportContext.doExport in class Exporterprogress - the meter to update with progress during the export.ImportExportException - if it fails for any reason.protected String doExportInternal(com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
ImportExportExceptionprotected void backupEverything(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
backupEverything in class AbstractXmlExporterImportExportExceptionprotected abstract List<Space> getIncludedSpaces()
When all Spaces are included, an empty List should be returned
AttachmentDao.AttachmentCopier.setSpacesToInclude(java.util.List)protected void backupAttachments()
throws ImportExportException
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.
protected void backupResources()
throws ImportExportException
ImportExportExceptionprotected void backupTemplates()
throws ImportExportException
ImportExportExceptionprotected void backupConfigFiles()
throws ImportExportException
ImportExportExceptionprotected void backupPluginData()
throws ImportExportException
ImportExportExceptionpublic void setAttachmentManager(AttachmentManager attachmentManager)
public void setBackupRestoreProviderManager(BackupRestoreProviderManager backupRestoreProviderManager)
Copyright © 2003–2020 Atlassian. All rights reserved.