public static interface

NavBuilder.Commit

implements NavBuilder.PathBuilder<B extends PathBuilder>
com.atlassian.stash.nav.NavBuilder.Commit

Class Overview

Builds URLs of the form /projects/PROJ/repos/REPO/commits/ID

Summary

Public Methods
@Nonnull NavBuilder.Commit change(String path)
Adds an anchor for the specified path, producing a URL like /projects/PROJ/repos/repo/commits/ID#path.
@Nonnull NavBuilder.Commit change(Path path)
Adds an anchor for the specified path, producing a URL like /projects/PROJ/repos/repo/commits/ID#path.
@Nonnull NavBuilder.CommitComment comment(long commentId)
Retrieves a builder for interacting with the specified comment on this commit.
@Nonnull NavBuilder.Commit unwatch()
Adds an unwatch query parameter to the URL for this commit.
[Expand]
Inherited Methods
From interface com.atlassian.stash.nav.NavBuilder.Builder
From interface com.atlassian.stash.nav.NavBuilder.PathBuilder

Public Methods

@Nonnull public NavBuilder.Commit change (String path)

Adds an anchor for the specified path, producing a URL like /projects/PROJ/repos/repo/commits/ID#path.

Parameters
path the path to set in the anchor
Returns
  • this

@Nonnull public NavBuilder.Commit change (Path path)

Adds an anchor for the specified path, producing a URL like /projects/PROJ/repos/repo/commits/ID#path.

Parameters
path the path to set in the anchor
Returns
  • this

@Nonnull public NavBuilder.CommitComment comment (long commentId)

Retrieves a builder for interacting with the specified comment on this commit.

Parameters
commentId the ID of the comment to build URLs for
Returns
  • a comment URL builder

@Nonnull public NavBuilder.Commit unwatch ()

Adds an unwatch query parameter to the URL for this commit.

Returns
  • this