@Service(value="searchService#rest") public class DefaultSearchService extends AbstractRestService implements SearchService
archivaAdministration, config, httpServletRequest, httpServletResponse, log, proxyConnectorAdmin, repositoryRegistry, repositoryTaskScheduler, userRepositories| Constructor and Description | 
|---|
| DefaultSearchService() | 
| Modifier and Type | Method and Description | 
|---|---|
| GroupIdList | getAllGroupIds(List<String> selectedRepos)this method applies on Maven Indexer lucene index, so datas not yet indexed won't be available | 
| List<Artifact> | getArtifactByChecksum(ChecksumSearch checksumSearch)If searchRequest contains repositories, the search will be done only on those repositories. | 
| protected List<Artifact> | getArtifacts(SearchResults searchResults) | 
| 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 | 
| javax.ws.rs.core.Response | redirectToArtifactFile(String repositoryId,
                      String groupId,
                      String artifactId,
                      String version,
                      String packaging,
                      String classifier) | 
| List<Artifact> | searchArtifacts(SearchRequest searchRequest)If searchRequest contains repositories, the search will be done only on those repositories. | 
buildArtifacts, doScanRepository, getArtifactUrl, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getModelMapper, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEventpublic DefaultSearchService()
public List<Artifact> quickSearch(String queryString) throws ArchivaRestServiceException
quickSearch in interface SearchServiceArchivaRestServiceExceptionpublic List<Artifact> quickSearchWithRepositories(SearchRequest searchRequest) throws ArchivaRestServiceException
SearchServicequickSearchWithRepositories in interface SearchServiceArchivaRestServiceExceptionpublic List<Artifact> getArtifactVersions(String groupId, String artifactId, String packaging) throws ArchivaRestServiceException
SearchServicegetArtifactVersions in interface SearchServiceArchivaRestServiceExceptionpublic List<Artifact> searchArtifacts(SearchRequest searchRequest) throws ArchivaRestServiceException
SearchServicesearchArtifacts in interface SearchServiceArchivaRestServiceExceptionpublic GroupIdList getAllGroupIds(List<String> selectedRepos) throws ArchivaRestServiceException
SearchServicegetAllGroupIds in interface SearchServiceArchivaRestServiceExceptionpublic List<Artifact> getArtifactByChecksum(ChecksumSearch checksumSearch) throws ArchivaRestServiceException
SearchServicegetArtifactByChecksum in interface SearchServiceArchivaRestServiceExceptionpublic StringList getObservablesRepoIds() throws ArchivaRestServiceException
getObservablesRepoIds in interface SearchServiceArchivaRestServiceExceptionpublic javax.ws.rs.core.Response redirectToArtifactFile(String repositoryId, String groupId, String artifactId, String version, String packaging, String classifier) throws ArchivaRestServiceException
redirectToArtifactFile in interface SearchServiceArchivaRestServiceExceptionprotected List<Artifact> getArtifacts(SearchResults searchResults) throws ArchivaRestServiceException
ArchivaRestServiceExceptionCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.