Class DefaultExportContext
java.lang.Object
com.atlassian.confluence.importexport.DefaultExportContext
- All Implemented Interfaces:
ExportContext
Deprecated.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExceptionEntities
(List<ConfluenceEntityObject> entities, boolean validate) Deprecated.Helper method to add a collection of entities to the current exception entitiesvoid
Deprecated.void
Deprecated.Add to the entities to be exported.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getType()
Deprecated.com.atlassian.user.User
getUser()
Deprecated.Deprecated.The top level entities to be exported.static DefaultExportContext
Deprecated.boolean
Deprecated.Entities to be excluded from the export.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
isPageInExport
(Page page, PageManager pageManager) Deprecated.void
setContentTree
(ContentTree contentTree) Deprecated.void
setExportAll
(boolean exportAll) Deprecated.void
setExportAttachments
(boolean exportAttachments) Deprecated.void
setExportComments
(boolean exportComments) Deprecated.void
setExportDirectory
(File exportDirectory) Deprecated.void
setExportHierarchy
(boolean exportHierarchy) Deprecated.void
setExportScope
(ExportScope scope) Deprecated.void
setSpaceKey
(String spaceKey) Deprecated.void
Deprecated.void
setUser
(com.atlassian.user.User user) Deprecated.
-
Constructor Details
-
DefaultExportContext
public DefaultExportContext()Deprecated.
-
-
Method Details
-
getXmlBackupInstance
Deprecated. -
addWorkingEntity
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 ConfluenceEntityObjectsvalidate
- - if true the contents of the list will be type-checked to ensure that they contain nothing other thanConfluenceEntityObject
.- Throws:
IllegalArgumentException
- if the list contains somethingConfluenceEntityObject
and validation is turned on.
-
addExceptionEntity
Deprecated. -
isPageInExport
Deprecated.- Specified by:
isPageInExport
in interfaceExportContext
- Returns:
- true if the given page is part of the current export, otherwise false.
-
getExceptionEntities
Deprecated. -
getWorkingEntities
Deprecated.Description copied from interface:ExportContext
The top level entities to be exported. Their children and components will usually be exported too.- Specified by:
getWorkingEntities
in interfaceExportContext
-
getProcessedIds
Deprecated.- Specified by:
getProcessedIds
in interfaceExportContext
-
setUser
public void setUser(com.atlassian.user.User user) Deprecated. -
getUser
public com.atlassian.user.User getUser()Deprecated.- Specified by:
getUser
in interfaceExportContext
- Returns:
- the user this export is being generated for.
-
getSpaceKeyOfSpaceExport
Deprecated.- Specified by:
getSpaceKeyOfSpaceExport
in interfaceExportContext
- Returns:
- if this is a space export, the key of the space being exported, otherwise null
-
isExceptionEntity
Deprecated.Description copied from interface:ExportContext
Entities to be excluded from the export.- Specified by:
isExceptionEntity
in interfaceExportContext
-
isExportComments
public boolean isExportComments()Deprecated.- Specified by:
isExportComments
in interfaceExportContext
-
setExportComments
public void setExportComments(boolean exportComments) Deprecated. -
isExportAttachments
public boolean isExportAttachments()Deprecated.- Specified by:
isExportAttachments
in interfaceExportContext
-
setExportAttachments
public void setExportAttachments(boolean exportAttachments) Deprecated.- Specified by:
setExportAttachments
in interfaceExportContext
-
isExportHierarchy
public boolean isExportHierarchy()Deprecated.- Specified by:
isExportHierarchy
in interfaceExportContext
-
setExportHierarchy
public void setExportHierarchy(boolean exportHierarchy) Deprecated.- Specified by:
setExportHierarchy
in interfaceExportContext
-
getExportDirectory
Deprecated. -
setExportDirectory
Deprecated. -
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:
-
setContentTree
Deprecated. -
getType
Deprecated.- Specified by:
getType
in interfaceExportContext
- Returns:
- the type of the export: HTML, PDF or XML. These constants are defined above.
-
setType
Deprecated. -
getExportScope
Deprecated.- Specified by:
getExportScope
in interfaceExportContext
- Returns:
- the scope of an XML export: global, space or page.
-
setExportScope
Deprecated. -
isExportAll
public boolean isExportAll()Deprecated. -
setExportAll
public void setExportAll(boolean exportAll) Deprecated. -
getSpaceKey
Deprecated. -
setSpaceKey
Deprecated.
-
BackupRestoreManager
instead.