@Component public class ArtifactIndexingServiceImpl extends Object implements ArtifactIndexingService
| Constructor and Description |
|---|
ArtifactIndexingServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToIndex(String repositoryId,
File artifactFile,
String groupId,
String artifactId,
String version,
String extension,
String classifier) |
boolean |
contains(SearchRequest searchRequest) |
void |
deleteFromIndex(String repositoryId,
String groupId,
String artifactId,
String version,
String extension,
String classifier) |
RepositoryIndexManager |
getRepositoryIndexManager() |
Map<String,Collection<ArtifactInfo>> |
getResultsMap(String repositoryId,
String query) |
SearchResults |
search(SearchRequest searchRequest) |
void |
setRepositoryIndexManager(RepositoryIndexManager repositoryIndexManager) |
public void addToIndex(String repositoryId, File artifactFile, String groupId, String artifactId, String version, String extension, String classifier) throws IOException
addToIndex in interface ArtifactIndexingServiceIOExceptionpublic void deleteFromIndex(String repositoryId, String groupId, String artifactId, String version, String extension, String classifier) throws IOException
deleteFromIndex in interface ArtifactIndexingServiceIOExceptionpublic SearchResults search(SearchRequest searchRequest) throws IOException, org.apache.lucene.queryparser.classic.ParseException
search in interface ArtifactIndexingServiceIOExceptionorg.apache.lucene.queryparser.classic.ParseExceptionpublic boolean contains(SearchRequest searchRequest) throws IOException, org.apache.lucene.queryparser.classic.ParseException
contains in interface ArtifactIndexingServiceIOExceptionorg.apache.lucene.queryparser.classic.ParseExceptionpublic Map<String,Collection<ArtifactInfo>> getResultsMap(String repositoryId, String query) throws IOException, org.apache.lucene.queryparser.classic.ParseException
IOExceptionorg.apache.lucene.queryparser.classic.ParseExceptionpublic RepositoryIndexManager getRepositoryIndexManager()
public void setRepositoryIndexManager(RepositoryIndexManager repositoryIndexManager)
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.