public class NoWebRepositoryViewer extends AbstractWebRepositoryViewer implements CommitUrlProvider
Modifier and Type | Field and Description |
---|---|
static String |
PLUGIN_KEY |
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
|
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, toConfiguration
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, 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
populateFromConfig, toConfiguration
public static final String PLUGIN_KEY
public String getHtmlForCommitsFull(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryDefinition)
WebRepositoryViewer
getHtmlForCommitsFull
in interface 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
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 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.@Nullable 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 from@Nullable public String getWebRepositoryUrlForRevision(String revisionId, @NotNull RepositoryData repositoryData)
CommitUrlProvider
getWebRepositoryUrlForRevision
in interface CommitUrlProvider
revisionId
- the revision to links torepositoryData
- the repository type the commit came frompublic Map<Commit,String> getWebRepositoryUrlForCommits(Collection<Commit> commits, RepositoryData repositoryDefinition)
CommitUrlProvider
getWebRepositoryUrlForCommits
in interface CommitUrlProvider
commits
- to generate links forrepositoryDefinition
- the repository type the commit came fromCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.