Class DefaultExportContext
- java.lang.Object
-
- com.atlassian.confluence.importexport.DefaultExportContext
-
- All Implemented Interfaces:
ExportContext
@Deprecated public class DefaultExportContext extends Object implements ExportContext
Deprecated.since 7.17.0. UserBackupRestoreManagerinstead.
-
-
Constructor Summary
Constructors Constructor Description DefaultExportContext()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddExceptionEntities(List<ConfluenceEntityObject> entities, boolean validate)Deprecated.Helper method to add a collection of entities to the current exception entitiesvoidaddExceptionEntity(ConfluenceEntityObject entity)Deprecated.voidaddWorkingEntity(ConfluenceEntityObject entity)Deprecated.Add to the entities to be exported.ContentTreegetContentTree()Deprecated.List<ConfluenceEntityObject>getExceptionEntities()Deprecated.FilegetExportDirectory()Deprecated.ExportScopegetExportScope()Deprecated.SetgetProcessedIds()Deprecated.StringgetSpaceKey()Deprecated.StringgetSpaceKeyOfSpaceExport()Deprecated.StringgetType()Deprecated.com.atlassian.user.UsergetUser()Deprecated.List<ConfluenceEntityObject>getWorkingEntities()Deprecated.The top level entities to be exported.static DefaultExportContextgetXmlBackupInstance()Deprecated.booleanisExceptionEntity(ConfluenceEntityObject entity)Deprecated.Entities to be excluded from the export.booleanisExportAll()Deprecated.booleanisExportAttachments()Deprecated.booleanisExportComments()Deprecated.booleanisExportHierarchy()Deprecated.booleanisPageInExport(Page page, PageManager pageManager)Deprecated.voidsetContentTree(ContentTree contentTree)Deprecated.voidsetExportAll(boolean exportAll)Deprecated.voidsetExportAttachments(boolean exportAttachments)Deprecated.voidsetExportComments(boolean exportComments)Deprecated.voidsetExportDirectory(File exportDirectory)Deprecated.voidsetExportHierarchy(boolean exportHierarchy)Deprecated.voidsetExportScope(ExportScope scope)Deprecated.voidsetSpaceKey(String spaceKey)Deprecated.voidsetType(String type)Deprecated.voidsetUser(com.atlassian.user.User user)Deprecated.
-
-
-
Method Detail
-
getXmlBackupInstance
public static DefaultExportContext getXmlBackupInstance()
Deprecated.
-
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 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 somethingConfluenceEntityObjectand validation is turned on.
-
addExceptionEntity
public void addExceptionEntity(ConfluenceEntityObject entity)
Deprecated.
-
isPageInExport
public boolean isPageInExport(Page page, PageManager pageManager)
Deprecated.- Specified by:
isPageInExportin interfaceExportContext- Returns:
- true if the given page is part of the current export, otherwise false.
-
getExceptionEntities
public List<ConfluenceEntityObject> getExceptionEntities()
Deprecated.
-
getWorkingEntities
public List<ConfluenceEntityObject> getWorkingEntities()
Deprecated.Description copied from interface:ExportContextThe top level entities to be exported. Their children and components will usually be exported too.- Specified by:
getWorkingEntitiesin interfaceExportContext
-
getProcessedIds
public Set getProcessedIds()
Deprecated.- Specified by:
getProcessedIdsin interfaceExportContext
-
setUser
public void setUser(com.atlassian.user.User user)
Deprecated.
-
getUser
public com.atlassian.user.User getUser()
Deprecated.- Specified by:
getUserin interfaceExportContext- Returns:
- the user this export is being generated for.
-
getSpaceKeyOfSpaceExport
public String getSpaceKeyOfSpaceExport()
Deprecated.- Specified by:
getSpaceKeyOfSpaceExportin interfaceExportContext- Returns:
- if this is a space export, the key of the space being exported, otherwise null
-
isExceptionEntity
public boolean isExceptionEntity(ConfluenceEntityObject entity)
Deprecated.Description copied from interface:ExportContextEntities to be excluded from the export.- Specified by:
isExceptionEntityin interfaceExportContext
-
isExportComments
public boolean isExportComments()
Deprecated.- Specified by:
isExportCommentsin interfaceExportContext
-
setExportComments
public void setExportComments(boolean exportComments)
Deprecated.
-
isExportAttachments
public boolean isExportAttachments()
Deprecated.- Specified by:
isExportAttachmentsin interfaceExportContext
-
setExportAttachments
public void setExportAttachments(boolean exportAttachments)
Deprecated.- Specified by:
setExportAttachmentsin interfaceExportContext
-
isExportHierarchy
public boolean isExportHierarchy()
Deprecated.- Specified by:
isExportHierarchyin interfaceExportContext
-
setExportHierarchy
public void setExportHierarchy(boolean exportHierarchy)
Deprecated.- Specified by:
setExportHierarchyin interfaceExportContext
-
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:
getTypein interfaceExportContext- Returns:
- the type of the export: HTML, PDF or XML. These constants are defined above.
-
setType
public void setType(String type)
Deprecated.
-
getExportScope
public ExportScope getExportScope()
Deprecated.- Specified by:
getExportScopein interfaceExportContext- Returns:
- the scope of an XML export: global, space or page.
-
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.
-
-