Class DefaultWebRepositoryViewer
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
-
- com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
-
- com.atlassian.bamboo.webrepository.AbstractWebRepositoryViewer
-
- com.atlassian.bamboo.webrepository.DefaultWebRepositoryViewer
-
- All Implemented Interfaces:
ConvertibleFromConfig,InitablePluginModule,BambooPluginModule,BuildConfigurationAwarePlugin,ConfigurablePlugin,RenderableBuildConfiguration,CommitUrlProvider,DeploymentsAwareCommitUrlProvider,WebRepositoryViewer,Serializable
@Deprecated @Component public class DefaultWebRepositoryViewer extends AbstractWebRepositoryViewer implements DeploymentsAwareCommitUrlProvider
Deprecated.since 5.14 it implements old interfaceThe code to show the commits etc when no web repository- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringWEB_REPOSITORY_NAMEDeprecated.static StringWEB_REPOSITORY_URLDeprecated.-
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
Constructors Constructor Description DefaultWebRepositoryViewer()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetHtmlForCommitsFull(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryData)Deprecated.Renders the html to display the full commits on the changes tab.StringgetHtmlForCommitsSummary(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryData, int maxChanges)Deprecated.Renders the html to display a summary of the commits on the Build Results Summary tab.@NotNull Collection<String>getSupportedRepositories()Deprecated.The keys for theRepositoryclasses that the web viewer currently supports.StringgetWebRepositoryName()Deprecated.StringgetWebRepositoryUrl()Deprecated.@Nullable StringgetWebRepositoryUrlForCommit(Commit commit, @NotNull RepositoryData repositoryData)Deprecated.Provide the url to link to the given commit in the web repositoryMap<Commit,String>getWebRepositoryUrlForCommits(Collection<Commit> commits, RepositoryData repositoryDefinition)Deprecated.Provide the urls to link all the given commits in the web repositoryMap<DeploymentVersionVcsCommit,String>getWebRepositoryUrlForDeploymentVersionCommits(Collection<DeploymentVersionVcsCommit> commits, RepositoryData repositoryData)Deprecated.Provide the urls to link all the given commits in the web repository@Nullable StringgetWebRepositoryUrlForDiff(CommitFile file, RepositoryData repositoryData)Deprecated.@Nullable StringgetWebRepositoryUrlForFile(@NotNull CommitFile file, RepositoryData repositoryData)Deprecated.Generate the link to a given file in a given repository@Nullable StringgetWebRepositoryUrlForRevision(CommitFile file, RepositoryData repositoryData)Deprecated.StringgetWebRepositoryUrlForRevision(String revisionId, @NotNull RepositoryData repositoryDefinition)Deprecated.Provide the url to link to the given revision in the web repositoryvoidpopulateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)Deprecated.Update the current object with data in theHierarchicalConfigurationvoidpopulateFromParams(@NotNull ActionParametersMap params)Deprecated.takes the map of config data from action and extracts the parameters it needsvoidsetWebRepositoryName(String webRepositoryName)Deprecated.voidsetWebRepositoryUrl(String webRepositoryUrl)Deprecated.@NotNull org.apache.commons.configuration.HierarchicalConfigurationtoConfiguration()Deprecated.Generate aHierarchicalConfigurationfrom the current state of the object@NotNull ErrorCollectionvalidate(@NotNull BuildConfiguration buildConfiguration)Deprecated.Validates the properties in theBuildConfigurationobject.-
Methods inherited from class com.atlassian.bamboo.webrepository.AbstractWebRepositoryViewer
getKey, getName, getShortKey
-
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
customizeBuildRequirements, removeBuildRequirements
-
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
addDefaultValues, getEditHtml, getTemplateRenderer, getViewHtml, init, 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.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, isConfigurationMissing, prepareConfigObject
-
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
customizeBuildRequirements, removeBuildRequirements
-
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
-
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getEditHtml, getViewHtml
-
Methods inherited from interface com.atlassian.bamboo.webrepository.WebRepositoryViewer
getKey, getName, getShortKey
-
-
-
-
Field Detail
-
WEB_REPOSITORY_URL
public static final String WEB_REPOSITORY_URL
Deprecated.- See Also:
- Constant Field Values
-
WEB_REPOSITORY_NAME
public static final String WEB_REPOSITORY_NAME
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSupportedRepositories
@NotNull public @NotNull Collection<String> getSupportedRepositories()
Deprecated.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- Overrides:
getSupportedRepositoriesin classAbstractWebRepositoryViewer- Returns:
- a list of repositories which can be rendered by this WebRepositoryViewer.
-
getHtmlForCommitsFull
public String getHtmlForCommitsFull(@NotNull @NotNull ResultsSummary resultsSummary, @NotNull @NotNull RepositoryChangeset repositoryChangeset, @NotNull @NotNull RepositoryData repositoryData)
Deprecated.Description copied from interface:WebRepositoryViewerRenders the html to display the full commits on the changes tab.- Specified by:
getHtmlForCommitsFullin interfaceWebRepositoryViewer- Parameters:
resultsSummary- the summary to show commits forrepositoryData- the commits belong to aka the plans repository- Returns:
- Html to be displayed on the UI in the Changes Tab.
-
getHtmlForCommitsSummary
public String getHtmlForCommitsSummary(@NotNull @NotNull ResultsSummary resultsSummary, @NotNull @NotNull RepositoryChangeset repositoryChangeset, @NotNull @NotNull RepositoryData repositoryData, int maxChanges)
Deprecated.Description copied from interface:WebRepositoryViewerRenders the html to display a summary of the commits on the Build Results Summary tab.- Specified by:
getHtmlForCommitsSummaryin interfaceWebRepositoryViewer- Parameters:
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.- Returns:
- Html to displayed on the UI in the Build Results Summary Tab.
-
populateFromParams
public void populateFromParams(@NotNull @NotNull ActionParametersMap params)Deprecated.takes the map of config data from action and extracts the parameters it needs- Specified by:
populateFromParamsin interfaceWebRepositoryViewer- Overrides:
populateFromParamsin classAbstractWebRepositoryViewer- Parameters:
params- map of key (String), value (String []) pairs from action
-
populateFromConfig
public void populateFromConfig(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration config)Deprecated.Description copied from interface:ConvertibleFromConfigUpdate the current object with data in theHierarchicalConfiguration- Specified by:
populateFromConfigin interfaceConvertibleFromConfig- Overrides:
populateFromConfigin classAbstractWebRepositoryViewer
-
toConfiguration
@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
Deprecated.Description copied from interface:ConvertibleFromConfigGenerate aHierarchicalConfigurationfrom the current state of the object- Specified by:
toConfigurationin interfaceConvertibleFromConfig- Overrides:
toConfigurationin classAbstractWebRepositoryViewer- Returns:
- Always returns an
HierarchicalConfiguration. Never null
-
validate
@NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull BuildConfiguration buildConfiguration)
Deprecated.Description copied from interface:BuildConfigurationAwarePluginValidates the properties in theBuildConfigurationobject. The name of the properties match those passed in through the form fragments inRenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)template.- Specified by:
validatein interfaceBuildConfigurationAwarePlugin- Overrides:
validatein classBaseBuildConfigurationAwarePlugin- Parameters:
buildConfiguration- -- Returns:
ErrorCollectionkeyed by the field name.
-
getWebRepositoryUrlForFile
@Nullable public @Nullable String getWebRepositoryUrlForFile(@NotNull @NotNull CommitFile file, RepositoryData repositoryData)
Deprecated.Generate the link to a given file in a given repository- Parameters:
file- The file we want to link to.repositoryData- For the build (and hence the repository file belongs to).- Returns:
- The url
-
getWebRepositoryUrlForRevision
@Nullable public @Nullable String getWebRepositoryUrlForRevision(CommitFile file, RepositoryData repositoryData)
Deprecated.
-
getWebRepositoryUrlForDiff
@Nullable public @Nullable String getWebRepositoryUrlForDiff(CommitFile file, RepositoryData repositoryData)
Deprecated.
-
getWebRepositoryUrlForCommits
public Map<Commit,String> getWebRepositoryUrlForCommits(Collection<Commit> commits, RepositoryData repositoryDefinition)
Deprecated.Description copied from interface:CommitUrlProviderProvide the urls to link all the given commits in the web repository- Specified by:
getWebRepositoryUrlForCommitsin interfaceCommitUrlProvider- Parameters:
commits- to generate links forrepositoryDefinition- the repository type the commit came from- Returns:
- a map of the commit to its url.
-
getWebRepositoryUrlForDeploymentVersionCommits
public Map<DeploymentVersionVcsCommit,String> getWebRepositoryUrlForDeploymentVersionCommits(Collection<DeploymentVersionVcsCommit> commits, RepositoryData repositoryData)
Deprecated.Description copied from interface:DeploymentsAwareCommitUrlProviderProvide the urls to link all the given commits in the web repository- Specified by:
getWebRepositoryUrlForDeploymentVersionCommitsin interfaceDeploymentsAwareCommitUrlProvider- Parameters:
commits- to generate links forrepositoryData- the repository the commit came from- Returns:
- a map of the commit to its url.
-
getWebRepositoryUrlForCommit
@Nullable public @Nullable String getWebRepositoryUrlForCommit(Commit commit, @NotNull @NotNull RepositoryData repositoryData)
Deprecated.Description copied from interface:CommitUrlProviderProvide the url to link to the given commit in the web repository- Specified by:
getWebRepositoryUrlForCommitin interfaceCommitUrlProvider- Parameters:
commit- the commit to links torepositoryData- the repository type the commit came from- Returns:
- a full url string.
-
getWebRepositoryUrlForRevision
public String getWebRepositoryUrlForRevision(String revisionId, @NotNull @NotNull RepositoryData repositoryDefinition)
Deprecated.Description copied from interface:CommitUrlProviderProvide the url to link to the given revision in the web repository- Specified by:
getWebRepositoryUrlForRevisionin interfaceCommitUrlProvider- Parameters:
revisionId- the revision to links torepositoryDefinition- the repository type the commit came from- Returns:
- a full url string.
-
getWebRepositoryUrl
public String getWebRepositoryUrl()
Deprecated.
-
setWebRepositoryUrl
public void setWebRepositoryUrl(String webRepositoryUrl)
Deprecated.
-
getWebRepositoryName
public String getWebRepositoryName()
Deprecated.
-
setWebRepositoryName
public void setWebRepositoryName(String webRepositoryName)
Deprecated.
-
-