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