Class ArtifactIndexingServiceImpl
java.lang.Object
org.apache.maven.index.examples.services.impl.ArtifactIndexingServiceImpl
- All Implemented Interfaces:
- ArtifactIndexingService
@Component
public class ArtifactIndexingServiceImpl
extends Object
implements ArtifactIndexingService
- Author:
- mtodorov
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddToIndex(String repositoryId, File artifactFile, String groupId, String artifactId, String version, String extension, String classifier) booleancontains(SearchRequest searchRequest) voiddeleteFromIndex(String repositoryId, String groupId, String artifactId, String version, String extension, String classifier) getResultsMap(String repositoryId, String query) search(SearchRequest searchRequest) voidsetRepositoryIndexManager(RepositoryIndexManager repositoryIndexManager) 
- 
Constructor Details- 
ArtifactIndexingServiceImplpublic ArtifactIndexingServiceImpl()
 
- 
- 
Method Details- 
addToIndexpublic void addToIndex(String repositoryId, File artifactFile, String groupId, String artifactId, String version, String extension, String classifier) throws IOException - Specified by:
- addToIndexin interface- ArtifactIndexingService
- Throws:
- IOException
 
- 
deleteFromIndexpublic void deleteFromIndex(String repositoryId, String groupId, String artifactId, String version, String extension, String classifier) throws IOException - Specified by:
- deleteFromIndexin interface- ArtifactIndexingService
- Throws:
- IOException
 
- 
searchpublic SearchResults search(SearchRequest searchRequest) throws IOException, org.apache.lucene.queryparser.classic.ParseException - Specified by:
- searchin interface- ArtifactIndexingService
- Throws:
- IOException
- org.apache.lucene.queryparser.classic.ParseException
 
- 
containspublic boolean contains(SearchRequest searchRequest) throws IOException, org.apache.lucene.queryparser.classic.ParseException - Specified by:
- containsin interface- ArtifactIndexingService
- Throws:
- IOException
- org.apache.lucene.queryparser.classic.ParseException
 
- 
getResultsMappublic Map<String,Collection<ArtifactInfo>> getResultsMap(String repositoryId, String query) throws IOException, org.apache.lucene.queryparser.classic.ParseException - Throws:
- IOException
- org.apache.lucene.queryparser.classic.ParseException
 
- 
getRepositoryIndexManager
- 
setRepositoryIndexManager
 
-