public abstract class AbstractXmlExporter extends AbstractExporterImpl
Modifier and Type | Field and Description |
---|---|
static String |
ATTACHMENTS_DIRECTORY
Directory into which attachments will be placed in the exported ZIP file
|
protected BootstrapManager |
bootstrapManager |
static String |
ENTITIES_FILE_NAME |
static String |
EXPORT_DESCRIPTOR_FILE_NAME |
protected net.sf.hibernate.SessionFactory |
sessionFactory |
protected SpaceManager |
spaceManager |
static String |
TEMPLATES_DIRECTORY
Directory into which template overrides will be placed in the exported ZIP file
|
i18nBeanFactory
Constructor and Description |
---|
AbstractXmlExporter() |
Modifier and Type | Method and Description |
---|---|
protected void |
backupEntities(HibernateObjectHandleTranslator translator,
com.atlassian.core.util.ProgressMeter progress) |
protected void |
backupEverything(HibernateObjectHandleTranslator translator,
com.atlassian.core.util.ProgressMeter progress) |
String |
doExport(HibernateObjectHandleTranslator translator,
com.atlassian.core.util.ProgressMeter progress) |
protected OutputStream |
getDescriptorOutputStream() |
protected ExportScope |
getExportScope() |
protected String |
getExportType()
Deprecated.
since 4.2 use
getExportScope() instead. |
protected abstract List<TransientHibernateHandle> |
getHandlesOfObjectsForExport(HibernateObjectHandleTranslator translator,
net.sf.hibernate.Session session) |
protected List<ConfluenceEntityObject> |
getObjectsExcludedFromExport()
Gets a list of actual objects (not handles) to exclude from export.
|
protected SettingsManager |
getSettingsManager() |
protected abstract List |
getSourceTemplateDirForCopying() |
protected OutputStream |
getXmlOutputStream()
output stream to write XML object information to
|
void |
setBootstrapManager(BootstrapManager bootstrapManager) |
protected void |
setCustomProperties(ExportDescriptor exportDescriptor)
Override this in subclasses to add extra properties to the export descriptor.
|
void |
setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory) |
void |
setSettingsManager(SettingsManager settingsManager) |
void |
setSpaceManager(SpaceManager spaceManager) |
void |
setUpgradeManager(UpgradeManager upgradeManager) |
protected void |
writeBackupDescriptor(String baseExportPath) |
checkHaveSomethingToExport, createAndSetExportDirectory, createExportDirectory, ensureDirectoryCreated, getSpaceKeyForExportFileName, getWorkingExportContext, prepareExportFileName, setExportFileNameGenerator, setI18NBeanFactory
doExport, getContext, setContext
public static final String EXPORT_DESCRIPTOR_FILE_NAME
public static final String ENTITIES_FILE_NAME
public static final String ATTACHMENTS_DIRECTORY
public static final String TEMPLATES_DIRECTORY
protected net.sf.hibernate.SessionFactory sessionFactory
protected BootstrapManager bootstrapManager
protected SpaceManager spaceManager
protected abstract List<TransientHibernateHandle> getHandlesOfObjectsForExport(HibernateObjectHandleTranslator translator, net.sf.hibernate.Session session) throws ImportExportException
ImportExportException
public void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
public void setBootstrapManager(BootstrapManager bootstrapManager)
protected List<ConfluenceEntityObject> getObjectsExcludedFromExport() throws ImportExportException
ImportExportException
public String doExport(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
ImportExportException
protected void backupEverything(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
ImportExportException
protected void writeBackupDescriptor(String baseExportPath) throws ImportExportException
ImportExportException
protected void setCustomProperties(ExportDescriptor exportDescriptor)
protected OutputStream getDescriptorOutputStream() throws ImportExportException, FileNotFoundException
protected OutputStream getXmlOutputStream() throws ImportExportException, IOException
ImportExportException
FileNotFoundException
IOException
@Deprecated protected String getExportType() throws ImportExportException
getExportScope()
instead.getExportScope()
as a string instead of an enum.ImportExportException
protected ExportScope getExportScope() throws ImportExportException
ImportExportException
protected abstract List getSourceTemplateDirForCopying()
protected void backupEntities(HibernateObjectHandleTranslator translator, com.atlassian.core.util.ProgressMeter progress) throws ImportExportException
ImportExportException
public void setSettingsManager(SettingsManager settingsManager)
public void setSpaceManager(SpaceManager spaceManager)
public void setUpgradeManager(UpgradeManager upgradeManager)
protected SettingsManager getSettingsManager()
Copyright © 2003–2016 Atlassian. All rights reserved.