1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.codelibs.fess.es.config.exentity;
17
18 import java.util.Map;
19
20 import org.codelibs.fess.crawler.client.CrawlerClientFactory;
21
22 public interface CrawlingConfig {
23
24 String getId();
25
26 String getName();
27
28 String[] getPermissions();
29
30 String[] getVirtualHosts();
31
32 String[] getLabelTypeValues();
33
34 String getDocumentBoost();
35
36 String getIndexingTarget(String input);
37
38 String getConfigId();
39
40 Integer getTimeToLive();
41
42 Map<String, Object> initializeClientFactory(CrawlerClientFactory crawlerClientFactory);
43
44 Map<String, String> getConfigParameterMap(ConfigName name);
45
46 public enum ConfigType {
47 WEB("W"), FILE("F"), DATA("D");
48
49 private final String typePrefix;
50
51 ConfigType(final String typePrefix) {
52 this.typePrefix = typePrefix;
53 }
54
55 public String getTypePrefix() {
56 return typePrefix;
57 }
58
59 public String getConfigId(final String id) {
60 if (id == null) {
61 return null;
62 }
63 return typePrefix + id.toString();
64 }
65 }
66
67 public enum ConfigName {
68 CLIENT, XPATH, META, VALUE, SCRIPT, FIELD, CONFIG;
69 }
70 }