|
||||||||||
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 com.atlassian.bamboo.plugins.hg.HgWebRepositoryViewer
public class HgWebRepositoryViewer
Field Summary | |
---|---|
static java.util.Map<java.lang.String,HgWebRepositoryUrlProvider> |
urlProviders
|
static java.lang.String |
WEB_REPOSITORY_SCHEME
|
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 | |
---|---|
HgWebRepositoryViewer()
|
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 |
getHtmlForCommitsFull(ResultsSummary resultsSummary,
RepositoryChangeset repositoryChangeset,
RepositoryDefinition 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 |
getHtmlForCommitsSummary(ResultsSummary resultsSummary,
RepositoryChangeset repositoryChangeset,
RepositoryDefinition repositoryData)
Renders the html to display a summary of the commits on the Build Results Summary tab. |
java.lang.String |
getHtmlForCommitsSummary(ResultsSummary resultsSummary,
RepositoryChangeset repositoryChangeset,
RepositoryDefinition repositoryData,
int maxChanges)
Renders the html to display a summary of the commits on the Build Results Summary tab. |
java.lang.String |
getSchemeName()
|
java.util.Collection<HgWebRepositoryUrlProvider> |
getSchemeTypes()
|
java.util.Collection<java.lang.String> |
getSupportedRepositories()
The keys for the Repository classes that the web viewer currently supports. |
java.lang.String |
getWebRepositoryUrlForCommit(Commit commit,
RepositoryData repositoryData)
Provide the url to link to the given commit in the web repository |
java.util.Map<Commit,java.lang.String> |
getWebRepositoryUrlForCommits(java.util.Collection<Commit> commits,
RepositoryData repositoryData)
Used in defaultCommitSummaryView.ftl |
java.lang.String |
getWebRepositoryUrlForDiff(CommitFile file,
RepositoryData repositoryData)
Used in defaultCommitView.ftl |
java.lang.String |
getWebRepositoryUrlForFile(CommitFile file,
RepositoryData repositoryData)
Used in defaultCommitView.ftl |
java.lang.String |
getWebRepositoryUrlForRevision(CommitFile file,
RepositoryData repositoryData)
Used in defaultCommitView.ftl |
java.lang.String |
getWebRepositoryUrlForRevision(java.lang.String revisionId,
RepositoryData repositoryDefinition)
Provide the url to link to the given revision in the web repository |
void |
init(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
Initialises the Plugin with the plugin module descriptor |
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 |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Validates the properties in the BuildConfiguration object. |
Methods inherited from class com.atlassian.bamboo.webrepository.AbstractWebRepositoryViewer |
---|
getKey, getName, getShortKey |
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, isConfigurationMissing, populateContextForEdit, populateContextForView, prepareConfigObject, setTemplateRenderer |
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 |
---|
getKey, getName, getShortKey |
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin |
---|
customizeBuildRequirements, removeBuildRequirements |
Methods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin |
---|
addDefaultValues, prepareConfigObject |
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration |
---|
getEditHtml, getViewHtml |
Field Detail |
---|
public static final java.lang.String WEB_REPOSITORY_SCHEME
public static final java.util.Map<java.lang.String,HgWebRepositoryUrlProvider> urlProviders
Constructor Detail |
---|
public HgWebRepositoryViewer()
Method Detail |
---|
public java.util.Collection<HgWebRepositoryUrlProvider> getSchemeTypes()
public void init(@NotNull com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
InitablePluginModule
init
in interface InitablePluginModule
init
in class BaseBuildConfigurationAwarePlugin
moduleDescriptor
- Plugin module descriptor@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
getSupportedRepositories
in class AbstractWebRepositoryViewer
public java.lang.String getWebRepositoryUrlForCommit(Commit commit, @NotNull RepositoryData repositoryData)
CommitUrlProvider
getWebRepositoryUrlForCommit
in interface CommitUrlProvider
commit
- the commit to links torepositoryData
- the repository type the commit came from
public java.lang.String getWebRepositoryUrlForRevision(java.lang.String revisionId, @NotNull RepositoryData repositoryDefinition)
CommitUrlProvider
getWebRepositoryUrlForRevision
in interface CommitUrlProvider
revisionId
- the revision to links torepositoryDefinition
- the repository type the commit came from
public java.lang.String getHtmlForCommitsFull(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryData)
WebRepositoryViewer
getHtmlForCommitsFull
in interface WebRepositoryViewer
getHtmlForCommitsFull
in class AbstractWebRepositoryViewer
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 RepositoryDefinition repositoryData)
WebRepositoryViewer
getHtmlForCommitsSummary
in interface WebRepositoryViewer
resultsSummary
- the summary to show commits for
public java.lang.String getHtmlForCommitsFull(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryDefinition 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 RepositoryDefinition 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.
public java.lang.String getHtmlForCommitsSummary(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryData, int maxChanges)
WebRepositoryViewer
getHtmlForCommitsSummary
in interface WebRepositoryViewer
getHtmlForCommitsSummary
in class AbstractWebRepositoryViewer
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.
public void populateFromParams(@NotNull ActionParametersMap params)
AbstractWebRepositoryViewer
populateFromParams
in interface WebRepositoryViewer
populateFromParams
in class AbstractWebRepositoryViewer
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
populateFromConfig
in class AbstractWebRepositoryViewer
@NotNull public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
HierarchicalConfiguration
from the current state of the object
toConfiguration
in interface ConvertibleFromConfig
toConfiguration
in class AbstractWebRepositoryViewer
HierarchicalConfiguration
. Never null@NotNull public ErrorCollection validate(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
BuildConfiguration
object. The name of the properties match those passed
in through the form fragments in RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
template.
validate
in interface BuildConfigurationAwarePlugin
validate
in class BaseBuildConfigurationAwarePlugin
buildConfiguration
- - @NotNull
ErrorCollection
keyed by the field name. @NotNullpublic java.lang.String getWebRepositoryUrlForFile(@NotNull CommitFile file, RepositoryData repositoryData)
public java.lang.String getWebRepositoryUrlForRevision(CommitFile file, RepositoryData repositoryData)
public java.lang.String getWebRepositoryUrlForDiff(CommitFile file, RepositoryData repositoryData)
public java.util.Map<Commit,java.lang.String> getWebRepositoryUrlForCommits(java.util.Collection<Commit> commits, RepositoryData repositoryData)
public java.lang.String getSchemeName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |