org.apache.archiva.rest.api.services
Interface SearchService

All Known Implementing Classes:
DefaultSearchService

public interface SearchService


Method Summary
 GroupIdList getAllGroupIds(List<String> selectedRepos)
          this method applies on Maven Indexer lucene index, so datas not yet indexed won't be available
 List<Artifact> getArtifactVersions(String groupId, String artifactId, String packaging)
          search will be apply on all repositories the current user has karma
 StringList getObservablesRepoIds()
           
 List<Artifact> quickSearch(String queryString)
           
 List<Artifact> quickSearchWithRepositories(SearchRequest searchRequest)
          if not repositories in SearchRequest: search will be apply on all repositories the current user has karma
 List<Artifact> searchArtifacts(SearchRequest searchRequest)
          If searchRequest contains repositories, the search will be done only on those repositories.
 

Method Detail

quickSearch

List<Artifact> quickSearch(String queryString)
                           throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

quickSearchWithRepositories

List<Artifact> quickSearchWithRepositories(SearchRequest searchRequest)
                                           throws ArchivaRestServiceException
if not repositories in SearchRequest: search will be apply on all repositories the current user has karma

Throws:
ArchivaRestServiceException

searchArtifacts

List<Artifact> searchArtifacts(SearchRequest searchRequest)
                               throws ArchivaRestServiceException
If searchRequest contains repositories, the search will be done only on those repositories. if no repositories, the search will be apply on all repositories the current user has karma

Throws:
ArchivaRestServiceException

getArtifactVersions

List<Artifact> getArtifactVersions(String groupId,
                                   String artifactId,
                                   String packaging)
                                   throws ArchivaRestServiceException
search will be apply on all repositories the current user has karma

Throws:
ArchivaRestServiceException

getAllGroupIds

GroupIdList getAllGroupIds(List<String> selectedRepos)
                           throws ArchivaRestServiceException
this method applies on Maven Indexer lucene index, so datas not yet indexed won't be available

Throws:
ArchivaRestServiceException

getObservablesRepoIds

StringList getObservablesRepoIds()
                                 throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException
Since:
1.4-M3


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.