@Deprecated public interface

ContentTreeCallback3

implements ContentTreeCallback2
com.atlassian.stash.content.ContentTreeCallback3
Known Indirect Subclasses

Class Overview

ContentTreeCallback3 replaces onStartPage(int) and onEndPage(Page) with onStart(ContentTreeContext) and onEnd(ContentTreeSummary), respectively. The semantics of the two methods are unchanged.

Note: This interface is transitional and will be folded back into ContentTreeCallback in Stash 3.0. Implementors are strongly encouraged to extend from AbstractContentTreeCallback. This interface will change over time, and any class implementing it directly will be broken by those changes. Extending from the abstract class will help minimize such breakages.

Summary

Public Methods
void onEnd(ContentTreeSummary summary)
Called after the final tree node has been streamed.
void onStart(ContentTreeContext context)
Called before the first onTreeNode(ContentTreeNode).
[Expand]
Inherited Methods
From interface com.atlassian.stash.content.ContentTreeCallback
From interface com.atlassian.stash.content.ContentTreeCallback2

Public Methods

public void onEnd (ContentTreeSummary summary)

Called after the final tree node has been streamed.

Note: If the tree was empty, this method may be called immediately after onStart(ContentTreeContext) without any calls to onTreeNode(ContentTreeNode).

Parameters
summary summarizes the tree request and the streamed nodes
Throws
IOException May be thrown by implementations which perform I/O.

public void onStart (ContentTreeContext context)

Called before the first onTreeNode(ContentTreeNode).

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.