Class AbstractXmlExporter

Direct Known Subclasses:
AbstractFileXmlExporter, FileXmlExporter

public abstract class AbstractXmlExporter extends AbstractExporterImpl
abstract class that deals strictly with the conversion of a objects to an xml stream
Since:
7.14
  • Field Details

    • EXPORT_DESCRIPTOR_FILE_NAME

      public static final String EXPORT_DESCRIPTOR_FILE_NAME
      See Also:
    • ENTITIES_FILE_NAME

      public static final String ENTITIES_FILE_NAME
      See Also:
    • ATTACHMENTS_DIRECTORY

      public static final String ATTACHMENTS_DIRECTORY
      Directory into which attachments will be placed in the exported ZIP file
      See Also:
    • TEMPLATES_DIRECTORY

      public static final String TEMPLATES_DIRECTORY
      Directory into which template overrides will be placed in the exported ZIP file
      See Also:
    • sessionFactory5

      protected org.hibernate.SessionFactory sessionFactory5
    • bootstrapManager

      protected BootstrapManager bootstrapManager
    • spaceManager

      protected SpaceManager spaceManager
  • Constructor Details

    • AbstractXmlExporter

      public AbstractXmlExporter()
  • Method Details

    • setSessionFactory5

      public void setSessionFactory5(org.hibernate.SessionFactory sessionFactory)
    • setBootstrapManager

      public void setBootstrapManager(BootstrapManager bootstrapManager)
    • getObjectsExcludedFromExport

      protected List<ConfluenceEntityObject> getObjectsExcludedFromExport() throws ImportExportException
      Gets a list of actual objects (not handles) to exclude from export.
      Throws:
      ImportExportException
    • getXmlOutputStream

      protected OutputStream getXmlOutputStream() throws IOException
      output stream to write XML object information to
      Returns:
      the XMLOutputStream
      Throws:
      FileNotFoundException
      IOException
    • getExportScope

      protected ExportScope getExportScope()
    • getSourceTemplateDirForCopying

      protected abstract List getSourceTemplateDirForCopying()
    • setSettingsManager

      public void setSettingsManager(SettingsManager settingsManager)
    • setSpaceManager

      public void setSpaceManager(SpaceManager spaceManager)
    • setUpgradeManager

      public void setUpgradeManager(UpgradeManager upgradeManager)
    • getSettingsManager

      protected SettingsManager getSettingsManager()