|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin com.atlassian.bamboo.v2.build.BaseConfigurablePlugin com.atlassian.bamboo.webrepository.AbstractWebRepositoryViewer
public abstract class AbstractWebRepositoryViewer
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, WEB_REPOSITORY |
Constructor Summary | |
---|---|
AbstractWebRepositoryViewer()
|
Method Summary | |
---|---|
java.lang.String |
getHtmlForCommitsFull(ResultsSummary resultsSummary,
RepositoryChangeset repositoryChangeset,
RepositoryData repositoryData)
Renders the html to display the full commits on the changes tab. |
java.lang.String |
getHtmlForCommitsSummary(ResultsSummary resultsSummary,
RepositoryChangeset repositoryChangeset,
RepositoryData repositoryData,
int maxChanges)
Renders the html to display a summary of the commits on the Build Results Summary tab. |
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, customizeBuildRequirements, removeBuildRequirements, 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, getHtmlForCommitsSummary |
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 |
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration |
---|
getEditHtml, getViewHtml |
Constructor Detail |
---|
public AbstractWebRepositoryViewer()
Method Detail |
---|
@NotNull public java.lang.String getKey()
WebRepositoryViewer
getKey
in interface WebRepositoryViewer
@NotNull public java.lang.String getShortKey()
WebRepositoryViewer
getShortKey
in interface WebRepositoryViewer
@NotNull public java.lang.String getName()
WebRepositoryViewer
getName
in interface WebRepositoryViewer
@NotNull public java.util.Collection<java.lang.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 object
toConfiguration
in interface ConvertibleFromConfig
HierarchicalConfiguration
. Never nullpublic java.lang.String getHtmlForCommitsFull(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryData)
WebRepositoryViewer
getHtmlForCommitsFull
in interface WebRepositoryViewer
resultsSummary
- the summary to show commits forrepositoryData
- the commits belong to aka the plans repository
public java.lang.String getHtmlForCommitsSummary(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryData, int maxChanges)
WebRepositoryViewer
getHtmlForCommitsSummary
in interface WebRepositoryViewer
resultsSummary
- the summary to show commits forrepositoryData
- the commits belong to aka the plans repositorymaxChanges
- maximum number of commits to be shown. Negative value means that all commits should be shown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |