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 Summary
Constructors -
Method Summary
Modifier 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) Map<String,Collection<org.apache.maven.index.ArtifactInfo>> getResultsMap(String repositoryId, String query) search(SearchRequest searchRequest) voidsetRepositoryIndexManager(RepositoryIndexManager repositoryIndexManager)
-
Constructor Details
-
ArtifactIndexingServiceImpl
public ArtifactIndexingServiceImpl()
-
-
Method Details
-
addToIndex
public void addToIndex(String repositoryId, File artifactFile, String groupId, String artifactId, String version, String extension, String classifier) throws IOException - Specified by:
addToIndexin interfaceArtifactIndexingService- Throws:
IOException
-
deleteFromIndex
public void deleteFromIndex(String repositoryId, String groupId, String artifactId, String version, String extension, String classifier) throws IOException - Specified by:
deleteFromIndexin interfaceArtifactIndexingService- Throws:
IOException
-
search
public SearchResults search(SearchRequest searchRequest) throws IOException, org.apache.lucene.queryparser.classic.ParseException - Specified by:
searchin interfaceArtifactIndexingService- Throws:
IOExceptionorg.apache.lucene.queryparser.classic.ParseException
-
contains
public boolean contains(SearchRequest searchRequest) throws IOException, org.apache.lucene.queryparser.classic.ParseException - Specified by:
containsin interfaceArtifactIndexingService- Throws:
IOExceptionorg.apache.lucene.queryparser.classic.ParseException
-
getResultsMap
public Map<String,Collection<org.apache.maven.index.ArtifactInfo>> getResultsMap(String repositoryId, String query) throws IOException, org.apache.lucene.queryparser.classic.ParseException - Throws:
IOExceptionorg.apache.lucene.queryparser.classic.ParseException
-
getRepositoryIndexManager
-
setRepositoryIndexManager
-