@Deprecated public abstract class

AbstractChangesetCallback

extends Object
implements ChangesetCallback
java.lang.Object
   ↳ com.atlassian.stash.content.AbstractChangesetCallback

This class is deprecated.
in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Callbacks should extend AbstractCommitCallback instead.

Class Overview

Convenience implementation of ChangesetCallback that provides no-op implementations for all methods.

Summary

Public Constructors
AbstractChangesetCallback()
Public Methods
boolean onChangeset(Changeset changeset)
Discards the provided Changeset and returns true to continue streaming.
void onEnd(ChangesetSummary summary)
Called after the final changeset has been streamed.
void onStart(ChangesetContext context)
Called before the first changeset is streamed.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.stash.content.ChangesetCallback

Public Constructors

public AbstractChangesetCallback ()

Public Methods

public boolean onChangeset (Changeset changeset)

Discards the provided Changeset and returns true to continue streaming.

Parameters
changeset ignored
Returns
  • true
Throws
IOException may be thrown by derived classes

public void onEnd (ChangesetSummary summary)

Called after the final changeset has been streamed.

Note: If there were no changes, this method may be called immediately after onStart(ChangesetContext) without any calls to onChangeset(Changeset).

Parameters
summary summarizes the request and the streamed changesets
Throws
IOException

public void onStart (ChangesetContext context)

Called before the first changeset is streamed.

Parameters
context provides details about the request for which changesets are being streamed
Throws
IOException