com.atlassian.bamboo.webrepository
Class NoWebRepositoryViewer

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
      extended by com.atlassian.bamboo.webrepository.AbstractWebRepositoryViewer
          extended by com.atlassian.bamboo.webrepository.NoWebRepositoryViewer
All Implemented Interfaces:
ConvertibleFromConfig, InitablePluginModule, BambooPluginModule, ConfigurablePlugin, WebRepositoryViewer, java.io.Serializable

public class NoWebRepositoryViewer
extends AbstractWebRepositoryViewer

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
moduleDescriptor, templateRenderer
 
Fields inherited from interface com.atlassian.bamboo.webrepository.WebRepositoryViewer
SELECTED_WEB_REPOSITORY_VIEWER
 
Constructor Summary
NoWebRepositoryViewer()
           
 
Method Summary
 java.lang.String getEditHtml(BuildConfiguration buildConfiguration, Plan plan)
          Returns HTML that represents the form fragment for editing the repository.
 java.lang.String getHtmlForCommitsFull(ExtendedBuildResultsSummary buildResultsSummary, Repository repository)
          Renders the html to display the full commits on the changes tab.
 java.lang.String getHtmlForCommitsSummary(ExtendedBuildResultsSummary buildResultsSummary, Repository repository)
          Renders the html to display a summary of the commits on the Build Results Summary tab.
 java.lang.String getViewHtml(Plan plan)
          Returns the HTML that represents the view of the repository configuration
 
Methods inherited from class com.atlassian.bamboo.webrepository.AbstractWebRepositoryViewer
getKey, getName, getShortKey, getSupportedRepositories, populateFromConfig, populateFromParams, toConfiguration
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
addDefaultValues, customizeBuildRequirements, init, populateContextForEdit, populateContextForView, prepareConfigObject, removeBuildRequirements, setTemplateRenderer, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
addDefaultValues, customizeBuildRequirements, prepareConfigObject, removeBuildRequirements, validate
 
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
 

Constructor Detail

NoWebRepositoryViewer

public NoWebRepositoryViewer()
Method Detail

getHtmlForCommitsFull

public java.lang.String getHtmlForCommitsFull(@NotNull
                                              ExtendedBuildResultsSummary buildResultsSummary,
                                              Repository repository)
Description copied from interface: WebRepositoryViewer
Renders the html to display the full commits on the changes tab.

Parameters:
buildResultsSummary - the summary to show commits for
repository - the commits belong to aka the plans repository
Returns:
Html to be displayed on the UI in the Changes Tab.

getHtmlForCommitsSummary

public java.lang.String getHtmlForCommitsSummary(@NotNull
                                                 ExtendedBuildResultsSummary buildResultsSummary,
                                                 Repository repository)
Description copied from interface: WebRepositoryViewer
Renders the html to display a summary of the commits on the Build Results Summary tab.

Parameters:
buildResultsSummary - the summary to show commits for
repository - the commits belong to aka the plans repository
Returns:
Html to displayed on the UI in the Build Results Summary Tab.

getViewHtml

public java.lang.String getViewHtml(@NotNull
                                    Plan plan)
Description copied from interface: ConfigurablePlugin
Returns the HTML that represents the view of the repository configuration

Specified by:
getViewHtml in interface ConfigurablePlugin
Overrides:
getViewHtml in class BaseConfigurablePlugin
Returns:
HTML string. May be null.

getEditHtml

public java.lang.String getEditHtml(@NotNull
                                    BuildConfiguration buildConfiguration,
                                    @NotNull
                                    Plan plan)
Description copied from interface: ConfigurablePlugin
Returns HTML that represents the form fragment for editing the repository. No opening and closing form tags are required.

Specified by:
getEditHtml in interface ConfigurablePlugin
Overrides:
getEditHtml in class BaseConfigurablePlugin
Parameters:
buildConfiguration - BuildConfiguration for which edit HTML has to be rendered.
Returns:
HTML string. May be null.


Copyright © 2010 Atlassian. All Rights Reserved.