com.atlassian.bamboo.repository
Interface WebRepositoryViewer

All Known Implementing Classes:
ViewCvsFileLinkGenerator

public interface WebRepositoryViewer

This interface is the start of a repository viewer api.


Field Summary
static java.lang.String CVS_REPO_TYPE
          We're generating a link to a cvs based repository
static java.lang.String PERFORCE_REPO_TYPE
          We're generating a link to a PERFORCE based repository
static java.lang.String SVN_REPO_TYPE
          We're generating a link to a SVN based repository
 
Method Summary
 java.lang.String getWebRepositoryUrlForFile(CommitFile file, java.lang.String repositoryName, java.lang.String repositoryType)
          Generate the link to a given file in a given repository
 

Field Detail

CVS_REPO_TYPE

static final java.lang.String CVS_REPO_TYPE
We're generating a link to a cvs based repository

See Also:
Constant Field Values

SVN_REPO_TYPE

static final java.lang.String SVN_REPO_TYPE
We're generating a link to a SVN based repository

See Also:
Constant Field Values

PERFORCE_REPO_TYPE

static final java.lang.String PERFORCE_REPO_TYPE
We're generating a link to a PERFORCE based repository

See Also:
Constant Field Values
Method Detail

getWebRepositoryUrlForFile

@NotNull
java.lang.String getWebRepositoryUrlForFile(@NotNull
                                                    CommitFile file,
                                                    @Nullable
                                                    java.lang.String repositoryName,
                                                    @Nullable
                                                    java.lang.String repositoryType)
Generate the link to a given file in a given repository

Parameters:
file - The file we want to link to.
repositoryName - An optional repository. This is used when the viewcvs baseurl points to a multi-build repository
repositoryType - One of IS_CVS_REPO_LINK or SVN_REPO_TYPE.
Returns:
The url


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.