1 package org.exoplatform.commons.search.index;
2
3 import org.exoplatform.commons.search.domain.Document;
4 import org.exoplatform.container.component.BaseComponentPlugin;
5
6 import java.io.Serializable;
7 import java.util.List;
8
9
10
11
12
13
14
15 public abstract class IndexingServiceConnector extends BaseComponentPlugin implements Serializable {
16
17 private String type;
18 private boolean enable = true;
19
20
21
22
23
24
25
26 public abstract Document create(String id);
27
28
29
30
31
32
33
34 public abstract Document update(String id);
35
36
37
38
39
40
41
42 public abstract String delete (String id);
43
44 public abstract List<String> getAllIds(int offset, int limit);
45
46 public String getType() {
47 return type;
48 }
49
50 public void setType(String type) {
51 this.type = type;
52 }
53
54 public boolean isEnable() {
55 return enable;
56 }
57
58 public void setEnable(boolean enable) {
59 this.enable = enable;
60 }
61 }