@Deprecated public class LegacyStashWebRepositoryViewer extends AbstractWebRepositoryViewer implements DeploymentsAwareCommitUrlProvider
| Modifier and Type | Field and Description |
|---|---|
protected static String |
STASH_PROJECT
Deprecated.
|
protected static String |
STASH_REPOSITORY_NAME
Deprecated.
|
protected static String |
STASH_URL
Deprecated.
|
moduleDescriptor, templateRendererSELECTED_WEB_REPOSITORY_VIEWER, WEB_REPOSITORY| Constructor and Description |
|---|
LegacyStashWebRepositoryViewer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHtmlForCommitsFull(@NotNull ResultsSummary resultsSummary,
@NotNull RepositoryChangeset repositoryChangeset,
@NotNull RepositoryData repositoryData)
Deprecated.
Renders the html to display the full commits on the changes tab.
|
String |
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.
|
String |
getStashProject()
Deprecated.
|
String |
getStashRepositoryName()
Deprecated.
|
String |
getStashUrl()
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> |
getSupportedRepositories()
Deprecated.
The keys for the
Repository 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 repository
|
Map<Commit,String> |
getWebRepositoryUrlForCommits(Collection<Commit> commits,
RepositoryData repositoryDefinition)
Deprecated.
Provide the urls to link all the given commits in the web repository
|
Map<DeploymentVersionVcsCommit,String> |
getWebRepositoryUrlForDeploymentVersionCommits(Collection<DeploymentVersionVcsCommit> commits,
RepositoryData repositoryData)
Deprecated.
Provide the urls to link all the given commits in the web repository
|
String |
getWebRepositoryUrlForDiff(@NotNull CommitFile file,
RepositoryData repositoryData)
Deprecated.
|
String |
getWebRepositoryUrlForFile(@NotNull CommitFile file,
RepositoryData repositoryData)
Deprecated.
|
String |
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 repository
|
void |
populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
Deprecated.
Update the current object with data in the
HierarchicalConfiguration |
void |
populateFromParams(@NotNull ActionParametersMap params)
Deprecated.
takes the map of config data from action and extracts the parameters it needs
|
void |
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 |
toConfiguration()
Deprecated.
Generate a
HierarchicalConfiguration from the current state of the object |
@NotNull ErrorCollection |
validate(@NotNull BuildConfiguration buildConfiguration)
Deprecated.
Validates the properties in the
BuildConfiguration object. |
getKey, getName, getShortKeycustomizeBuildRequirements, removeBuildRequirementsaddDefaultValues, getEditHtml, getTemplateRenderer, getViewHtml, init, populateContextForEdit, populateContextForView, prepareConfigObject, setTemplateRendererclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKey, getName, getShortKeycustomizeBuildRequirements, removeBuildRequirementsaddDefaultValues, isConfigurationMissing, prepareConfigObjectinitgetEditHtml, getViewHtmlprotected static final String STASH_URL
protected static final String STASH_PROJECT
protected static final String STASH_REPOSITORY_NAME
public LegacyStashWebRepositoryViewer()
@NotNull public @NotNull Collection<String> getSupportedRepositories()
WebRepositoryViewerRepository classes that the web viewer currently supports.
If list is empty or null it assumes support for all repositories.getSupportedRepositories in interface WebRepositoryViewergetSupportedRepositories in class AbstractWebRepositoryViewerpublic String getHtmlForCommitsFull(@NotNull @NotNull ResultsSummary resultsSummary, @NotNull @NotNull RepositoryChangeset repositoryChangeset, @NotNull @NotNull RepositoryData repositoryData)
WebRepositoryViewergetHtmlForCommitsFull in interface WebRepositoryViewerresultsSummary - the summary to show commits forrepositoryData - the commits belong to aka the plans repositorypublic String getHtmlForCommitsSummary(@NotNull @NotNull ResultsSummary resultsSummary, @NotNull @NotNull RepositoryChangeset repositoryChangeset, @NotNull @NotNull RepositoryData repositoryData, int maxChanges)
WebRepositoryViewergetHtmlForCommitsSummary in interface WebRepositoryViewerresultsSummary - 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
@NotNull ActionParametersMap params)
AbstractWebRepositoryViewerpopulateFromParams in interface WebRepositoryViewerpopulateFromParams in class AbstractWebRepositoryViewerparams - map of key (String), value (String []) pairs from actionpublic void populateFromConfig(@NotNull
@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfigHierarchicalConfigurationpopulateFromConfig in interface ConvertibleFromConfigpopulateFromConfig in class AbstractWebRepositoryViewer@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfigHierarchicalConfiguration from the current state of the objecttoConfiguration in interface ConvertibleFromConfigtoConfiguration in class AbstractWebRepositoryViewerHierarchicalConfiguration. Never null@NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePluginBuildConfiguration 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 BuildConfigurationAwarePluginvalidate in class BaseBuildConfigurationAwarePluginbuildConfiguration - -ErrorCollection keyed by the field name.@Nullable public @Nullable String getWebRepositoryUrlForCommit(Commit commit, @NotNull @NotNull RepositoryData repositoryData)
CommitUrlProvidergetWebRepositoryUrlForCommit in interface CommitUrlProvidercommit - the commit to links torepositoryData - the repository type the commit came from@Nullable public @Nullable String getWebRepositoryUrlForRevision(String revisionId, @NotNull @NotNull RepositoryData repositoryData)
CommitUrlProvidergetWebRepositoryUrlForRevision in interface CommitUrlProviderrevisionId - the revision to links torepositoryData - the repository type the commit came frompublic Map<Commit,String> getWebRepositoryUrlForCommits(Collection<Commit> commits, RepositoryData repositoryDefinition)
CommitUrlProvidergetWebRepositoryUrlForCommits in interface CommitUrlProvidercommits - to generate links forrepositoryDefinition - the repository type the commit came frompublic Map<DeploymentVersionVcsCommit,String> getWebRepositoryUrlForDeploymentVersionCommits(Collection<DeploymentVersionVcsCommit> commits, RepositoryData repositoryData)
DeploymentsAwareCommitUrlProvidergetWebRepositoryUrlForDeploymentVersionCommits in interface DeploymentsAwareCommitUrlProvidercommits - to generate links forrepositoryData - the repository the commit came from@Nullable public @Nullable String getStashUrlForFile(@NotNull @NotNull CommitFile file, RepositoryData repositoryData)
file - The file we want to link to.repositoryData - For the build (and hense the repository file belongs to).@Nullable public @Nullable String getStashUrlForFileAtItsRevision(@NotNull @NotNull CommitFile file, RepositoryData repositoryData)
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).@Nullable public @Nullable String getStashUrlForFileDiff(@NotNull @NotNull CommitFile file, RepositoryData repositoryData)
file - The file we want to link to.repositoryData - For the build (and hense the repository file belongs to).public String getWebRepositoryUrlForFile(@NotNull @NotNull CommitFile file, RepositoryData repositoryData)
public String getWebRepositoryUrlForRevision(@NotNull @NotNull CommitFile file, RepositoryData repositoryData)
public String getWebRepositoryUrlForDiff(@NotNull @NotNull CommitFile file, RepositoryData repositoryData)
public String getStashUrl()
public void setStashUrl(@Nullable
@Nullable String stashUrl)
public String getStashProject()
public void setStashProject(@Nullable
@Nullable String stashProject)
public String getStashRepositoryName()
public void setStashRepositoryName(@Nullable
@Nullable String stashRepositoryName)
public void setCustomVariableContext(CustomVariableContext customVariableContext)
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.