public abstract class FileXmlExporter extends AbstractXmlExporter
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
When all Spaces are included, an empty List should be returned
|
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()
AttachmentDao.AttachmentCopier.setSpacesToInclude(java.util.List)
protected void backupAttachments() throws ImportExportException
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–2015 Atlassian. All rights reserved.