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 |
---|---|
@NotNull String |
getKey()
The full complete plugin key for the repository viewer
|
@NotNull String |
getName()
The name of the web repository viewer, as displayed in the UI.
|
@NotNull String |
getShortKey()
The shorter version fo the plugin key (without prefix and should not contain any ':')
|
@NotNull Collection<String> |
getSupportedRepositories()
The keys for the
Repository classes that the web viewer currently supports. |
void |
populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
Update the current object with data in the
HierarchicalConfiguration |
void |
populateFromParams(@NotNull ActionParametersMap params)
takes the map of config data from action and extracts the parameters it needs
|
@NotNull org.apache.commons.configuration.HierarchicalConfiguration |
toConfiguration()
Generate a
HierarchicalConfiguration from the current state of the object |
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, getEditHtml, getTemplateRenderer, 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 @NotNull String getKey()
WebRepositoryViewer
getKey
in interface WebRepositoryViewer
@NotNull public @NotNull String getShortKey()
WebRepositoryViewer
getShortKey
in interface WebRepositoryViewer
@NotNull public @NotNull String getName()
WebRepositoryViewer
getName
in interface WebRepositoryViewer
@NotNull public @NotNull 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 @NotNull ActionParametersMap params)
populateFromParams
in interface WebRepositoryViewer
params
- map of key (String), value (String []) pairs from actionpublic void populateFromConfig(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfig
HierarchicalConfiguration
populateFromConfig
in interface ConvertibleFromConfig
@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
HierarchicalConfiguration
from the current state of the objecttoConfiguration
in interface ConvertibleFromConfig
HierarchicalConfiguration
. Never nullCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.