Class BranchStatusLinkInfo
java.lang.Object
com.atlassian.bamboo.chains.branches.BranchStatusLinkInfo
Entity to provide information about branch status page link.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BranchStatusLinkInfo
forBranch
(long repositoryId, @NotNull String repositoryName, @NotNull String branchName, @Nullable String navigationSource) Create branch status link info for specified repository and VCS branch.static BranchStatusLinkInfo
forRepository
(@NotNull VcsRepositoryData vcsRepositoryData, @Nullable String navigationSource) Create branch status link info for specified repository and VCS branch.getPath()
Path to a specific VCS branch on branch status page, relative to branch status page root.boolean
True if the link should be displayed.static BranchStatusLinkInfo
notShown()
Branch status link info when the link should not be displayed.
-
Method Details
-
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
Branch status link info when the link should not be displayed. -
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.
-