com.atlassian.fisheye.spi.services
Interface RepositoryService


public interface RepositoryService

Provides an API for retrieving information about the repositories in fisheye


Method Summary
 java.util.List<java.lang.String> getAvailableFileExtensions(java.lang.String repository, java.lang.String path)
           
 RepositoryDataFE getRepositoryInfo(java.lang.String name)
           
 boolean isDirectory(java.lang.String repository, java.lang.String path)
           
 boolean isFile(java.lang.String repository, java.lang.String path)
           
 java.util.List<java.lang.String> listCommitters(java.lang.String name)
           
 java.util.List<RepositoryDataFE> listRepositories()
           
 

Method Detail

listRepositories

java.util.List<RepositoryDataFE> listRepositories()
Returns:
a list of information about the repositories in fisheye that are accessible by the currently logged in user

getRepositoryInfo

RepositoryDataFE getRepositoryInfo(java.lang.String name)
Parameters:
name - the name of the repository
Returns:
information about the repository, providing it exists and the currently logged in user has permission to access it; null otherwise

listCommitters

java.util.List<java.lang.String> listCommitters(java.lang.String name)
Parameters:
name - the name of the repository
Returns:
a list of String commiter names from the repository

isFile

boolean isFile(java.lang.String repository,
               java.lang.String path)
Parameters:
repository - the name of the repository
path - a path within the repository, indicating a file or directory
Returns:
true if the given path references a file, false otherwise

isDirectory

boolean isDirectory(java.lang.String repository,
                    java.lang.String path)
Parameters:
repository - the name of the repository
path - a path within the repository, indicating a file or directory
Returns:
true if the given path references a directory, false otherwise

getAvailableFileExtensions

java.util.List<java.lang.String> getAvailableFileExtensions(java.lang.String repository,
                                                            java.lang.String path)
Parameters:
repository - the name of the repository
path - a path within the repository, indicating a file or directory
Returns:
list of file extensions present in this subtree of the repository