Class BranchStatusLinkInfo


  • public class BranchStatusLinkInfo
    extends Object
    Entity to provide information about branch status page link.
    • 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 repository
        repositoryName - repository name
        branchName - branch name
        navigationSource - 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 branch
        navigationSource - 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.