com.atlassian.bamboo.repository
Interface WebRepositoryEnabledRepository

All Superinterfaces:
BambooPluginModule, ConfigurablePlugin, ConvertibleFromConfig, Repository, RepositoryV2, java.io.Serializable
All Known Implementing Classes:
CVSRepository, PerforceRepository, SvnRepository

public interface WebRepositoryEnabledRepository
extends Repository


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.repository.Repository
SELECTED_REPOSITORY, UNKNOWN_HOST
 
Method Summary
 java.lang.String getWebRepositoryUrl()
          What's the repository's web url
 java.lang.String getWebRepositoryUrlForCommit(Commit commit)
          Possibly return a URL for a given commit
 java.lang.String getWebRepositoryUrlForFile(CommitFile file)
          What's the URL to the repostory for the modified file?
 java.lang.String getWebRepositoryUrlRepoName()
          What's the repository's web url repository
 boolean hasWebBasedRepositoryAccess()
          Does this recpository provdide a web url intereface?
 void setWebRepositoryUrl(java.lang.String url)
          Where should we link to to show build file changes?
 void setWebRepositoryUrlRepoName(java.lang.String repoName)
          This is used to identify the repository on multi-repository configurations.
 
Methods inherited from interface com.atlassian.bamboo.repository.Repository
checkConnection, getHost, getKey, getName, getTriggerIpAddress, isRepositoryDifferent, setReferencesDifferentRepository
 
Methods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig
populateFromConfig, toConfiguration
 
Methods inherited from interface com.atlassian.bamboo.v2.build.repository.RepositoryV2
collectChangesSinceLastBuild, getSourceCodeDirectory, referencesDifferentRepository, retrieveSourceCode
 
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
addDefaultValues, customizeBuildRequirements, getEditHtml, getViewHtml, init, prepareConfigObject, validate
 

Method Detail

hasWebBasedRepositoryAccess

boolean hasWebBasedRepositoryAccess()
Does this recpository provdide a web url intereface?

Returns:
true if we can link changes to the repositories web interface.

setWebRepositoryUrl

void setWebRepositoryUrl(java.lang.String url)
Where should we link to to show build file changes?

Parameters:
url - The url of the repositories web interface

setWebRepositoryUrlRepoName

void setWebRepositoryUrlRepoName(java.lang.String repoName)
This is used to identify the repository on multi-repository configurations.

Parameters:
repoName - The name of the repository we are viewing

getWebRepositoryUrl

java.lang.String getWebRepositoryUrl()
What's the repository's web url

Returns:
The url

getWebRepositoryUrlRepoName

java.lang.String getWebRepositoryUrlRepoName()
What's the repository's web url repository

Returns:
The repository (only used in multi-build repositories). Null if not used.

getWebRepositoryUrlForFile

java.lang.String getWebRepositoryUrlForFile(CommitFile file)
What's the URL to the repostory for the modified file?

Parameters:
file - The file that has been modified
Returns:
The url

getWebRepositoryUrlForCommit

@Nullable
java.lang.String getWebRepositoryUrlForCommit(@NotNull
                                                       Commit commit)
Possibly return a URL for a given commit

Parameters:
commit -
Returns:


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.