public class BitbucketServerVcsRepositoryViewer extends Object implements VcsRepositoryViewer
| Constructor and Description |
|---|
BitbucketServerVcsRepositoryViewer() |
| Modifier and Type | Method and Description |
|---|---|
@Nullable String |
getWebRepositoryUrlForFile(@NotNull CommitFile file,
@NotNull VcsRepositoryData repositoryData)
Generate the link to a given file in a given repository
|
@Nullable String |
getWebRepositoryUrlForFileDiff(@NotNull CommitFile file,
@NotNull VcsRepositoryData repositoryData)
Generate the link to a given file, showing changes in given revision.
|
@Nullable String |
getWebRepositoryUrlForFileRevision(@NotNull CommitFile file,
@NotNull VcsRepositoryData repositoryData)
Generate the link to a given file in a given repository at given revision,
|
@Nullable String |
getWebRepositoryUrlForRevision(@NotNull String revisionId,
@NotNull VcsRepositoryData repositoryData)
Provide the url to link to the given revision in the web repository
|
@NotNull Map<String,String> |
getWebRepositoryUrlForRevisions(Stream<String> revisionIds,
VcsRepositoryData repositoryDefinition)
Provide the urls to link all the given commits in the web repository
|
@Nullable public @Nullable String getWebRepositoryUrlForRevision(@NotNull @NotNull String revisionId, @NotNull @NotNull VcsRepositoryData repositoryData)
VcsRepositoryViewergetWebRepositoryUrlForRevision in interface VcsRepositoryViewerrevisionId - the revision to links to. Should not be blank or null.repositoryData - the repository type the commit came from@NotNull public @NotNull Map<String,String> getWebRepositoryUrlForRevisions(Stream<String> revisionIds, VcsRepositoryData repositoryDefinition)
VcsRepositoryViewergetWebRepositoryUrlForRevisions in interface VcsRepositoryViewerrevisionIds - to generate links for. Stream should not contain empty values or nulls.repositoryDefinition - the repository type the commit came from@Nullable public @Nullable String getWebRepositoryUrlForFile(@NotNull @NotNull CommitFile file, @NotNull @NotNull VcsRepositoryData repositoryData)
VcsRepositoryViewergetWebRepositoryUrlForFile in interface VcsRepositoryViewerfile - The file we want to link to.repositoryData - For the build (and hense the repository file belongs to).@Nullable public @Nullable String getWebRepositoryUrlForFileRevision(@NotNull @NotNull CommitFile file, @NotNull @NotNull VcsRepositoryData repositoryData)
VcsRepositoryViewergetWebRepositoryUrlForFileRevision in interface VcsRepositoryViewerfile - The file we want to link to.repositoryData - For the build (and hense the repository file belongs to).@Nullable public @Nullable String getWebRepositoryUrlForFileDiff(@NotNull @NotNull CommitFile file, @NotNull @NotNull VcsRepositoryData repositoryData)
VcsRepositoryViewergetWebRepositoryUrlForFileDiff in interface VcsRepositoryViewerfile - The file we want to link to.repositoryData - For the build (and hense the repository file belongs to).Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.