Package com.atlassian.bitbucket.content
Class AbstractContentTreeCallback
java.lang.Object
com.atlassian.bitbucket.content.AbstractContentTreeCallback
- All Implemented Interfaces:
 ContentTreeCallback
Convenience implementation of 
ContentTreeCallback that provides no-op implementations for all methods.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidonEnd(ContentTreeSummary summary) Called after the finaltree nodehas been streamed.voidonStart(ContentTreeContext context) Called before the firstContentTreeCallback.onTreeNode(ContentTreeNode).booleanonTreeNode(ContentTreeNode node) Discards the providedContentTreeNodeand returnstrueto continue streaming. 
- 
Constructor Details
- 
AbstractContentTreeCallback
public AbstractContentTreeCallback() 
 - 
 - 
Method Details
- 
onEnd
Description copied from interface:ContentTreeCallbackCalled after the finaltree nodehas been streamed.Note: If the tree was empty, this method may be called immediately after
ContentTreeCallback.onStart(ContentTreeContext)without any calls toContentTreeCallback.onTreeNode(ContentTreeNode).- Specified by:
 onEndin interfaceContentTreeCallback- Parameters:
 summary- summarizes the tree request and the streamed nodes- Throws:
 IOException- may be thrown by implementations which perform I/O.
 - 
onStart
Description copied from interface:ContentTreeCallbackCalled before the firstContentTreeCallback.onTreeNode(ContentTreeNode).- Specified by:
 onStartin interfaceContentTreeCallback- Parameters:
 context- provides details about the tree request for which nodes are being streamed- Throws:
 IOException- may be thrown by implementations which perform I/O.
 - 
onTreeNode
Discards the providedContentTreeNodeand returnstrueto continue streaming.- Specified by:
 onTreeNodein interfaceContentTreeCallback- Parameters:
 node- the current tree node- Returns:
 trueif further nodes should be streamed; otherwise,falseto stop streaming- Throws:
 IOException- may be thrown by implementations which perform I/O operations, such as streaming tree nodes
 
 -