Class AbstractWebRepositoryViewer
java.lang.Object
com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
com.atlassian.bamboo.webrepository.AbstractWebRepositoryViewer
- All Implemented Interfaces:
ConvertibleFromConfig,InitablePluginModule,BambooPluginModule,BuildConfigurationAwarePlugin,ConfigurablePlugin,RenderableBuildConfiguration,WebRepositoryViewer,Serializable
- Direct Known Subclasses:
DefaultWebRepositoryViewer,FisheyeWebRepositoryViewer,LegacyStashWebRepositoryViewer,NoWebRepositoryViewer,StashWebRepositoryViewer
public abstract class AbstractWebRepositoryViewer
extends BaseConfigurablePlugin
implements WebRepositoryViewer
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
moduleDescriptor, templateRendererFields inherited from interface com.atlassian.bamboo.webrepository.WebRepositoryViewer
SELECTED_WEB_REPOSITORY_VIEWER, WEB_REPOSITORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetKey()The full complete plugin key for the repository viewer@NotNull StringgetName()The name of the web repository viewer, as displayed in the UI.@NotNull StringThe shorter version fo the plugin key (without prefix and should not contain any ':')@NotNull Collection<String>The keys for theRepositoryclasses that the web viewer currently supports.voidpopulateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config) Update the current object with data in theHierarchicalConfigurationvoidpopulateFromParams(@NotNull ActionParametersMap params) takes the map of config data from action and extracts the parameters it needs@NotNull org.apache.commons.configuration.HierarchicalConfigurationGenerate aHierarchicalConfigurationfrom the current state of the objectMethods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
customizeBuildRequirements, removeBuildRequirementsMethods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
addDefaultValues, getEditHtml, getTemplateRenderer, getViewHtml, init, populateContextForEdit, populateContextForView, prepareConfigObject, setTemplateRenderer, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, isConfigurationMissing, prepareConfigObject, validateMethods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
customizeBuildRequirements, removeBuildRequirementsMethods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
initMethods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getEditHtml, getViewHtmlMethods inherited from interface com.atlassian.bamboo.webrepository.WebRepositoryViewer
getHtmlForCommitsFull, getHtmlForCommitsSummary
-
Constructor Details
-
AbstractWebRepositoryViewer
public AbstractWebRepositoryViewer()
-
-
Method Details
-
getKey
Description copied from interface:WebRepositoryViewerThe full complete plugin key for the repository viewer- Specified by:
getKeyin interfaceWebRepositoryViewer- Returns:
- the key for the plugin
-
getShortKey
Description copied from interface:WebRepositoryViewerThe shorter version fo the plugin key (without prefix and should not contain any ':')- Specified by:
getShortKeyin interfaceWebRepositoryViewer- Returns:
- the shorter key for this plugin.
-
getName
Description copied from interface:WebRepositoryViewerThe name of the web repository viewer, as displayed in the UI.- Specified by:
getNamein interfaceWebRepositoryViewer- Returns:
- The name of the repository viewer
-
getSupportedRepositories
Description copied from interface:WebRepositoryViewerThe keys for theRepositoryclasses that the web viewer currently supports. If list is empty or null it assumes support for all repositories.- Specified by:
getSupportedRepositoriesin interfaceWebRepositoryViewer- Returns:
- a list of repositories which can be rendered by this WebRepositoryViewer.
-
populateFromParams
takes the map of config data from action and extracts the parameters it needs- Specified by:
populateFromParamsin interfaceWebRepositoryViewer- Parameters:
params- map of key (String), value (String []) pairs from action
-
populateFromConfig
public void populateFromConfig(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration config) Description copied from interface:ConvertibleFromConfigUpdate the current object with data in theHierarchicalConfiguration- Specified by:
populateFromConfigin interfaceConvertibleFromConfig
-
toConfiguration
@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()Description copied from interface:ConvertibleFromConfigGenerate aHierarchicalConfigurationfrom the current state of the object- Specified by:
toConfigurationin interfaceConvertibleFromConfig- Returns:
- Always returns an
HierarchicalConfiguration. Never null
-