Class AbstractXmlExporter
- java.lang.Object
-
- com.atlassian.confluence.importexport.Exporter
-
- com.atlassian.confluence.importexport.impl.AbstractExporterImpl
-
- com.atlassian.confluence.importexport.impl.AbstractXmlExporter
-
- Direct Known Subclasses:
FileXmlExporter
@Deprecated public abstract class AbstractXmlExporter extends AbstractExporterImpl
Deprecated.since 7.14abstract class that deals strictly with the conversion of a objects to an xml stream
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTACHMENTS_DIRECTORYDeprecated.Directory into which attachments will be placed in the exported ZIP fileprotected BootstrapManagerbootstrapManagerDeprecated.static StringENTITIES_FILE_NAMEDeprecated.static StringEXPORT_DESCRIPTOR_FILE_NAMEDeprecated.protected net.sf.hibernate.SessionFactorysessionFactoryDeprecated.protected SpaceManagerspaceManagerDeprecated.static StringTEMPLATES_DIRECTORYDeprecated.Directory into which template overrides will be placed in the exported ZIP file-
Fields inherited from class com.atlassian.confluence.importexport.impl.AbstractExporterImpl
i18nBeanFactory
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlExporter()Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidbackupEntities(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress)Deprecated.protected voidbackupEverything(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress)Deprecated.StringdoExport(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress)Deprecated.protected OutputStreamgetDescriptorOutputStream()Deprecated.protected ExportScopegetExportScope()Deprecated.protected abstract List<TransientHibernateHandle>getHandlesOfObjectsForExport(HibernateObjectHandleTranslator translator, net.sf.hibernate.Session session)Deprecated.protected List<ConfluenceEntityObject>getObjectsExcludedFromExport()Deprecated.Gets a list of actual objects (not handles) to exclude from export.protected SettingsManagergetSettingsManager()Deprecated.protected abstract ListgetSourceTemplateDirForCopying()Deprecated.protected OutputStreamgetXmlOutputStream()Deprecated.output stream to write XML object information tovoidsetBootstrapManager(BootstrapManager bootstrapManager)Deprecated.protected voidsetCustomProperties(ExportDescriptor exportDescriptor)Deprecated.Override this in subclasses to add extra properties to the export descriptor.voidsetSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)Deprecated.voidsetSettingsManager(SettingsManager settingsManager)Deprecated.voidsetSpaceManager(SpaceManager spaceManager)Deprecated.voidsetUpgradeManager(UpgradeManager upgradeManager)Deprecated.protected voidwriteBackupDescriptor()Deprecated.-
Methods inherited from class com.atlassian.confluence.importexport.impl.AbstractExporterImpl
checkHaveSomethingToExport, createAndSetExportDirectory, createExportDirectory, ensureDirectoryCreated, getSpaceKeyForExportFileName, getWorkingExportContext, prepareExportFileName, setExportFileNameGenerator, setI18NBeanFactory
-
Methods inherited from class com.atlassian.confluence.importexport.Exporter
doExport, getContext, setContext
-
-
-
-
Field Detail
-
EXPORT_DESCRIPTOR_FILE_NAME
public static final String EXPORT_DESCRIPTOR_FILE_NAME
Deprecated.- See Also:
- Constant Field Values
-
ENTITIES_FILE_NAME
public static final String ENTITIES_FILE_NAME
Deprecated.- See Also:
- Constant Field Values
-
ATTACHMENTS_DIRECTORY
public static final String ATTACHMENTS_DIRECTORY
Deprecated.Directory into which attachments will be placed in the exported ZIP file- See Also:
- Constant Field Values
-
TEMPLATES_DIRECTORY
public static final String TEMPLATES_DIRECTORY
Deprecated.Directory into which template overrides will be placed in the exported ZIP file- See Also:
- Constant Field Values
-
sessionFactory
protected net.sf.hibernate.SessionFactory sessionFactory
Deprecated.
-
bootstrapManager
protected BootstrapManager bootstrapManager
Deprecated.
-
spaceManager
protected SpaceManager spaceManager
Deprecated.
-
-
Method Detail
-
getHandlesOfObjectsForExport
protected abstract List<TransientHibernateHandle> getHandlesOfObjectsForExport(HibernateObjectHandleTranslator translator, net.sf.hibernate.Session session) throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
setSessionFactory
public void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
Deprecated.
-
setBootstrapManager
public void setBootstrapManager(BootstrapManager bootstrapManager)
Deprecated.
-
getObjectsExcludedFromExport
protected List<ConfluenceEntityObject> getObjectsExcludedFromExport() throws ImportExportException
Deprecated.Gets a list of actual objects (not handles) to exclude from export.- Throws:
ImportExportException
-
doExport
public String doExport(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
backupEverything
protected void backupEverything(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
writeBackupDescriptor
protected void writeBackupDescriptor() throws ImportExportExceptionDeprecated.- Throws:
ImportExportException
-
setCustomProperties
protected void setCustomProperties(ExportDescriptor exportDescriptor)
Deprecated.Override this in subclasses to add extra properties to the export descriptor.
-
getDescriptorOutputStream
protected OutputStream getDescriptorOutputStream() throws FileNotFoundException
Deprecated.- Throws:
FileNotFoundException
-
getXmlOutputStream
protected OutputStream getXmlOutputStream() throws IOException
Deprecated.output stream to write XML object information to- Returns:
- the XMLOutputStream
- Throws:
FileNotFoundExceptionIOException
-
getExportScope
protected ExportScope getExportScope()
Deprecated.
-
getSourceTemplateDirForCopying
protected abstract List getSourceTemplateDirForCopying()
Deprecated.
-
backupEntities
protected void backupEntities(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
Deprecated.- Throws:
ImportExportException
-
setSettingsManager
public void setSettingsManager(SettingsManager settingsManager)
Deprecated.
-
setSpaceManager
public void setSpaceManager(SpaceManager spaceManager)
Deprecated.
-
setUpgradeManager
public void setUpgradeManager(UpgradeManager upgradeManager)
Deprecated.
-
getSettingsManager
protected SettingsManager getSettingsManager()
Deprecated.
-
-