@Service(value="repositorySearch#maven") public class MavenRepositorySearch extends Object implements RepositorySearch
| Modifier | Constructor and Description |
|---|---|
protected |
MavenRepositorySearch() |
|
MavenRepositorySearch(org.apache.maven.index.Indexer nexusIndexer,
RepositoryRegistry repositoryRegistry,
ProxyConnectorAdmin proxyConnectorAdmin,
org.apache.maven.index.QueryCreator queryCreator) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getAllGroupIds(String principal,
List<String> selectedRepos) |
protected String |
getBaseUrl(org.apache.maven.index.ArtifactInfo artifactInfo,
List<String> selectedRepos)
calculate baseUrl without the context and base Archiva Url
|
Set<String> |
getRemoteIndexingContextIds(String managedRepoId) |
protected SearchResults |
paginate(SearchResults results) |
SearchResults |
search(String principal,
List<String> selectedRepos,
String term,
SearchResultLimits limits,
List<String> previousSearchTerms)
Quick search by won't return artifact with file extension pom
|
SearchResults |
search(String principal,
SearchFields searchFields,
SearchResultLimits limits)
Advanced search.
|
protected MavenRepositorySearch()
@Inject public MavenRepositorySearch(org.apache.maven.index.Indexer nexusIndexer, RepositoryRegistry repositoryRegistry, ProxyConnectorAdmin proxyConnectorAdmin, org.apache.maven.index.QueryCreator queryCreator)
public SearchResults search(String principal, List<String> selectedRepos, String term, SearchResultLimits limits, List<String> previousSearchTerms) throws RepositorySearchException
RepositorySearchsearch in interface RepositorySearchRepositorySearchExceptionRepositorySearch.search(String, List, String, SearchResultLimits, List)public SearchResults search(String principal, SearchFields searchFields, SearchResultLimits limits) throws RepositorySearchException
RepositorySearchsearch in interface RepositorySearchRepositorySearchExceptionRepositorySearch.search(String, SearchFields, SearchResultLimits)public Set<String> getRemoteIndexingContextIds(String managedRepoId) throws RepositorySearchException
getRemoteIndexingContextIds in interface RepositorySearchRepositorySearchExceptionpublic Collection<String> getAllGroupIds(String principal, List<String> selectedRepos) throws RepositorySearchException
getAllGroupIds in interface RepositorySearchRepositorySearchExceptionprotected String getBaseUrl(org.apache.maven.index.ArtifactInfo artifactInfo, List<String> selectedRepos) throws RepositoryAdminException
artifactInfo - RepositoryAdminExceptionprotected SearchResults paginate(SearchResults results)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.