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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) Map<String,
Collection<org.apache.maven.index.ArtifactInfo>> getResultsMap
(String repositoryId, String query) search
(SearchRequest searchRequest) void
setRepositoryIndexManager
(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:
addToIndex
in interfaceArtifactIndexingService
- Throws:
IOException
-
deleteFromIndex
public void deleteFromIndex(String repositoryId, String groupId, String artifactId, String version, String extension, String classifier) throws IOException - Specified by:
deleteFromIndex
in interfaceArtifactIndexingService
- Throws:
IOException
-
search
public SearchResults search(SearchRequest searchRequest) throws IOException, org.apache.lucene.queryparser.classic.ParseException - Specified by:
search
in interfaceArtifactIndexingService
- Throws:
IOException
org.apache.lucene.queryparser.classic.ParseException
-
contains
public boolean contains(SearchRequest searchRequest) throws IOException, org.apache.lucene.queryparser.classic.ParseException - Specified by:
contains
in interfaceArtifactIndexingService
- Throws:
IOException
org.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:
IOException
org.apache.lucene.queryparser.classic.ParseException
-
getRepositoryIndexManager
-
setRepositoryIndexManager
-