java.lang.Object |
↳ |
com.atlassian.stash.content.AbstractContentTreeCallback |
Class Overview
Convenience implementation of ContentTreeCallback
that provides no-op implementations for all the methods.
Public Constructors
public
AbstractContentTreeCallback
()
Public Methods
public
void
onEndPage
(Page<?> page)
Parameters
page
| information about the page streamed to the callback. The page.getValues() will return null as
the callback has already received the data. This is used to know information about the number of
elements processed and whether there is more content to be retrieved in the future |
public
void
onStartPage
(int index)
Parameters
index
| the index of the starting element of the page |
public
boolean
onTreeNode
(String contentId, String path, ContentTreeNode.Type type)
Called once for each file path. onStartPage(int)
is called before any invocation of this
method. onEndPage(Page)
is called after all invocations of this method.
Parameters
contentId
| a unique identifier for the content node |
path
| the path to the content node |
type
| the type of the content node |
Returns
true
if additional nodes should be provided; otherwise, false
if the provided node should
be the last
public
boolean
onTreeNode
(ContentTreeNode node)
Parameters
node
| the current tree node |
Returns
true
if additional nodes should be provided; otherwise, false
if the provided node should
be the last