public class NoWebRepositoryViewer extends AbstractWebRepositoryViewer
moduleDescriptor, templateRenderer
SELECTED_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
|
getKey, getName, getShortKey, getSupportedRepositories, populateFromConfig, populateFromParams, toConfiguration
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, init, isConfigurationMissing, populateContextForEdit, populateContextForView, prepareConfigObject, setTemplateRenderer, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, prepareConfigObject, validate
init
public String getHtmlForCommitsFull(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryDefinition)
WebRepositoryViewer
resultsSummary
- 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)
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 getViewHtml(@NotNull Plan plan)
RenderableBuildConfiguration
getViewHtml
in interface RenderableBuildConfiguration
getViewHtml
in class BaseBuildConfigurationAwarePlugin
plan
- for which view HTML has to be rendered.public String getEditHtml(@NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
RenderableBuildConfiguration
getEditHtml
in interface RenderableBuildConfiguration
getEditHtml
in class BaseBuildConfigurationAwarePlugin
buildConfiguration
- 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.Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.