Class SiteBackupExporter
- java.lang.Object
-
- com.atlassian.confluence.importexport.Exporter
-
- com.atlassian.confluence.impl.importexport.AbstractExporterImpl
-
- com.atlassian.confluence.impl.importexport.AbstractXmlExporter
-
- com.atlassian.confluence.impl.importexport.AbstractFileXmlExporter
-
- com.atlassian.confluence.impl.importexport.SiteBackupExporter
-
public class SiteBackupExporter extends AbstractFileXmlExporter
Converts _all_ objects in confluence to xml (used for making site-wide backups).- Since:
- 7.14
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.impl.importexport.AbstractFileXmlExporter
attachmentManager
-
Fields inherited from class com.atlassian.confluence.impl.importexport.AbstractXmlExporter
ATTACHMENTS_DIRECTORY, bootstrapManager, ENTITIES_FILE_NAME, EXPORT_DESCRIPTOR_FILE_NAME, sessionFactory5, spaceManager, TEMPLATES_DIRECTORY
-
Fields inherited from class com.atlassian.confluence.impl.importexport.AbstractExporterImpl
i18nBeanFactory
-
-
Constructor Summary
Constructors Constructor Description SiteBackupExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
doExportInternal(com.atlassian.core.util.ProgressMeter progress)
protected List<TransientHibernateHandle>
getHandlesOfObjectsForExport(HibernateObjectHandleTranslator translator, org.hibernate.Session session)
protected List<Space>
getIncludedSpaces()
In this implementation, we want to include all Spaces, so return an empty listprotected List
getSourceTemplateDirForCopying()
void
setAnyTypeDao(ExporterAnyTypeDao anyTypeDao)
-
Methods inherited from class com.atlassian.confluence.impl.importexport.AbstractFileXmlExporter
backupAttachments, backupConfigFiles, backupEverything, backupPluginData, backupResources, backupTemplates, doExport, setAttachmentManager, setBackupRestoreProviderManager, setConfluenceHome
-
Methods inherited from class com.atlassian.confluence.impl.importexport.AbstractXmlExporter
backupEntities, doExport, getDescriptorOutputStream, getExportScope, getObjectsExcludedFromExport, getSettingsManager, getXmlOutputStream, setBootstrapManager, setCustomProperties, setSessionFactory5, setSettingsManager, setSpaceManager, setUpgradeManager, writeBackupDescriptor
-
Methods inherited from class com.atlassian.confluence.impl.importexport.AbstractExporterImpl
checkHaveSomethingToExport, createAndSetExportDirectory, createExportDirectory, ensureDirectoryCreated, getSpaceKeyForExportFileName, getWorkingExportContext, prepareExportFileName, setExportFileNameGenerator, setI18NBeanFactory
-
Methods inherited from class com.atlassian.confluence.importexport.Exporter
getContext, setContext
-
-
-
-
Method Detail
-
getHandlesOfObjectsForExport
protected List<TransientHibernateHandle> getHandlesOfObjectsForExport(HibernateObjectHandleTranslator translator, org.hibernate.Session session) throws ImportExportException
- Specified by:
getHandlesOfObjectsForExport
in classAbstractXmlExporter
- Throws:
ImportExportException
-
getSourceTemplateDirForCopying
protected List getSourceTemplateDirForCopying()
- Specified by:
getSourceTemplateDirForCopying
in classAbstractXmlExporter
-
setAnyTypeDao
public void setAnyTypeDao(ExporterAnyTypeDao anyTypeDao)
-
getIncludedSpaces
protected List<Space> getIncludedSpaces()
In this implementation, we want to include all Spaces, so return an empty list- Specified by:
getIncludedSpaces
in classAbstractFileXmlExporter
- Returns:
- an empty List
- See Also:
AttachmentDao.AttachmentCopier.setSpacesToInclude(List)
-
doExportInternal
protected String doExportInternal(com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
- Overrides:
doExportInternal
in classAbstractFileXmlExporter
- Throws:
ImportExportException
-
-