public abstract class AbstractWebRepositoryViewer extends BaseConfigurablePlugin implements WebRepositoryViewer
moduleDescriptor, templateRenderer
SELECTED_WEB_REPOSITORY_VIEWER, WEB_REPOSITORY
Constructor and Description |
---|
AbstractWebRepositoryViewer() |
Modifier and Type | Method and Description |
---|---|
String |
getKey()
The full complete plugin key for the repository viewer
|
String |
getName()
The name of the web repository viewer, as displayed in the UI.
|
String |
getShortKey()
The shorter version fo the plugin key (without prefix and should not contain any ':')
|
Collection<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 |
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, getEditHtml, getViewHtml, init, populateContextForEdit, populateContextForView, prepareConfigObject, setTemplateRenderer, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHtmlForCommitsFull, getHtmlForCommitsSummary
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
init
getEditHtml, getViewHtml
@NotNull public String getKey()
WebRepositoryViewer
getKey
in interface WebRepositoryViewer
@NotNull public String getShortKey()
WebRepositoryViewer
getShortKey
in interface WebRepositoryViewer
@NotNull public String getName()
WebRepositoryViewer
getName
in interface WebRepositoryViewer
@NotNull public Collection<String> getSupportedRepositories()
WebRepositoryViewer
Repository
classes that the web viewer currently supports.
If list is empty or null it assumes support for all repositories.getSupportedRepositories
in interface WebRepositoryViewer
public void populateFromParams(@NotNull ActionParametersMap params)
populateFromParams
in interface WebRepositoryViewer
params
- map of key (String), value (String []) pairs from actionpublic void populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfig
HierarchicalConfiguration
populateFromConfig
in interface ConvertibleFromConfig
@NotNull public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
HierarchicalConfiguration
from the current state of the objecttoConfiguration
in interface ConvertibleFromConfig
HierarchicalConfiguration
. Never nullCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.