public class BitbucketCloudVcsRepositoryViewer extends Object implements VcsRepositoryViewer
Constructor and Description |
---|
BitbucketCloudVcsRepositoryViewer() |
Modifier and Type | Method and Description |
---|---|
protected URI |
getUriForRepositoryData(RepositoryData repositoryData) |
protected URI |
getUriForRepositoryData(VcsRepositoryData vcsRepositoryData) |
String |
getWebRepositoryUrlForFile(CommitFile file,
VcsRepositoryData repositoryData)
Generate the link to a given file in a given repository
|
String |
getWebRepositoryUrlForFileDiff(CommitFile file,
VcsRepositoryData repositoryData)
Generate the link to a given file, showing changes in given revision.
|
String |
getWebRepositoryUrlForFileRevision(CommitFile file,
VcsRepositoryData repositoryData)
Generate the link to a given file in a given repository at given revision,
|
String |
getWebRepositoryUrlForRevision(String revisionId,
VcsRepositoryData repositoryData)
Provide the url to link to the given revision in the web repository
|
Map<String,String> |
getWebRepositoryUrlForRevisions(Stream<String> revisionIds,
VcsRepositoryData repositoryDefinition)
Provide the urls to link all the given commits in the web repository
|
void |
setCustomVariableContext(CustomVariableContext customVariableContext) |
void |
setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager) |
@Nullable public String getWebRepositoryUrlForRevision(@NotNull String revisionId, @NotNull VcsRepositoryData repositoryData)
VcsRepositoryViewer
getWebRepositoryUrlForRevision
in interface VcsRepositoryViewer
revisionId
- the revision to links to. Should not be blank or null.repositoryData
- the repository type the commit came from@NotNull public Map<String,String> getWebRepositoryUrlForRevisions(Stream<String> revisionIds, VcsRepositoryData repositoryDefinition)
VcsRepositoryViewer
getWebRepositoryUrlForRevisions
in interface VcsRepositoryViewer
revisionIds
- to generate links for. Stream should not contain empty values or nulls.repositoryDefinition
- the repository type the commit came from@Nullable public String getWebRepositoryUrlForFile(@NotNull CommitFile file, @NotNull VcsRepositoryData repositoryData)
VcsRepositoryViewer
getWebRepositoryUrlForFile
in interface VcsRepositoryViewer
file
- The file we want to link to.repositoryData
- For the build (and hense the repository file belongs to).@Nullable public String getWebRepositoryUrlForFileRevision(@NotNull CommitFile file, @NotNull VcsRepositoryData repositoryData)
VcsRepositoryViewer
getWebRepositoryUrlForFileRevision
in interface VcsRepositoryViewer
file
- The file we want to link to.repositoryData
- For the build (and hense the repository file belongs to).@Nullable public String getWebRepositoryUrlForFileDiff(@NotNull CommitFile file, @NotNull VcsRepositoryData repositoryData)
VcsRepositoryViewer
getWebRepositoryUrlForFileDiff
in interface VcsRepositoryViewer
file
- The file we want to link to.repositoryData
- For the build (and hense the repository file belongs to).@Nullable protected URI getUriForRepositoryData(VcsRepositoryData vcsRepositoryData)
@Nullable protected URI getUriForRepositoryData(RepositoryData repositoryData)
public void setCustomVariableContext(CustomVariableContext customVariableContext)
public void setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.