Class DefaultExportContext

    • Constructor Detail

      • DefaultExportContext

        public DefaultExportContext()
        Deprecated.
    • Method Detail

      • addWorkingEntity

        public void addWorkingEntity​(ConfluenceEntityObject entity)
        Deprecated.
        Add to the entities to be exported. This entity will be exported and its children and components may be too.
      • addExceptionEntities

        public void addExceptionEntities​(List<ConfluenceEntityObject> entities,
                                         boolean validate)
                                  throws IllegalArgumentException
        Deprecated.
        Helper method to add a collection of entities to the current exception entities
        Parameters:
        entities - a list of ConfluenceEntityObjects
        validate - - if true the contents of the list will be type-checked to ensure that they contain nothing other than ConfluenceEntityObject.
        Throws:
        IllegalArgumentException - if the list contains something ConfluenceEntityObject and validation is turned on.
      • isPageInExport

        public boolean isPageInExport​(Page page,
                                      PageManager pageManager)
        Deprecated.
        Specified by:
        isPageInExport in interface ExportContext
        Returns:
        true if the given page is part of the current export, otherwise false.
      • setUser

        public void setUser​(com.atlassian.user.User user)
        Deprecated.
      • getUser

        public com.atlassian.user.User getUser()
        Deprecated.
        Specified by:
        getUser in interface ExportContext
        Returns:
        the user this export is being generated for.
      • getSpaceKeyOfSpaceExport

        public String getSpaceKeyOfSpaceExport()
        Deprecated.
        Specified by:
        getSpaceKeyOfSpaceExport in interface ExportContext
        Returns:
        if this is a space export, the key of the space being exported, otherwise null
      • setExportComments

        public void setExportComments​(boolean exportComments)
        Deprecated.
      • setExportHierarchy

        public void setExportHierarchy​(boolean exportHierarchy)
        Deprecated.
        Specified by:
        setExportHierarchy in interface ExportContext
      • getExportDirectory

        public File getExportDirectory()
        Deprecated.
      • setExportDirectory

        public void setExportDirectory​(File exportDirectory)
        Deprecated.
      • getContentTree

        public ContentTree getContentTree()
        Deprecated.
        Returns:
        tree of ContentNodes to export (each ContentNode holds a page object), permission checking should already be applied to this tree when the context is passed to the Exporter.
        See Also:
        ContentTree
      • setContentTree

        public void setContentTree​(ContentTree contentTree)
        Deprecated.
      • getType

        public String getType()
        Deprecated.
        Specified by:
        getType in interface ExportContext
        Returns:
        the type of the export: HTML, PDF or XML. These constants are defined above.
      • setType

        public void setType​(String type)
        Deprecated.
      • setExportScope

        public void setExportScope​(ExportScope scope)
        Deprecated.
      • isExportAll

        public boolean isExportAll()
        Deprecated.
      • setExportAll

        public void setExportAll​(boolean exportAll)
        Deprecated.
      • getSpaceKey

        public String getSpaceKey()
        Deprecated.
      • setSpaceKey

        public void setSpaceKey​(String spaceKey)
        Deprecated.