public abstract class AbstractHgWebRepositoryViewer extends AbstractWebRepositoryViewer implements DeploymentsAwareCommitUrlProvider
moduleDescriptor, templateRenderer
SELECTED_WEB_REPOSITORY_VIEWER, WEB_REPOSITORY
Constructor and Description |
---|
AbstractHgWebRepositoryViewer(HgWebRepositoryUrlProvider urlProvider) |
Modifier and Type | Method and Description |
---|---|
String |
getHtmlForCommitsFull(ResultsSummary resultsSummary,
RepositoryChangeset repositoryChangeset,
RepositoryData repositoryData)
Renders the html to display the full commits on the changes tab.
|
String |
getHtmlForCommitsSummary(ResultsSummary resultsSummary,
RepositoryChangeset repositoryChangeset,
RepositoryData repositoryData,
int maxChanges)
Renders the html to display a summary of the commits on the Build Results Summary tab.
|
protected abstract URI |
getUriForRepositoryData(RepositoryData repositoryData) |
String |
getWebRepositoryUrlForCommit(Commit commit,
RepositoryData repositoryData)
Provide the url to link to the given commit in the web repository
|
Map<Commit,String> |
getWebRepositoryUrlForCommits(Collection<Commit> commits,
RepositoryData repositoryData)
Used in defaultCommitSummaryView.ftl
|
Map<DeploymentVersionVcsCommit,String> |
getWebRepositoryUrlForDeploymentVersionCommits(Collection<DeploymentVersionVcsCommit> commits,
RepositoryData repositoryData)
Provide the urls to link all the given commits in the web repository
|
String |
getWebRepositoryUrlForDiff(CommitFile file,
RepositoryData repositoryData)
Used in defaultCommitView.ftl
|
String |
getWebRepositoryUrlForFile(CommitFile file,
RepositoryData repositoryData)
Used in defaultCommitView.ftl
|
String |
getWebRepositoryUrlForRevision(CommitFile file,
RepositoryData repositoryData)
Used in defaultCommitView.ftl
|
String |
getWebRepositoryUrlForRevision(String revisionId,
RepositoryData repositoryDefinition)
Provide the url to link to the given revision in the web repository
|
getKey, getName, getShortKey, getSupportedRepositories, populateFromConfig, populateFromParams, toConfiguration
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, getEditHtml, getViewHtml, init, populateContextForEdit, populateContextForView, prepareConfigObject, setTemplateRenderer, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey, getName, getShortKey, getSupportedRepositories, populateFromParams
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
init
getEditHtml, getViewHtml
populateFromConfig, toConfiguration
public AbstractHgWebRepositoryViewer(HgWebRepositoryUrlProvider urlProvider)
public String getWebRepositoryUrlForCommit(Commit commit, @NotNull RepositoryData repositoryData)
CommitUrlProvider
getWebRepositoryUrlForCommit
in interface CommitUrlProvider
commit
- the commit to links torepositoryData
- the repository type the commit came frompublic String getWebRepositoryUrlForRevision(String revisionId, @NotNull RepositoryData repositoryDefinition)
CommitUrlProvider
getWebRepositoryUrlForRevision
in interface CommitUrlProvider
revisionId
- the revision to links torepositoryDefinition
- the repository type the commit came frompublic String getHtmlForCommitsFull(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryData)
WebRepositoryViewer
getHtmlForCommitsFull
in interface WebRepositoryViewer
resultsSummary
- the summary to show commits forrepositoryData
- the commits belong to aka the plans repositorypublic String getHtmlForCommitsSummary(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryData, int maxChanges)
WebRepositoryViewer
getHtmlForCommitsSummary
in interface WebRepositoryViewer
resultsSummary
- the summary to show commits forrepositoryData
- the commits belong to aka the plans repositorymaxChanges
- maximum number of commits to be shown. Negative value means that all commits should be shown.public String getWebRepositoryUrlForFile(@NotNull CommitFile file, RepositoryData repositoryData)
public String getWebRepositoryUrlForRevision(CommitFile file, RepositoryData repositoryData)
public String getWebRepositoryUrlForDiff(CommitFile file, RepositoryData repositoryData)
public Map<Commit,String> getWebRepositoryUrlForCommits(Collection<Commit> commits, RepositoryData repositoryData)
getWebRepositoryUrlForCommits
in interface CommitUrlProvider
commits
- to generate links forrepositoryData
- the repository type the commit came frompublic Map<DeploymentVersionVcsCommit,String> getWebRepositoryUrlForDeploymentVersionCommits(Collection<DeploymentVersionVcsCommit> commits, RepositoryData repositoryData)
DeploymentsAwareCommitUrlProvider
getWebRepositoryUrlForDeploymentVersionCommits
in interface DeploymentsAwareCommitUrlProvider
commits
- to generate links forrepositoryData
- the repository the commit came from@Nullable protected abstract URI getUriForRepositoryData(RepositoryData repositoryData)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.