1 package org.apache.maven.indexer.examples.services;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.lucene.queryparser.classic.ParseException;
23 import org.apache.maven.indexer.examples.indexing.SearchRequest;
24 import org.apache.maven.indexer.examples.indexing.SearchResults;
25
26 import java.io.File;
27 import java.io.IOException;
28
29
30
31
32
33
34 public interface ArtifactIndexingService
35 {
36
37 void addToIndex( String repositoryId, File artifactFile, String groupId, String artifactId, String version,
38 String extension, String classifier )
39 throws IOException;
40
41 void deleteFromIndex( String repositoryId, String groupId, String artifactId, String version, String extension,
42 String classifier )
43 throws IOException;
44
45 SearchResults search( SearchRequest searchRequest )
46 throws IOException, ParseException;
47
48 boolean contains( SearchRequest searchRequest )
49 throws IOException, ParseException;
50
51 }