|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.importexport.Exporter com.atlassian.confluence.importexport.impl.AbstractExporterImpl com.atlassian.confluence.importexport.impl.AbstractXmlExporter
public abstract class AbstractXmlExporter
abstract class that deals strictly with the conversion of a objects to an xml stream
Field Summary | |
---|---|
static java.lang.String |
ATTACHMENTS_DIRECTORY
Directory into which attachments will be placed in the exported ZIP file |
protected BootstrapManager |
bootstrapManager
|
static java.lang.String |
ENTITIES_FILE_NAME
|
static java.lang.String |
EXPORT_DESCRIPTOR_FILE_NAME
|
protected net.sf.hibernate.SessionFactory |
sessionFactory
|
protected SpaceManager |
spaceManager
|
static java.lang.String |
TEMPLATES_DIRECTORY
Directory into which template overrides will be placed in the exported ZIP file |
Fields inherited from class com.atlassian.confluence.importexport.impl.AbstractExporterImpl |
---|
i18nBeanFactory |
Fields inherited from class com.atlassian.confluence.importexport.Exporter |
---|
context |
Constructor Summary | |
---|---|
AbstractXmlExporter()
|
Method Summary | |
---|---|
protected void |
backupEntities(HibernateObjectHandleTranslator translator,
com.atlassian.core.util.ProgressMeter progress)
|
protected void |
backupEverything(HibernateObjectHandleTranslator translator,
com.atlassian.core.util.ProgressMeter progress)
|
java.lang.String |
doExport(HibernateObjectHandleTranslator translator,
com.atlassian.core.util.ProgressMeter progress)
|
protected java.io.OutputStream |
getDescriptorOutputStream()
|
protected ExportScope |
getExportScope()
|
protected java.lang.String |
getExportType()
Deprecated. since 4.2 use getExportScope() instead. |
protected abstract java.util.List<TransientHibernateHandle> |
getHandlesOfObjectsForExport(HibernateObjectHandleTranslator translator,
net.sf.hibernate.Session session)
|
protected java.util.List<ConfluenceEntityObject> |
getObjectsExcludedFromExport()
Gets a list of actual objects (not handles) to exclude from export. |
protected SettingsManager |
getSettingsManager()
|
protected abstract java.util.List |
getSourceTemplateDirForCopying()
|
protected java.io.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(java.lang.String baseExportPath)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EXPORT_DESCRIPTOR_FILE_NAME
public static final java.lang.String ENTITIES_FILE_NAME
public static final java.lang.String ATTACHMENTS_DIRECTORY
public static final java.lang.String TEMPLATES_DIRECTORY
protected net.sf.hibernate.SessionFactory sessionFactory
protected BootstrapManager bootstrapManager
protected SpaceManager spaceManager
Constructor Detail |
---|
public AbstractXmlExporter()
Method Detail |
---|
protected abstract java.util.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 java.util.List<ConfluenceEntityObject> getObjectsExcludedFromExport() throws ImportExportException
ImportExportException
public java.lang.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(java.lang.String baseExportPath) throws ImportExportException
ImportExportException
protected void setCustomProperties(ExportDescriptor exportDescriptor)
protected java.io.OutputStream getDescriptorOutputStream() throws ImportExportException, java.io.FileNotFoundException
ImportExportException
java.io.FileNotFoundException
protected java.io.OutputStream getXmlOutputStream() throws ImportExportException, java.io.IOException
ImportExportException
java.io.FileNotFoundException
java.io.IOException
@Deprecated protected java.lang.String getExportType() throws ImportExportException
getExportScope()
instead.
getExportScope()
as a string instead of an enum.
ImportExportException
protected ExportScope getExportScope() throws ImportExportException
ImportExportException
protected abstract java.util.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |