|
||||||||||
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.webrepository.fisheye.FisheyeWebRepositoryViewer
public class FisheyeWebRepositoryViewer
URL FORMATS: file https://atlaseye.atlassian.com/browse/bamboo/branches/atlassian_bamboo_2_4_branch/atlassian-ide-plugin.shared.xml#r68584 url/browse/reponame/file~ revision https://atlaseye.atlassian.com/browse/bamboo/trunk/atlassian-ide-plugin.shared.xml?r=68584 url/browse/reponame/file?r=XXX diff https://atlaseye.atlassian.com/browse/bamboo/trunk/atlassian-ide-plugin.shared.xml?r2=68584&r1=68581 url/browse/reponame/file?r2=XX&r1=YYY -- is this working for perforce yet? - no. need to use blank, however this only works in some versions of fisheye changeset https://atlaseye.atlassian.com/changelog/bamboo?cs=68584 url/changelog/reponame?cs=blah
Field Summary | |
---|---|
protected static java.lang.String |
FISHEYE_REPOSITORY_NAME
|
protected static java.lang.String |
FISHEYE_REPOSITORY_PATH
|
protected static java.lang.String |
FISHEYE_REPOSITORY_URL
|
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 |
Constructor Summary | |
---|---|
FisheyeWebRepositoryViewer()
|
Method Summary | |
---|---|
java.lang.String |
getHtmlForCommitsFull(ResultsSummary resultsSummary,
Repository repository)
Renders the html to display the full commits on the changes tab. |
java.lang.String |
getHtmlForCommitsSummary(ResultsSummary resultsSummary,
Repository repository)
Renders the html to display a summary of the commits on the Build Results Summary tab. |
java.util.Collection<java.lang.String> |
getSupportedRepositories()
The keys for the Repository classes that the web viewer currently supports. |
java.lang.String |
getWebRepositoryPath()
|
java.lang.String |
getWebRepositoryRepoName()
|
java.lang.String |
getWebRepositoryUrl()
|
java.lang.String |
getWebRepositoryUrlForCommit(Commit commit,
Repository repository)
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,
Repository repository)
|
java.lang.String |
getWebRepositoryUrlForDiff(CommitFile file,
Repository repository)
|
java.lang.String |
getWebRepositoryUrlForFile(CommitFile file,
Repository repository)
Generate the link to a given file in a given repository |
java.lang.String |
getWebRepositoryUrlForRevision(CommitFile file,
Repository repository)
|
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 |
void |
setVariableSubstitutionBean(VariableSubstitutionBean variableSubstitutionBean)
|
void |
setWebRepositoryPath(java.lang.String webRepositoryPath)
|
void |
setWebRepositoryRepoName(java.lang.String webRepositoryRepoName)
|
void |
setWebRepositoryUrl(java.lang.String webRepositoryUrl)
|
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, removeBuildRequirements |
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin |
---|
addDefaultValues, getEditHtml, getViewHtml, init, 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, getEditHtml, getViewHtml, prepareConfigObject |
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule |
---|
init |
Field Detail |
---|
protected static final java.lang.String FISHEYE_REPOSITORY_URL
protected static final java.lang.String FISHEYE_REPOSITORY_NAME
protected static final java.lang.String FISHEYE_REPOSITORY_PATH
Constructor Detail |
---|
public FisheyeWebRepositoryViewer()
Method Detail |
---|
@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 getHtmlForCommitsFull(@NotNull ResultsSummary resultsSummary, Repository repository)
WebRepositoryViewer
getHtmlForCommitsFull
in interface WebRepositoryViewer
resultsSummary
- the summary to show commits forrepository
- the commits belong to aka the plans repository
public java.lang.String getHtmlForCommitsSummary(@NotNull ResultsSummary resultsSummary, Repository repository)
WebRepositoryViewer
getHtmlForCommitsSummary
in interface WebRepositoryViewer
resultsSummary
- the summary to show commits forrepository
- the commits belong to aka the plans repository
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 BuildConfigurationAwarePlugin.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. @NotNull@Nullable public java.lang.String getWebRepositoryUrlForFile(@NotNull CommitFile file, Repository repository)
file
- The file we want to link to.repository
- For the build (and hense the repository file belongs to).
@Nullable public java.lang.String getWebRepositoryUrlForRevision(CommitFile file, Repository repository)
@Nullable public java.lang.String getWebRepositoryUrlForDiff(CommitFile file, Repository repository)
public java.util.Map<Commit,java.lang.String> getWebRepositoryUrlForCommits(java.util.Collection<Commit> commits, Repository repository)
@Nullable public java.lang.String getWebRepositoryUrlForCommit(Commit commit, Repository repository)
CommitUrlProvider
getWebRepositoryUrlForCommit
in interface CommitUrlProvider
commit
- the commit to links torepository
- the repository type the commit came from
public java.lang.String getWebRepositoryUrl()
public void setWebRepositoryUrl(@Nullable java.lang.String webRepositoryUrl)
public java.lang.String getWebRepositoryPath()
public void setWebRepositoryPath(@Nullable java.lang.String webRepositoryPath)
public java.lang.String getWebRepositoryRepoName()
public void setWebRepositoryRepoName(@Nullable java.lang.String webRepositoryRepoName)
public void setVariableSubstitutionBean(VariableSubstitutionBean variableSubstitutionBean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |