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_DIRECTORY
i18nBeanFactory
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, getExportType, getHandlesOfObjectsForExport, getObjectsExcludedFromExport, getSettingsManager, getSourceTemplateDirForCopying, getXmlOutputStream, setBootstrapManager, setCustomProperties, setSessionFactory, setSettingsManager, setSpaceManager, setUpgradeManager, writeBackupDescriptor
checkHaveSomethingToExport, createAndSetExportDirectory, createExportDirectory, ensureDirectoryCreated, getSpaceKeyForExportFileName, getWorkingExportContext, prepareExportFileName, setExportFileNameGenerator, setI18NBeanFactory
getContext, setContext
protected AttachmentManager attachmentManager
public String doExport(com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
Exporter
ExportContext
.doExport
in class Exporter
progress
- 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
ImportExportException
protected void backupEverything(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
backupEverything
in class AbstractXmlExporter
ImportExportException
protected 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
ImportExportException
protected void backupTemplates() throws ImportExportException
ImportExportException
protected void backupConfigFiles() throws ImportExportException
ImportExportException
protected void backupPluginData() throws ImportExportException
ImportExportException
public void setAttachmentManager(AttachmentManager attachmentManager)
public void setBackupRestoreProviderManager(BackupRestoreProviderManager backupRestoreProviderManager)
Copyright © 2003–2016 Atlassian. All rights reserved.