public static interface

NavBuilder.Repo

implements NavBuilder.Builder<B extends Builder>
com.atlassian.stash.nav.NavBuilder.Repo

Class Overview

The builder of urls hanging off /projects/PROJ/repos/REPO. The url built by this builder, if not further developed, is the same as BrowseRepo

Public Methods

public NavBuilder.RepoAttachments attachments ()

Returns
  • a builder for urls of the form /projects/PROJ/repos/REPO/attachments[/...]

public NavBuilder.ListBranches branches ()

Returns
  • a builder for urls of the form /projects/PROJ/repos/REPO/branches

public NavBuilder.BrowseRepoResource browse ()

Returns
  • a builder for urls of the form /projects/PROJ/repos/REPO/browse[/...]

@Deprecated public NavBuilder.Changeset changeset (String id)

This method is deprecated.
in 3.8 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Use commit(String) instead.

Returns
  • a builder for urls of the form /projects/PROJ/repos/REPO/commits/ID

@Deprecated public NavBuilder.RepoClone clone (String scmId)

This method is deprecated.
will be removed in Stash 4.0. Use getCloneLinks(com.atlassian.stash.repository.RepositoryCloneLinksRequest) instead to generate clone URLs for repositories.

Parameters
scmId the ID of the SCM
Returns
  • a builder for HTTP clone urls of the form /PROJ/REPO.${scmId}

@Nonnull public NavBuilder.Commit commit (String commitId)

Parameters
commitId the commit ID to build URLs for
Returns
  • a builder for URLs of the form /projects/PROJ/repos/REPO/commits/ID

public NavBuilder.ListCommits commits ()

Returns
  • a builder for urls of the form /projects/PROJ/repos/REPO/commits

public NavBuilder.Compare compare ()

Returns
  • a builder for urls of the form /projects/PROJ/repos/REPO/compare

public NavBuilder.CreatePullRequest createPullRequest ()

public NavBuilder.RepoDelete delete ()

Returns
  • a builder for urls of the form /projects/PROJ/repos/REPO

public NavBuilder.RepoFork fork ()

public NavBuilder.RepoHooks hooks ()

Returns
  • a builder for urls of the form /projects/PROJ/repos/REPO/settings/hooks

public NavBuilder.RepoPermissions permissions ()

Returns
  • a builder for urls of the form /projects/PROJ/repos/REPO/permissions

public NavBuilder.PullRequest pullRequest (long id)

public NavBuilder.ListPullRequests pullRequests ()

public NavBuilder.RepoSettings settings ()

Returns
  • a builder for urls of the form /projects/PROJ/repos/REPO/settings

public NavBuilder.ListTags tags ()

Returns
  • a builder for urls of the form /projects/PROJ/repos/REPO/tags