Class FishEyeRepositoryViewer

    • Constructor Detail

      • FishEyeRepositoryViewer

        @Inject
        public FishEyeRepositoryViewer​(CustomVariableContext customVariableContext)
    • Method Detail

      • getWebRepositoryUrlForRevision

        @Nullable
        public @Nullable String getWebRepositoryUrlForRevision​(@NotNull
                                                               @NotNull String revisionId,
                                                               @NotNull
                                                               @NotNull VcsRepositoryData repositoryData)
        Description copied from interface: VcsRepositoryViewer
        Provide the url to link to the given revision in the web repository
        Specified by:
        getWebRepositoryUrlForRevision in interface VcsRepositoryViewer
        Parameters:
        revisionId - the revision to links to. Should not be blank or null.
        repositoryData - the repository type the commit came from
        Returns:
        a full url string.
      • getWebRepositoryUrlForRevisions

        @NotNull
        public @NotNull Map<String,​String> getWebRepositoryUrlForRevisions​(Stream<String> revisionIds,
                                                                                 VcsRepositoryData repositoryData)
        Description copied from interface: VcsRepositoryViewer
        Provide the urls to link all the given commits in the web repository
        Specified by:
        getWebRepositoryUrlForRevisions in interface VcsRepositoryViewer
        Parameters:
        revisionIds - to generate links for. Stream should not contain empty values or nulls.
        repositoryData - the repository type the commit came from
        Returns:
        a map of the commit to its url.
      • getWebRepositoryUrlForFile

        @Nullable
        public @Nullable String getWebRepositoryUrlForFile​(@NotNull
                                                           @NotNull CommitFile file,
                                                           @NotNull
                                                           @NotNull VcsRepositoryData repositoryData)
        Description copied from interface: VcsRepositoryViewer
        Generate the link to a given file in a given repository
        Specified by:
        getWebRepositoryUrlForFile in interface VcsRepositoryViewer
        Parameters:
        file - The file we want to link to.
        repositoryData - For the build (and hense the repository file belongs to).
        Returns:
        The url
      • getWebRepositoryUrlForFileRevision

        @Nullable
        public @Nullable String getWebRepositoryUrlForFileRevision​(CommitFile file,
                                                                   @NotNull
                                                                   @NotNull VcsRepositoryData repositoryData)
        Description copied from interface: VcsRepositoryViewer
        Generate the link to a given file in a given repository at given revision,
        Specified by:
        getWebRepositoryUrlForFileRevision in interface VcsRepositoryViewer
        Parameters:
        file - The file we want to link to.
        repositoryData - For the build (and hense the repository file belongs to).
        Returns:
        The url
      • getWebRepositoryUrlForFileDiff

        @Nullable
        public @Nullable String getWebRepositoryUrlForFileDiff​(CommitFile file,
                                                               @NotNull
                                                               @NotNull VcsRepositoryData repositoryData)
        Description copied from interface: VcsRepositoryViewer
        Generate the link to a given file, showing changes in given revision.
        Specified by:
        getWebRepositoryUrlForFileDiff in interface VcsRepositoryViewer
        Parameters:
        file - The file we want to link to.
        repositoryData - For the build (and hense the repository file belongs to).
        Returns:
        The url