com.atlassian.confluence.importexport.impl
Class XmlExporter

java.lang.Object
  extended bycom.atlassian.confluence.importexport.Exporter
      extended bycom.atlassian.confluence.importexport.impl.AbstractExporterImpl
          extended bycom.atlassian.confluence.importexport.impl.AbstractXmlExporter
              extended bycom.atlassian.confluence.importexport.impl.FileXmlExporter
                  extended bycom.atlassian.confluence.importexport.impl.XmlExporter

public class XmlExporter
extends FileXmlExporter

exports all entities added to the "working entities" 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.importexport.impl.AbstractXmlExporter
ATTACHMENTS_DIRECTORY, bootstrapManager, ENTITIES_FILE_NAME, EXPORT_DESCRIPTOR_FILE_NAME, sessionFactory, spaceManager, TEMPLATES_DIRECTORY
 
Fields inherited from class com.atlassian.confluence.importexport.Exporter
context, log
 
Constructor Summary
XmlExporter()
           
 
Method Summary
 String doExport()
           
protected  List getHandlesOfObjectsForExport()
           
protected  List getIncludedSpaces()
          In this implementation, we want to find out the root entity and include the Space from that.
protected  List getObjectsExcludedFromExport()
           
protected  List getSourceTemplateDirForCopying()
          If we're doing an export rather than a full backup, we don't export any templates
 void setConfluenceBandanaRecordDao(ConfluenceBandanaRecordDao dao)
           
 
Methods inherited from class com.atlassian.confluence.importexport.impl.FileXmlExporter
backupAttachments, backupConfigFiles, backupEverything, backupResources, backupTemplates, setAttachmentManager
 
Methods inherited from class com.atlassian.confluence.importexport.impl.AbstractXmlExporter
addPropertiesForContent, backupEntities, doExport, expandSpaces, getContentAndContentPropertiesFromSpace, getDescriptorOutputStream, getExportType, getXmlOutputStream, setBootstrapManager, setPropertySetManager, setSessionFactory, setSettingsManager, setSpaceManager, writeBackupDescriptor
 
Methods inherited from class com.atlassian.confluence.importexport.impl.AbstractExporterImpl
checkHaveSomethingToExport, ensureDirectoryCreated, ensurePathExists, getSpaceKeyForExportFileName, getWorkingExportContext, prepareExportFileName
 
Methods inherited from class com.atlassian.confluence.importexport.Exporter
getContext, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlExporter

public XmlExporter()
Method Detail

doExport

public String doExport()
                throws ImportExportException
Overrides:
doExport in class FileXmlExporter
Throws:
ImportExportException

getIncludedSpaces

protected List getIncludedSpaces()
In this implementation, we want to find out the root entity and include the Space from that.

Specified by:
getIncludedSpaces in class FileXmlExporter
Returns:
an ArrayList containing the relevant Space
See Also:
AttachmentDao.AttachmentCopier.setSpacesToInclude(java.util.List)

getSourceTemplateDirForCopying

protected List getSourceTemplateDirForCopying()
If we're doing an export rather than a full backup, we don't export any templates

Specified by:
getSourceTemplateDirForCopying in class AbstractXmlExporter

getHandlesOfObjectsForExport

protected List getHandlesOfObjectsForExport()
                                     throws ImportExportException
Specified by:
getHandlesOfObjectsForExport in class AbstractXmlExporter
Throws:
ImportExportException

getObjectsExcludedFromExport

protected List getObjectsExcludedFromExport()
                                     throws ImportExportException
Overrides:
getObjectsExcludedFromExport in class AbstractXmlExporter
Throws:
ImportExportException

setConfluenceBandanaRecordDao

public void setConfluenceBandanaRecordDao(ConfluenceBandanaRecordDao dao)


Confluence is developed by Atlassian.