@Deprecated public interface

ContentTreeCallback2

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

Class Overview

ContentTreeCallback2 replaces onTreeNode(String, String, ContentTreeNode.Type) with onTreeNode(ContentTreeNode). This adds support for Submodule nodes and simplifies adding further new types later if necessary.

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 such changes. Extending from the abstract class will help minimize such breakages.

Summary

Public Methods
boolean onTreeNode(ContentTreeNode node)
Called once for each path in the tree.
[Expand]
Inherited Methods
From interface com.atlassian.stash.content.ContentTreeCallback

Public Methods

public boolean onTreeNode (ContentTreeNode node)

Called once for each path in the tree. onStartPage(int) is called before any invocation of this method. onEndPage(Page) is called after all invocations of this method.

Parameters
node the current tree node
Returns
  • true if additional nodes should be provided; otherwise, false if the provided node should be the last
Throws
IOException may be thrown by implementations which perform I/O operations, such as streaming tree nodes