com.atlassian.confluence.importexport.impl
Class XmlExporter

java.lang.Object
  extended by com.atlassian.confluence.importexport.Exporter
      extended by com.atlassian.confluence.importexport.impl.AbstractExporterImpl
          extended by com.atlassian.confluence.importexport.impl.AbstractXmlExporter
              extended by com.atlassian.confluence.importexport.impl.FileXmlExporter
                  extended by com.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
 java.lang.String doExport(com.atlassian.core.util.ProgressMeter progress)
           
protected  java.util.List getHandlesOfObjectsForExport()
           
protected  java.util.List getIncludedSpaces()
          In this implementation, we want to find out the root entity and include the Space from that.
protected  java.util.List getObjectsExcludedFromExport()
           
protected  java.util.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, getContentAndContentPropertiesFromSpace, getDescriptorOutputStream, getExportType, getSettingsManager, getXmlOutputStream, setBootstrapManager, setMailContentManager, setPageManager, setPropertySetManager, setSessionFactory, setSettingsManager, setSpaceManager, writeBackupDescriptor
 
Methods inherited from class com.atlassian.confluence.importexport.impl.AbstractExporterImpl
checkHaveSomethingToExport, ensureDirectoryCreated, getExportDirectory, getSpaceKeyForExportFileName, getWorkingExportContext, prepareExportFileName, setExportFileNameGenerator
 
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 java.lang.String doExport(com.atlassian.core.util.ProgressMeter progress)
                          throws ImportExportException
Overrides:
doExport in class FileXmlExporter
Throws:
ImportExportException

getIncludedSpaces

protected java.util.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 java.util.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 java.util.List getHandlesOfObjectsForExport()
                                               throws ImportExportException
Specified by:
getHandlesOfObjectsForExport in class AbstractXmlExporter
Throws:
ImportExportException

getObjectsExcludedFromExport

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

setConfluenceBandanaRecordDao

public void setConfluenceBandanaRecordDao(ConfluenceBandanaRecordDao dao)


Copyright © 2003-2011 Atlassian. All Rights Reserved.