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

Summary

Public Methods
NavBuilder.RepoAttachments attachments()
NavBuilder.ListBranches branches()
NavBuilder.BrowseRepoResource browse()
@Deprecated NavBuilder.Changeset changeset(String id)
This method is deprecated. in 3.8 for removal in 5.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Due to the significant number of touchpoints, the deprecated classes and interfaces will be left in for an entire major release cycle, rather than being removed in 4.0. Use commit(String) instead.
@Deprecated 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.
@Nonnull NavBuilder.Commit commit(String commitId)
NavBuilder.ListCommits commits()
NavBuilder.Compare compare()
NavBuilder.CreatePullRequest createPullRequest()
NavBuilder.RepoDelete delete()
NavBuilder.RepoFork fork()
NavBuilder.RepoHooks hooks()
NavBuilder.RepoPermissions permissions()
NavBuilder.PullRequest pullRequest(long id)
NavBuilder.ListPullRequests pullRequests()
NavBuilder.RepoSettings settings()
NavBuilder.ListTags tags()
[Expand]
Inherited Methods
From interface com.atlassian.stash.nav.NavBuilder.Builder

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 5.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. Due to the significant number of touchpoints, the deprecated classes and interfaces will be left in for an entire major release cycle, rather than being removed in 4.0. 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