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_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 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, 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 void backupEverything(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
backupEverything in class AbstractXmlExporterImportExportExceptionprotected abstract List<Space> getIncludedSpaces()
AttachmentDao.AttachmentCopier.setSpacesToInclude(java.util.List)protected void backupAttachments()
throws ImportExportException
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–2015 Atlassian. All rights reserved.