public class XmlExporter extends FileXmlExporter
attachmentManager
ATTACHMENTS_DIRECTORY, bootstrapManager, ENTITIES_FILE_NAME, EXPORT_DESCRIPTOR_FILE_NAME, sessionFactory, spaceManager, TEMPLATES_DIRECTORY
i18nBeanFactory
Constructor and Description |
---|
XmlExporter() |
Modifier and Type | Method and Description |
---|---|
String |
doExport(com.atlassian.core.util.ProgressMeter progress)
Exports the content specified by the configured
ExportContext . |
protected List<TransientHibernateHandle> |
getHandlesOfObjectsForExport(HibernateObjectHandleTranslator translator,
net.sf.hibernate.Session session) |
protected List<Space> |
getIncludedSpaces()
In this implementation, we want to find out the root entity and include the Space
from that.
|
protected List<ConfluenceEntityObject> |
getObjectsExcludedFromExport()
Gets a list of actual objects (not handles) to exclude from export.
|
protected List |
getSourceTemplateDirForCopying()
If we're doing an export rather than a full backup, we don't export any templates
|
void |
setConfluenceBandanaRecordDao(ConfluenceBandanaRecordDao dao) |
void |
setContent2ContentHibernateRelationDao(Content2ContentHibernateRelationDao content2ContentHibernateRelationDao) |
void |
setContext(ExportContext context) |
void |
setCustomContentManager(CustomContentManager customContentManager) |
protected void |
setCustomProperties(ExportDescriptor exportDescriptor)
Adds the space key to the customer descriptor properties.
|
void |
setLikeEntityDao(LikeEntityDao likeEntityDao) |
void |
setNotificationManager(NotificationManager notificationManager) |
void |
setPageManager(PageManager pageManager) |
void |
setPropertySetManager(ConfluencePropertySetManager propertySetManager) |
void |
setStorageFormatUserRewriter(StorageFormatUserRewriter storageFormatUserRewriter) |
void |
setUser2ContentHibernateRelationDao(User2ContentHibernateRelationDao user2ContentHibernateRelationDao) |
backupAttachments, backupConfigFiles, backupEverything, backupPluginData, backupResources, backupTemplates, doExportInternal, setAttachmentManager, setBackupRestoreProviderManager
backupEntities, doExport, getDescriptorOutputStream, getExportScope, getExportType, getSettingsManager, getXmlOutputStream, setBootstrapManager, setSessionFactory, setSettingsManager, setSpaceManager, setUpgradeManager, writeBackupDescriptor
checkHaveSomethingToExport, createAndSetExportDirectory, createExportDirectory, ensureDirectoryCreated, getSpaceKeyForExportFileName, getWorkingExportContext, prepareExportFileName, setExportFileNameGenerator, setI18NBeanFactory
getContext
public void setContext(ExportContext context)
setContext
in class Exporter
public String doExport(com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
Exporter
ExportContext
.doExport
in class FileXmlExporter
progress
- the meter to update with progress during the export.ImportExportException
- if it fails for any reason.protected final List<Space> getIncludedSpaces()
getIncludedSpaces
in class FileXmlExporter
AttachmentDao.AttachmentCopier.setSpacesToInclude(java.util.List)
protected final void setCustomProperties(ExportDescriptor exportDescriptor)
setCustomProperties
in class AbstractXmlExporter
protected List getSourceTemplateDirForCopying()
getSourceTemplateDirForCopying
in class AbstractXmlExporter
protected List<TransientHibernateHandle> getHandlesOfObjectsForExport(HibernateObjectHandleTranslator translator, net.sf.hibernate.Session session) throws ImportExportException
getHandlesOfObjectsForExport
in class AbstractXmlExporter
TransientHibernateHandle
s to be exported based on the AbstractExporterImpl.getWorkingExportContext()
.ImportExportException
protected List<ConfluenceEntityObject> getObjectsExcludedFromExport() throws ImportExportException
AbstractXmlExporter
getObjectsExcludedFromExport
in class AbstractXmlExporter
ImportExportException
public void setConfluenceBandanaRecordDao(ConfluenceBandanaRecordDao dao)
public void setNotificationManager(NotificationManager notificationManager)
public void setCustomContentManager(CustomContentManager customContentManager)
public void setPropertySetManager(ConfluencePropertySetManager propertySetManager)
public void setPageManager(PageManager pageManager)
public void setLikeEntityDao(LikeEntityDao likeEntityDao)
public void setStorageFormatUserRewriter(StorageFormatUserRewriter storageFormatUserRewriter)
public void setUser2ContentHibernateRelationDao(User2ContentHibernateRelationDao user2ContentHibernateRelationDao)
public void setContent2ContentHibernateRelationDao(Content2ContentHibernateRelationDao content2ContentHibernateRelationDao)
Copyright © 2003–2017 Atlassian. All rights reserved.