|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchableRepository
A Searchable Repository is backed by a search engine that holds more revisions than that are currently available locally. For example, it is backed by a database. This interface provides a query interface for text search as well as a requirement based search.
| Nested Class Summary | |
|---|---|
static class |
SearchableRepository.ResourceDescriptor
Describes a resource that is a member of the underlying remote repository. |
| Method Summary | |
|---|---|
boolean |
addResource(SearchableRepository.ResourceDescriptor resource)
Add a resource descriptors to the underlying repository. |
Set<SearchableRepository.ResourceDescriptor> |
findResources(Requirement requirement,
boolean includeDependencies)
Find a set of resources that match the given requirement.This is intended to be used to provide extra resources when a resolve fails. |
Set<SearchableRepository.ResourceDescriptor> |
getResources(URI url,
boolean includeDependencies)
Convert a URL to a set of resource descriptors. |
Set<SearchableRepository.ResourceDescriptor> |
query(String query)
Search a repository and return a set of resource descriptors that match the query. |
| Method Detail |
|---|
Set<SearchableRepository.ResourceDescriptor> getResources(URI url,
boolean includeDependencies)
throws Exception
url - the dropped urlincludeDependencies - Include any dependent revisions
Exception
Set<SearchableRepository.ResourceDescriptor> query(String query)
throws Exception
query - The query syntax
Exception
boolean addResource(SearchableRepository.ResourceDescriptor resource)
throws Exception
resource - the descriptor to add
Exception
Set<SearchableRepository.ResourceDescriptor> findResources(Requirement requirement,
boolean includeDependencies)
throws Exception
requirement - The requirement to matchincludeDependencies - Include any dependent revisions
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||