Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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 String` | `CVS_REPO_TYPE` We're generating a link to a cvs based repository
`static String` | `SVN_REPO_TYPE` We're generating a link to a SVN based repository

Method Summary
`String` | `getWebRepositoryUrlForFile(CommitFile file, String repositoryName, String repositoryType)` Generate the link to a given file in a given repository

Field Detail

### CVS_REPO_TYPE

    static final String CVS_REPO_TYPE

  We're generating a link to a cvs based repository

  See Also:
    Constant Field Values

### SVN_REPO_TYPE

    static final String SVN_REPO_TYPE

  We're generating a link to a SVN based repository

  See Also:
    Constant Field Values

Method Detail

### getWebRepositoryUrlForFile

    String getWebRepositoryUrlForFile(CommitFile file,
                                      String repositoryName,
                                      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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 Atlassian Software Systems. All Rights Reserved.