com.atlassian.bamboo.webrepository
Class NoWebRepositoryViewer

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
      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, BuildConfigurationAwarePlugin, 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.BaseBuildConfigurationAwarePlugin
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(ResultsSummary resultsSummary, Repository repository)
          Renders the html to display the full commits on the changes tab.
 java.lang.String getHtmlForCommitsSummary(ResultsSummary resultsSummary, 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
customizeBuildRequirements, removeBuildRequirements
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
addDefaultValues, init, isConfigurationMissing, populateContextForEdit, populateContextForView, prepareConfigObject, 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
customizeBuildRequirements, removeBuildRequirements
 
Methods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, prepareConfigObject, 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
                                              ResultsSummary resultsSummary,
                                              Repository repository)
Description copied from interface: WebRepositoryViewer
Renders the html to display the full commits on the changes tab.

Parameters:
resultsSummary - 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
                                                 ResultsSummary resultsSummary,
                                                 Repository repository)
Description copied from interface: WebRepositoryViewer
Renders the html to display a summary of the commits on the Build Results Summary tab.

Parameters:
resultsSummary - 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: BuildConfigurationAwarePlugin
Returns the HTML that represents the view of the repository configuration

Specified by:
getViewHtml in interface BuildConfigurationAwarePlugin
Overrides:
getViewHtml in class BaseBuildConfigurationAwarePlugin
Returns:
HTML string. May be null.

getEditHtml

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

Specified by:
getEditHtml in interface BuildConfigurationAwarePlugin
Overrides:
getEditHtml in class BaseBuildConfigurationAwarePlugin
Parameters:
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.
Returns:
HTML string. May be null.


Copyright © 2010 Atlassian. All Rights Reserved.