@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
RepositorySearch
search
in interface RepositorySearch
RepositorySearchException
RepositorySearch.search(String, List, String, SearchResultLimits, List)
public SearchResults search(String principal, SearchFields searchFields, SearchResultLimits limits) throws RepositorySearchException
RepositorySearch
search
in interface RepositorySearch
RepositorySearchException
RepositorySearch.search(String, SearchFields, SearchResultLimits)
public Set<String> getRemoteIndexingContextIds(String managedRepoId) throws RepositorySearchException
getRemoteIndexingContextIds
in interface RepositorySearch
RepositorySearchException
public Collection<String> getAllGroupIds(String principal, List<String> selectedRepos) throws RepositorySearchException
getAllGroupIds
in interface RepositorySearch
RepositorySearchException
protected String getBaseUrl(org.apache.maven.index.ArtifactInfo artifactInfo, List<String> selectedRepos) throws RepositoryAdminException
artifactInfo
- RepositoryAdminException
protected SearchResults paginate(SearchResults results)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.