public class NoWebRepositoryViewer extends AbstractWebRepositoryViewer implements CommitUrlProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
PLUGIN_KEY |
moduleDescriptor, templateRendererSELECTED_WEB_REPOSITORY_VIEWER, WEB_REPOSITORY| Constructor and Description |
|---|
NoWebRepositoryViewer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEditHtml(BuildConfiguration buildConfiguration,
Plan plan)
Returns HTML that represents the form fragment for editing the repository.
|
String |
getHtmlForCommitsFull(ResultsSummary resultsSummary,
RepositoryChangeset repositoryChangeset,
RepositoryData repositoryDefinition)
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.
|
String |
getViewHtml(Plan plan)
Returns the HTML that represents the view of the repository configuration
|
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 repositoryDefinition)
Provide the urls to link all the given commits in the web repository
|
String |
getWebRepositoryUrlForRevision(String revisionId,
RepositoryData repositoryData)
Provide the url to link to the given revision in the web repository
|
getKey, getName, getShortKey, getSupportedRepositories, populateFromConfig, populateFromParams, toConfigurationcustomizeBuildRequirements, removeBuildRequirementsaddDefaultValues, getTemplateRenderer, init, populateContextForEdit, populateContextForView, prepareConfigObject, setTemplateRenderer, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKey, getName, getShortKey, getSupportedRepositories, populateFromParamscustomizeBuildRequirements, removeBuildRequirementsaddDefaultValues, isConfigurationMissing, prepareConfigObject, validateinitpopulateFromConfig, toConfigurationpublic static final String PLUGIN_KEY
public String getHtmlForCommitsFull(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryDefinition)
WebRepositoryViewergetHtmlForCommitsFull in interface WebRepositoryViewerresultsSummary - the summary to show commits forrepositoryDefinition - the commits belong to aka the plans repositorypublic String getHtmlForCommitsSummary(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryData, int maxChanges)
WebRepositoryViewergetHtmlForCommitsSummary in interface WebRepositoryViewerresultsSummary - 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 getViewHtml(@NotNull Plan plan)
RenderableBuildConfigurationgetViewHtml in interface RenderableBuildConfigurationgetViewHtml in class BaseBuildConfigurationAwarePluginplan - for which view HTML has to be rendered.public String getEditHtml(@NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
RenderableBuildConfigurationgetEditHtml in interface RenderableBuildConfigurationgetEditHtml in class BaseBuildConfigurationAwarePluginbuildConfiguration - BuildConfiguration for which edit HTML has to be rendered.plan - Plan for which edit HTML has to be rendered. May be null during creation phase of plan.@Nullable public String getWebRepositoryUrlForCommit(Commit commit, @NotNull RepositoryData repositoryData)
CommitUrlProvidergetWebRepositoryUrlForCommit in interface CommitUrlProvidercommit - the commit to links torepositoryData - the repository type the commit came from@Nullable public String getWebRepositoryUrlForRevision(String revisionId, @NotNull RepositoryData repositoryData)
CommitUrlProvidergetWebRepositoryUrlForRevision in interface CommitUrlProviderrevisionId - the revision to links torepositoryData - the repository type the commit came frompublic Map<Commit,String> getWebRepositoryUrlForCommits(Collection<Commit> commits, RepositoryData repositoryDefinition)
CommitUrlProvidergetWebRepositoryUrlForCommits in interface CommitUrlProvidercommits - to generate links forrepositoryDefinition - the repository type the commit came fromCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.