com.atlassian.bamboo.webrepository
Interface CommitUrlProvider

All Superinterfaces:
BambooPluginModule, ConfigurablePlugin, ConvertibleFromConfig, InitablePluginModule, java.io.Serializable, WebRepositoryViewer
All Known Implementing Classes:
DefaultWebRepositoryViewer, FisheyeWebRepositoryViewer

public interface CommitUrlProvider
extends WebRepositoryViewer

If implementing this interface Bamboo's notifications can make use of it to provide web repository links within html emails


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.webrepository.WebRepositoryViewer
SELECTED_WEB_REPOSITORY_VIEWER
 
Method Summary
 java.lang.String getWebRepositoryUrlForCommit(Commit commit, Repository repository)
          Provide the url to link to the given commit in the web repository
 
Methods inherited from interface com.atlassian.bamboo.webrepository.WebRepositoryViewer
getHtmlForCommitsFull, getHtmlForCommitsSummary, getKey, getName, getShortKey, getSupportedRepositories, populateFromParams
 
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
addDefaultValues, customizeBuildRequirements, getEditHtml, getViewHtml, prepareConfigObject, removeBuildRequirements, validate
 
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
 
Methods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig
populateFromConfig, toConfiguration
 

Method Detail

getWebRepositoryUrlForCommit

@Nullable
java.lang.String getWebRepositoryUrlForCommit(Commit commit,
                                                       Repository repository)
Provide the url to link to the given commit in the web repository

Parameters:
commit - the commit to links to
repository - the repository type the commit came from
Returns:
a full url string.


Copyright © 2010 Atlassian. All Rights Reserved.