com.atlassian.confluence.importexport.impl
Class MemoryXmlExporter

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.MemoryXmlExporter

public class MemoryXmlExporter
extends AbstractXmlExporter


Field Summary
 
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
MemoryXmlExporter()
           
 
Method Summary
 java.lang.Object convertHandleToObject(java.lang.Object handle)
           
 java.lang.Object convertObjectToHandle(java.lang.Object object)
           
 java.lang.String doExport(com.atlassian.core.util.ProgressMeter progress)
           
 java.io.ByteArrayOutputStream getDescriptorByteStream()
           
protected  java.io.OutputStream getDescriptorOutputStream()
           
protected  java.io.File getExportDirectory()
          Create a temp directory to store files used to build an export zip.
protected  java.util.List getHandlesOfObjectsForExport()
           
protected  java.util.List getSourceAttachmentsDirForCopying()
           
protected  java.util.List getSourceTemplateDirForCopying()
           
 java.io.ByteArrayOutputStream getXmlByteStream()
           
protected  java.io.OutputStream getXmlOutputStream()
          output stream to write XML object information to
 
Methods inherited from class com.atlassian.confluence.importexport.impl.AbstractXmlExporter
addPropertiesForContent, backupEntities, backupEverything, doExport, expandSpaces, getContentAndContentPropertiesFromSpace, getExportType, getObjectsExcludedFromExport, setBootstrapManager, setMailContentManager, setPageManager, setPropertySetManager, setSessionFactory, setSettingsManager, setSpaceManager, writeBackupDescriptor
 
Methods inherited from class com.atlassian.confluence.importexport.impl.AbstractExporterImpl
checkHaveSomethingToExport, ensureDirectoryCreated, 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

MemoryXmlExporter

public MemoryXmlExporter()
Method Detail

getXmlOutputStream

protected java.io.OutputStream getXmlOutputStream()
                                           throws ImportExportException,
                                                  java.io.IOException
Description copied from class: AbstractXmlExporter
output stream to write XML object information to

Overrides:
getXmlOutputStream in class AbstractXmlExporter
Returns:
the XMLOutputStream
Throws:
ImportExportException
java.io.FileNotFoundException
java.io.IOException

getDescriptorOutputStream

protected java.io.OutputStream getDescriptorOutputStream()
                                                  throws ImportExportException,
                                                         java.io.FileNotFoundException
Overrides:
getDescriptorOutputStream in class AbstractXmlExporter
Throws:
ImportExportException
java.io.FileNotFoundException

getXmlByteStream

public java.io.ByteArrayOutputStream getXmlByteStream()

getDescriptorByteStream

public java.io.ByteArrayOutputStream getDescriptorByteStream()

getSourceAttachmentsDirForCopying

protected java.util.List getSourceAttachmentsDirForCopying()

getSourceTemplateDirForCopying

protected java.util.List getSourceTemplateDirForCopying()
Specified by:
getSourceTemplateDirForCopying in class AbstractXmlExporter

getHandlesOfObjectsForExport

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

convertObjectToHandle

public java.lang.Object convertObjectToHandle(java.lang.Object object)

convertHandleToObject

public java.lang.Object convertHandleToObject(java.lang.Object handle)

doExport

public java.lang.String doExport(com.atlassian.core.util.ProgressMeter progress)
                          throws ImportExportException
Specified by:
doExport in class Exporter
Throws:
ImportExportException

getExportDirectory

protected java.io.File getExportDirectory()
                                   throws ImportExportException
Description copied from class: AbstractExporterImpl
Create a temp directory to store files used to build an export zip. Throw an error if this folder cannot be created

Overrides:
getExportDirectory in class AbstractExporterImpl
Returns:
the absolute path to the export directory
Throws:
ImportExportException - if the directory can't be created


Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.