Class XmlExporter
- java.lang.Object
-
- com.atlassian.confluence.importexport.Exporter
-
- com.atlassian.confluence.impl.importexport.AbstractExporterImpl
-
- com.atlassian.confluence.impl.importexport.AbstractXmlExporter
-
- com.atlassian.confluence.importexport.impl.FileXmlExporter
-
- com.atlassian.confluence.importexport.impl.XmlExporter
-
@Deprecated public class XmlExporter extends FileXmlExporter
Deprecated.since 7.14 Replaced bySpaceBackupExporter
Exports the entities added to the workingEntities collection in the context to xml. Used for making page and space xml exports.
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.importexport.impl.FileXmlExporter
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 XmlExporter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
doExport(com.atlassian.core.util.ProgressMeter progress)
Deprecated.Exports the content specified by the configuredExportContext
.protected List<TransientHibernateHandle>
getHandlesOfObjectsForExport(HibernateObjectHandleTranslator translator, org.hibernate.Session session)
Deprecated.protected List<Space>
getIncludedSpaces()
Deprecated.In this implementation, we want to find out the root entity and include the Space from that.protected List<ConfluenceEntityObject>
getObjectsExcludedFromExport()
Deprecated.Gets a list of actual objects (not handles) to exclude from export.protected List
getSourceTemplateDirForCopying()
Deprecated.If we're doing an export rather than a full backup, we don't export any templatesvoid
setConfluenceBandanaRecordDao(ConfluenceBandanaRecordDao dao)
Deprecated.void
setContent2ContentHibernateRelationDao(Content2ContentHibernateRelationDao content2ContentHibernateRelationDao)
Deprecated.void
setContext(ExportContext context)
Deprecated.void
setCustomContentManager(CustomContentManager customContentManager)
Deprecated.protected void
setCustomProperties(ExportDescriptor exportDescriptor)
Deprecated.Adds the space key to the customer descriptor properties.void
setLikeEntityDao(LikeEntityDao likeEntityDao)
Deprecated.void
setNotificationManager(NotificationManager notificationManager)
Deprecated.void
setPageManager(PageManager pageManager)
Deprecated.void
setPropertySetManager(ConfluencePropertySetManager propertySetManager)
Deprecated.void
setStorageFormatUserRewriter(StorageFormatUserRewriter storageFormatUserRewriter)
Deprecated.void
setUser2ContentHibernateRelationDao(User2ContentHibernateRelationDao user2ContentHibernateRelationDao)
Deprecated.-
Methods inherited from class com.atlassian.confluence.importexport.impl.FileXmlExporter
backupAttachments, backupConfigFiles, backupEverything, backupPluginData, backupResources, backupTemplates, doExportInternal, setAttachmentManager, setBackupRestoreProviderManager, setConfluenceHome
-
Methods inherited from class com.atlassian.confluence.impl.importexport.AbstractXmlExporter
backupEntities, doExport, getDescriptorOutputStream, getExportScope, getSettingsManager, getXmlOutputStream, setBootstrapManager, 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
-
-
-
-
Method Detail
-
setContext
public void setContext(ExportContext context)
Deprecated.- Overrides:
setContext
in classExporter
-
doExport
public String doExport(com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
Deprecated.Description copied from class:Exporter
Exports the content specified by the configuredExportContext
.- Overrides:
doExport
in classFileXmlExporter
- Parameters:
progress
- the meter to update with progress during the export.- Returns:
- the path to the exported content.
- Throws:
ImportExportException
- if it fails for any reason.
-
getIncludedSpaces
protected final List<Space> getIncludedSpaces()
Deprecated.In this implementation, we want to find out the root entity and include the Space from that.- Specified by:
getIncludedSpaces
in classFileXmlExporter
- Returns:
- an ArrayList containing the relevant Space
- See Also:
AttachmentDao.AttachmentCopier.setSpacesToInclude(java.util.List)
-
setCustomProperties
protected final void setCustomProperties(ExportDescriptor exportDescriptor)
Deprecated.Adds the space key to the customer descriptor properties.- Overrides:
setCustomProperties
in classAbstractXmlExporter
-
getSourceTemplateDirForCopying
protected List getSourceTemplateDirForCopying()
Deprecated.If we're doing an export rather than a full backup, we don't export any templates- Specified by:
getSourceTemplateDirForCopying
in classAbstractXmlExporter
-
getHandlesOfObjectsForExport
protected List<TransientHibernateHandle> getHandlesOfObjectsForExport(HibernateObjectHandleTranslator translator, org.hibernate.Session session) throws ImportExportException
Deprecated.- Specified by:
getHandlesOfObjectsForExport
in classAbstractXmlExporter
- Returns:
- A list of
TransientHibernateHandle
s to be exported based on theAbstractExporterImpl.getWorkingExportContext()
. - Throws:
ImportExportException
-
getObjectsExcludedFromExport
protected List<ConfluenceEntityObject> getObjectsExcludedFromExport() throws ImportExportException
Deprecated.Description copied from class:AbstractXmlExporter
Gets a list of actual objects (not handles) to exclude from export.- Overrides:
getObjectsExcludedFromExport
in classAbstractXmlExporter
- Throws:
ImportExportException
-
setConfluenceBandanaRecordDao
public void setConfluenceBandanaRecordDao(ConfluenceBandanaRecordDao dao)
Deprecated.
-
setNotificationManager
public void setNotificationManager(NotificationManager notificationManager)
Deprecated.
-
setCustomContentManager
public void setCustomContentManager(CustomContentManager customContentManager)
Deprecated.
-
setPropertySetManager
public void setPropertySetManager(ConfluencePropertySetManager propertySetManager)
Deprecated.
-
setPageManager
public void setPageManager(PageManager pageManager)
Deprecated.
-
setLikeEntityDao
public void setLikeEntityDao(LikeEntityDao likeEntityDao)
Deprecated.
-
setStorageFormatUserRewriter
public void setStorageFormatUserRewriter(StorageFormatUserRewriter storageFormatUserRewriter)
Deprecated.
-
setUser2ContentHibernateRelationDao
public void setUser2ContentHibernateRelationDao(User2ContentHibernateRelationDao user2ContentHibernateRelationDao)
Deprecated.
-
setContent2ContentHibernateRelationDao
public void setContent2ContentHibernateRelationDao(Content2ContentHibernateRelationDao content2ContentHibernateRelationDao)
Deprecated.
-
-