public class BranchStatusLinkInfo extends Object
Modifier and Type | Method and Description |
---|---|
static BranchStatusLinkInfo |
forBranch(long repositoryId,
String repositoryName,
String branchName,
String navigationSource)
Create branch status link info for specified repository and VCS branch.
|
static BranchStatusLinkInfo |
forRepository(VcsRepositoryData vcsRepositoryData,
String navigationSource)
Create branch status link info for specified repository and VCS branch.
|
String |
getPath()
Path to a specific VCS branch on branch status page, relative to branch status page root.
|
boolean |
isShowLink()
True if the link should be displayed.
|
static BranchStatusLinkInfo |
notShown()
Branch status link info when the link should not be displayed.
|
public static BranchStatusLinkInfo forBranch(long repositoryId, @NotNull String repositoryName, @NotNull String branchName, @Nullable String navigationSource)
repositoryId
- id of repositoryrepositoryName
- repository namebranchName
- branch namenavigationSource
- what is the navigation source for this link (e.g. 'email', 'header')public static BranchStatusLinkInfo forRepository(@NotNull VcsRepositoryData vcsRepositoryData, @Nullable String navigationSource)
vcsRepositoryData
- repository data, must include branchnavigationSource
- what is the navigation source for this link (e.g. 'email', 'header')public static BranchStatusLinkInfo notShown()
public String getPath()
public boolean isShowLink()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.