Class LegacyStashWebRepositoryViewer
java.lang.Object
com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
com.atlassian.bamboo.webrepository.AbstractWebRepositoryViewer
com.atlassian.bamboo.webrepository.stash.LegacyStashWebRepositoryViewer
- All Implemented Interfaces:
ConvertibleFromConfig
,InitablePluginModule
,BambooPluginModule
,BuildConfigurationAwarePlugin
,ConfigurablePlugin
,RenderableBuildConfiguration
,CommitUrlProvider
,DeploymentsAwareCommitUrlProvider
,WebRepositoryViewer
,Serializable
@Deprecated
public class LegacyStashWebRepositoryViewer
extends AbstractWebRepositoryViewer
implements DeploymentsAwareCommitUrlProvider
Deprecated.
use LegacyStashWebRepositoryViewer from new Stash plugin
URL FORMATS:
file
https://caviardog.atlassian.com/caviar/projects/STASH/repos/stash/browse/webapp/default/src/main/webapp/static/page/repository/editRepository.soy?at=8127e6af149297ae95219c3b0a202a84d9a20b33
revision/changeset
https://caviardog.atlassian.com/caviar/projects/STASH/repos/stash/commits/8127e6af149297ae95219c3b0a202a84d9a20b33
diff
https://caviardog.atlassian.com/caviar/projects/STASH/repos/stash/diff/webapp/default/src/main/webapp/static/page/repository/editRepository.soy?at=8127e6af149297ae95219c3b0a202a84d9a20b33&until=8127e6af149297ae95219c3b0a202a84d9a20b33
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Deprecated.protected static final String
Deprecated.protected static final String
Deprecated.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
-
Method Summary
Modifier and TypeMethodDescriptiongetHtmlForCommitsFull
(@NotNull ResultsSummary resultsSummary, @NotNull RepositoryChangeset repositoryChangeset, @NotNull RepositoryData repositoryData) Deprecated.Renders the html to display the full commits on the changes tab.getHtmlForCommitsSummary
(@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.Deprecated.Deprecated.Deprecated.@Nullable String
getStashUrlForFile
(@NotNull CommitFile file, RepositoryData repositoryData) Deprecated.Generate the link to a given file in the selected stash repository@Nullable String
getStashUrlForFileAtItsRevision
(@NotNull CommitFile file, RepositoryData repositoryData) Deprecated.Generate the link to a given file in the selected stash repository at the revision pointed by the commit@Nullable String
getStashUrlForFileDiff
(@NotNull CommitFile file, RepositoryData repositoryData) Deprecated.Generate the link to a diff between given file and its direct ancestor@NotNull Collection<String>
Deprecated.The keys for theRepository
classes that the web viewer currently supports.@Nullable String
getWebRepositoryUrlForCommit
(Commit commit, @NotNull RepositoryData repositoryData) Deprecated.Provide the url to link to the given commit in the web repositorygetWebRepositoryUrlForCommits
(Collection<Commit> commits, RepositoryData repositoryDefinition) Deprecated.Provide the urls to link all the given commits in the web repositorygetWebRepositoryUrlForDeploymentVersionCommits
(Collection<DeploymentVersionVcsCommit> commits, RepositoryData repositoryData) Deprecated.Provide the urls to link all the given commits in the web repositorygetWebRepositoryUrlForDiff
(@NotNull CommitFile file, RepositoryData repositoryData) Deprecated.getWebRepositoryUrlForFile
(@NotNull CommitFile file, RepositoryData repositoryData) Deprecated.getWebRepositoryUrlForRevision
(@NotNull CommitFile file, RepositoryData repositoryData) Deprecated.@Nullable String
getWebRepositoryUrlForRevision
(String revisionId, @NotNull RepositoryData repositoryData) Deprecated.Provide the url to link to the given revision in the web repositoryvoid
populateFromConfig
(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config) Deprecated.Update the current object with data in theHierarchicalConfiguration
void
populateFromParams
(@NotNull ActionParametersMap params) Deprecated.takes the map of config data from action and extracts the parameters it needsvoid
setCustomVariableContext
(CustomVariableContext customVariableContext) Deprecated.void
setStashProject
(@Nullable String stashProject) Deprecated.void
setStashRepositoryName
(@Nullable String stashRepositoryName) Deprecated.void
setStashUrl
(@Nullable String stashUrl) Deprecated.void
setTextProvider
(com.opensymphony.xwork2.TextProvider textProvider) Deprecated.@NotNull org.apache.commons.configuration.HierarchicalConfiguration
Deprecated.Generate aHierarchicalConfiguration
from the current state of the object@NotNull ErrorCollection
validate
(@NotNull BuildConfiguration buildConfiguration) Deprecated.Validates the properties in theBuildConfiguration
object.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 Details
-
STASH_URL
Deprecated.- See Also:
-
STASH_PROJECT
Deprecated.- See Also:
-
STASH_REPOSITORY_NAME
Deprecated.- See Also:
-
-
Constructor Details
-
LegacyStashWebRepositoryViewer
public LegacyStashWebRepositoryViewer()Deprecated.
-
-
Method Details
-
getSupportedRepositories
Deprecated.Description copied from interface:WebRepositoryViewer
The keys for theRepository
classes that the web viewer currently supports. If list is empty or null it assumes support for all repositories.- Specified by:
getSupportedRepositories
in interfaceWebRepositoryViewer
- Overrides:
getSupportedRepositories
in 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:WebRepositoryViewer
Renders the html to display the full commits on the changes tab.- Specified by:
getHtmlForCommitsFull
in 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:WebRepositoryViewer
Renders the html to display a summary of the commits on the Build Results Summary tab.- Specified by:
getHtmlForCommitsSummary
in 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
Deprecated.Description copied from class:AbstractWebRepositoryViewer
takes the map of config data from action and extracts the parameters it needs- Specified by:
populateFromParams
in interfaceWebRepositoryViewer
- Overrides:
populateFromParams
in 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:ConvertibleFromConfig
Update the current object with data in theHierarchicalConfiguration
- Specified by:
populateFromConfig
in interfaceConvertibleFromConfig
- Overrides:
populateFromConfig
in classAbstractWebRepositoryViewer
-
toConfiguration
@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()Deprecated.Description copied from interface:ConvertibleFromConfig
Generate aHierarchicalConfiguration
from the current state of the object- Specified by:
toConfiguration
in interfaceConvertibleFromConfig
- Overrides:
toConfiguration
in classAbstractWebRepositoryViewer
- Returns:
- Always returns an
HierarchicalConfiguration
. Never null
-
validate
@NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull BuildConfiguration buildConfiguration) Deprecated.Description copied from interface:BuildConfigurationAwarePlugin
Validates the properties in theBuildConfiguration
object. 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:
validate
in interfaceBuildConfigurationAwarePlugin
- Overrides:
validate
in classBaseBuildConfigurationAwarePlugin
- Parameters:
buildConfiguration
- -- Returns:
ErrorCollection
keyed by the field name.
-
getWebRepositoryUrlForCommit
@Nullable public @Nullable String getWebRepositoryUrlForCommit(Commit commit, @NotNull @NotNull RepositoryData repositoryData) Deprecated.Description copied from interface:CommitUrlProvider
Provide the url to link to the given commit in the web repository- Specified by:
getWebRepositoryUrlForCommit
in interfaceCommitUrlProvider
- Parameters:
commit
- the commit to links torepositoryData
- the repository type the commit came from- Returns:
- a full url string.
-
getWebRepositoryUrlForRevision
@Nullable public @Nullable String getWebRepositoryUrlForRevision(String revisionId, @NotNull @NotNull RepositoryData repositoryData) Deprecated.Description copied from interface:CommitUrlProvider
Provide the url to link to the given revision in the web repository- Specified by:
getWebRepositoryUrlForRevision
in interfaceCommitUrlProvider
- Parameters:
revisionId
- the revision to links torepositoryData
- the repository type the commit came from- Returns:
- a full url string.
-
getWebRepositoryUrlForCommits
public Map<Commit,String> getWebRepositoryUrlForCommits(Collection<Commit> commits, RepositoryData repositoryDefinition) Deprecated.Description copied from interface:CommitUrlProvider
Provide the urls to link all the given commits in the web repository- Specified by:
getWebRepositoryUrlForCommits
in 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:DeploymentsAwareCommitUrlProvider
Provide the urls to link all the given commits in the web repository- Specified by:
getWebRepositoryUrlForDeploymentVersionCommits
in interfaceDeploymentsAwareCommitUrlProvider
- Parameters:
commits
- to generate links forrepositoryData
- the repository the commit came from- Returns:
- a map of the commit to its url.
-
getStashUrlForFile
@Nullable public @Nullable String getStashUrlForFile(@NotNull @NotNull CommitFile file, RepositoryData repositoryData) Deprecated.Generate the link to a given file in the selected stash repository- Parameters:
file
- The file we want to link to.repositoryData
- For the build (and hense the repository file belongs to).- Returns:
- The url
-
getStashUrlForFileAtItsRevision
@Nullable public @Nullable String getStashUrlForFileAtItsRevision(@NotNull @NotNull CommitFile file, RepositoryData repositoryData) Deprecated.Generate the link to a given file in the selected stash repository at the revision pointed by the commit- Parameters:
file
- The file we want to link to. It should contain the revision we want to link to.repositoryData
- For the build (and hense the repository file belongs to).- Returns:
- The url
-
getStashUrlForFileDiff
@Nullable public @Nullable String getStashUrlForFileDiff(@NotNull @NotNull CommitFile file, RepositoryData repositoryData) Deprecated.Generate the link to a diff between given file and its direct ancestor- Parameters:
file
- The file we want to link to.repositoryData
- For the build (and hense the repository file belongs to).- Returns:
- The url
-
getWebRepositoryUrlForFile
public String getWebRepositoryUrlForFile(@NotNull @NotNull CommitFile file, RepositoryData repositoryData) Deprecated. -
getWebRepositoryUrlForRevision
public String getWebRepositoryUrlForRevision(@NotNull @NotNull CommitFile file, RepositoryData repositoryData) Deprecated. -
getWebRepositoryUrlForDiff
public String getWebRepositoryUrlForDiff(@NotNull @NotNull CommitFile file, RepositoryData repositoryData) Deprecated. -
getStashUrl
Deprecated. -
setStashUrl
Deprecated. -
getStashProject
Deprecated. -
setStashProject
Deprecated. -
getStashRepositoryName
Deprecated. -
setStashRepositoryName
Deprecated. -
setCustomVariableContext
Deprecated. -
setTextProvider
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) Deprecated.
-