com.atlassian.bamboo.webrepository
Class AbstractWebRepositoryViewer

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
All Implemented Interfaces:
ConvertibleFromConfig, InitablePluginModule, BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, WebRepositoryViewer, java.io.Serializable
Direct Known Subclasses:
DefaultWebRepositoryViewer, FisheyeWebRepositoryViewer, HgWebRepositoryViewer, NoWebRepositoryViewer

public abstract class AbstractWebRepositoryViewer
extends BaseConfigurablePlugin
implements WebRepositoryViewer

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
AbstractWebRepositoryViewer()
           
 
Method Summary
 java.lang.String getKey()
          The full complete plugin key for the repository viewer
 java.lang.String getName()
          The name of the web repository viewer, as displayed in the UI.
 java.lang.String getShortKey()
          The shorter version fo the plugin key (without prefix & should not contain any ':')
 java.util.Collection<java.lang.String> getSupportedRepositories()
          The keys for the Repository classes that the web viewer currently supports.
 void populateFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
          Update the current object with data in the HierarchicalConfiguration
 void populateFromParams(ActionParametersMap params)
          takes the map of config data from action and extracts the parameters it needs
 org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
          Generate a HierarchicalConfiguration from the current state of the object
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
customizeBuildRequirements, removeBuildRequirements
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
addDefaultValues, getEditHtml, getViewHtml, 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.webrepository.WebRepositoryViewer
getHtmlForCommitsFull, getHtmlForCommitsSummary
 
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
customizeBuildRequirements, removeBuildRequirements
 
Methods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, getEditHtml, getViewHtml, prepareConfigObject, validate
 
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
 

Constructor Detail

AbstractWebRepositoryViewer

public AbstractWebRepositoryViewer()
Method Detail

getKey

@NotNull
public java.lang.String getKey()
Description copied from interface: WebRepositoryViewer
The full complete plugin key for the repository viewer

Specified by:
getKey in interface WebRepositoryViewer
Returns:
the key for the plugin

getShortKey

@NotNull
public java.lang.String getShortKey()
Description copied from interface: WebRepositoryViewer
The shorter version fo the plugin key (without prefix & should not contain any ':')

Specified by:
getShortKey in interface WebRepositoryViewer
Returns:
the shorter key for this plugin.

getName

@NotNull
public java.lang.String getName()
Description copied from interface: WebRepositoryViewer
The name of the web repository viewer, as displayed in the UI.

Specified by:
getName in interface WebRepositoryViewer
Returns:
The name of the repository viewer

getSupportedRepositories

@NotNull
public java.util.Collection<java.lang.String> getSupportedRepositories()
Description copied from interface: WebRepositoryViewer
The keys for the Repository classes that the web viewer currently supports. If list is empty or null it assumes support for all repositories.

Specified by:
getSupportedRepositories in interface WebRepositoryViewer
Returns:
a list of repositories which can be rendered by this WebRepositoryViewer.

populateFromParams

public void populateFromParams(@NotNull
                               ActionParametersMap params)
takes the map of config data from action and extracts the parameters it needs

Specified by:
populateFromParams in interface WebRepositoryViewer
Parameters:
params - map of key (String), value (String []) pairs from action

populateFromConfig

public void populateFromConfig(@NotNull
                               org.apache.commons.configuration.HierarchicalConfiguration config)
Description copied from interface: ConvertibleFromConfig
Update the current object with data in the HierarchicalConfiguration

Specified by:
populateFromConfig in interface ConvertibleFromConfig

toConfiguration

@NotNull
public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
Description copied from interface: ConvertibleFromConfig
Generate a HierarchicalConfiguration from the current state of the object

Specified by:
toConfiguration in interface ConvertibleFromConfig
Returns:
Always returns an HierarchicalConfiguration. Never null


Copyright © 2010 Atlassian. All Rights Reserved.