public interface CommitUrlProvider extends WebRepositoryViewer
SELECTED_WEB_REPOSITORY_VIEWER, WEB_REPOSITORY
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getWebRepositoryUrlForCommit(Commit commit,
@NotNull RepositoryData repositoryData)
Provide the url to link to the given commit in the web repository
|
Map<Commit,String> |
getWebRepositoryUrlForCommits(Collection<Commit> commits,
RepositoryData repositoryDefinition)
Provide the urls to link all the given commits in the web repository
|
@Nullable String |
getWebRepositoryUrlForRevision(String revisionId,
@NotNull RepositoryData repositoryData)
Provide the url to link to the given revision in the web repository
|
getHtmlForCommitsFull, getHtmlForCommitsSummary, getKey, getName, getShortKey, getSupportedRepositories, populateFromParams
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
init
getEditHtml, getViewHtml
populateFromConfig, toConfiguration
@Nullable @Nullable String getWebRepositoryUrlForCommit(Commit commit, @NotNull @NotNull RepositoryData repositoryData)
commit
- the commit to links torepositoryData
- the repository type the commit came from@Nullable @Nullable String getWebRepositoryUrlForRevision(String revisionId, @NotNull @NotNull RepositoryData repositoryData)
revisionId
- the revision to links torepositoryData
- the repository type the commit came fromMap<Commit,String> getWebRepositoryUrlForCommits(Collection<Commit> commits, RepositoryData repositoryDefinition)
commits
- to generate links forrepositoryDefinition
- the repository type the commit came fromCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.