Class BranchStatusLinkInfo
- java.lang.Object
-
- com.atlassian.bamboo.chains.branches.BranchStatusLinkInfo
-
public class BranchStatusLinkInfo extends Object
Entity to provide information about branch status page link.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BranchStatusLinkInfoforBranch(long repositoryId, @NotNull String repositoryName, @NotNull String branchName, @Nullable String navigationSource)Create branch status link info for specified repository and VCS branch.static BranchStatusLinkInfoforRepository(@NotNull VcsRepositoryData vcsRepositoryData, @Nullable String navigationSource)Create branch status link info for specified repository and VCS branch.StringgetPath()Path to a specific VCS branch on branch status page, relative to branch status page root.booleanisShowLink()True if the link should be displayed.static BranchStatusLinkInfonotShown()Branch status link info when the link should not be displayed.
-
-
-
Method Detail
-
forBranch
public static BranchStatusLinkInfo forBranch(long repositoryId, @NotNull @NotNull String repositoryName, @NotNull @NotNull String branchName, @Nullable @Nullable String navigationSource)
Create branch status link info for specified repository and VCS branch.- Parameters:
repositoryId- id of repositoryrepositoryName- repository namebranchName- branch namenavigationSource- what is the navigation source for this link (e.g. 'email', 'header')
-
forRepository
public static BranchStatusLinkInfo forRepository(@NotNull @NotNull VcsRepositoryData vcsRepositoryData, @Nullable @Nullable String navigationSource)
Create branch status link info for specified repository and VCS branch.- Parameters:
vcsRepositoryData- repository data, must include branchnavigationSource- what is the navigation source for this link (e.g. 'email', 'header')
-
notShown
public static BranchStatusLinkInfo notShown()
Branch status link info when the link should not be displayed.
-
getPath
public String getPath()
Path to a specific VCS branch on branch status page, relative to branch status page root.
-
isShowLink
public boolean isShowLink()
True if the link should be displayed.
-
-