|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.importexport.DefaultExportContext
public class DefaultExportContext
Constructor Summary | |
---|---|
DefaultExportContext()
|
Method Summary | |
---|---|
void |
addExceptionEntities(java.util.List<ConfluenceEntityObject> entities,
boolean validate)
Helper method to add a collection of entities to the current exception entities |
void |
addExceptionEntity(ConfluenceEntityObject entity)
|
void |
addWorkingEntity(ConfluenceEntityObject entity)
Add to the entities to be exported. |
ContentTree |
getContentTree()
|
java.util.List<ConfluenceEntityObject> |
getExceptionEntities()
|
java.io.File |
getExportDirectory()
|
java.lang.String |
getExportDirectoryPath()
Deprecated. |
ExportScope |
getExportScope()
|
java.util.Set |
getProcessedIds()
|
java.lang.String |
getScope()
|
java.lang.String |
getType()
|
com.atlassian.user.User |
getUser()
|
java.util.List<ConfluenceEntityObject> |
getWorkingEntities()
The top level entities to be exported. |
static DefaultExportContext |
getXmlBackupInstance()
|
boolean |
isExceptionEntity(ConfluenceEntityObject entity)
Entities to be excluded from the export. |
boolean |
isExportAll()
|
boolean |
isExportAttachments()
|
boolean |
isExportComments()
|
boolean |
isExportHierarchy()
|
boolean |
isPageInExport(Page page,
PageManager pageManager)
|
void |
setContentTree(ContentTree contentTree)
|
void |
setExportAll(boolean exportAll)
|
void |
setExportAttachments(boolean exportAttachments)
|
void |
setExportComments(boolean exportComments)
|
void |
setExportDirectory(java.io.File exportDirectory)
|
void |
setExportHierarchy(boolean exportHierarchy)
|
void |
setExportScope(ExportScope scope)
|
void |
setScope(java.lang.String scope)
Deprecated. since 4.2 use setExportScope(ExportScope) |
void |
setType(java.lang.String type)
|
void |
setUser(com.atlassian.user.User user)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultExportContext()
Method Detail |
---|
public static DefaultExportContext getXmlBackupInstance()
public void addWorkingEntity(ConfluenceEntityObject entity)
public void addExceptionEntities(java.util.List<ConfluenceEntityObject> entities, boolean validate) throws java.lang.IllegalArgumentException
entities
- a list of ConfluenceEntityObjectsvalidate
- - if true the contents of the list will be type-checked to ensure that they contain
nothing other than ConfluenceEntityObject
.
java.lang.IllegalArgumentException
- if the list contains something ConfluenceEntityObject
and validation is turned on.public void addExceptionEntity(ConfluenceEntityObject entity)
public boolean isPageInExport(Page page, PageManager pageManager)
isPageInExport
in interface ExportContext
public java.util.List<ConfluenceEntityObject> getExceptionEntities()
public java.util.List<ConfluenceEntityObject> getWorkingEntities()
ExportContext
getWorkingEntities
in interface ExportContext
public java.util.Set getProcessedIds()
getProcessedIds
in interface ExportContext
@Deprecated public java.lang.String getExportDirectoryPath()
getExportDirectoryPath
in interface ExportContext
public void setUser(com.atlassian.user.User user)
public com.atlassian.user.User getUser()
getUser
in interface ExportContext
public boolean isExceptionEntity(ConfluenceEntityObject entity)
ExportContext
isExceptionEntity
in interface ExportContext
public boolean isExportComments()
isExportComments
in interface ExportContext
public void setExportComments(boolean exportComments)
public boolean isExportAttachments()
isExportAttachments
in interface ExportContext
public void setExportAttachments(boolean exportAttachments)
setExportAttachments
in interface ExportContext
public boolean isExportHierarchy()
isExportHierarchy
in interface ExportContext
public void setExportHierarchy(boolean exportHierarchy)
setExportHierarchy
in interface ExportContext
public java.io.File getExportDirectory()
public void setExportDirectory(java.io.File exportDirectory)
public ContentTree getContentTree()
ContentTree
public void setContentTree(ContentTree contentTree)
public java.lang.String getType()
getType
in interface ExportContext
public void setType(java.lang.String type)
public java.lang.String getScope()
getScope
in interface ExportContext
ImportExportManager
.public ExportScope getExportScope()
getExportScope
in interface ExportContext
@Deprecated public void setScope(java.lang.String scope)
setExportScope(ExportScope)
public void setExportScope(ExportScope scope)
public boolean isExportAll()
public void setExportAll(boolean exportAll)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |