public interface RepositoryService
Modifier and Type | Method and Description |
---|---|
java.util.List<RepositoryData> |
getRepositories()
Deprecated.
|
Page<RepositoryData> |
getRepositories(RepositoryDataSearchCriteria criteria,
PageRequest pageRequest)
Returns filtered list of repositories in this instance that the current user has access to.
|
RepositoryData |
getRepository(java.lang.String name)
Returns the details of the repository with the specified key.
|
RepositoryIndexingStatus |
getRepositoryIndexingStatus(java.lang.String name)
Returns indexing status for the repository with the specified key.
|
SCMRepository |
getSCMRepository(java.lang.String name)
Returns an
SCMRepository instance for
the Crucible source repository with the given key. |
@Deprecated java.util.List<RepositoryData> getRepositories()
getRepositories(com.atlassian.crucible.spi.data.RepositoryDataSearchCriteria, com.atlassian.fecru.page.PageRequest)
instead.Page<RepositoryData> getRepositories(RepositoryDataSearchCriteria criteria, PageRequest pageRequest)
criteria
- criteria to filter down repositories.pageRequest
- controls fragment of results to be returned.RepositoryData getRepository(java.lang.String name)
NotFoundException
is
raised.
The supplied repository key can be either a Crucible SCM plugin
repository, or a FishEye repository.name
- the key of a repository.RepositoryIndexingStatus getRepositoryIndexingStatus(java.lang.String name)
NotFoundException
is
raised.name
- the key of a repositorySCMRepository getSCMRepository(java.lang.String name)
Returns an SCMRepository
instance for
the Crucible source repository with the given key. Crucible source
repositories are repositories of type "plugin" and implement
PluginRepositoryData
.
This method will return null
for FishEye repositories. To browse
and search FishEye repositories, use the services provided by the
com.atlassian.fisheye.spi.services
package.
This method requires the caller to be logged in, or Crucible must be configured to allow anonymous access.
name
- the key of a Crucible SCM plugin repository.NotPermittedException
- when the caller is not logged in and
Crucible does not allow anonymous access.