1 | CachedMHFolder(FolderItem item, String path) {↵ | | 1 | CachedMboxFolder(FolderItem item, String path) {↵
|
2 | super(item, path);↵ | | 2 | super(item, path);↵
|
|
3 | // enable lucene search index by default↵ | | 3 | // enable lucene search index by default↵
|
4 | boolean enableLucene = getConfiguration().getBooleanWithDefault("property",↵ | | 4 | boolean enableLucene = getConfiguration().getBooleanWithDefault("property",↵
|
5 | "enable_lucene", true);↵ | | 5 | "enable_lucene", true);↵
|
6 | if (enableLucene) {↵ | | 6 | if (enableLucene) {↵
|
7 | getSearchEngine().setNonDefaultEngine(new LuceneQueryEngine(this));↵ | | 7 | getSearchEngine().setNonDefaultEngine(new LuceneQueryEngine(this));↵
|
8 | } ↵ | | 8 | } ↵
|
9 | }↵ | | |
|
|
10 | /**↵ | | |
|
|
| | | 9 | }↵
|
|
| | | 10 | /**↵
|
| | | 11 | * Constructs the CachedMboxFolder.java.↵
|
| | | 12 | * ↵
|
| | | 13 | * @param name↵
|
11 | * @param type↵ | | 14 | * @param type↵
|
12 | */↵ | | 15 | *↵
|
13 | ↵ | | 16 | @param path↵
|
| | | 17 | */↵
|
14 | public CachedMHFolder(String name, String type, String path) {↵ | | 18 | public CachedMboxFolder(String name, String type, String path) {↵
|
15 | super(name, type, path);↵ | | 19 | super(name, type, path);↵
|
|
16 | IFolderItem item = getConfiguration();↵ | | 20 | IFolderItem item = getConfiguration();↵
|
17 | item.setString("property", "accessrights", "user");↵ | | 21 | item.setString("property", "accessrights", "user");↵
|
18 | item.setString("property", "subfolder", "true");↵ | | 22 | item.setString("property", "subfolder", "true");↵
|
19 | ↵ | | |
|
20 | boolean enableLucene = getConfiguration().getBooleanWithDefault("property",↵ | | 23 | boolean enableLucene = getConfiguration().getBooleanWithDefault("property",↵
|
21 | "enable_lucene", false);↵ | | 24 | "enable_lucene", false);↵
|
22 | if (enableLucene) {↵ | | 25 | if (enableLucene) {↵
|
23 | getSearchEngine().setNonDefaultEngine(new LuceneQueryEngine(this));↵ | | 26 | getSearchEngine().setNonDefaultEngine(new LuceneQueryEngine(this));↵
|
24 | } ↵ | | 27 | } ↵
|
25 | }↵ | | |
|
|
26 | ↵ | | |
|
27 | ↵ | | 28 | }↵
|
|
| | | 29 | ↵
|
| | | 30 | ↵
|
| | | 31 | /**↵
|
| | | 32 | * @see org.columba.mail.folder.AbstractLocalFolder#getDataStorageInstance()↵
|
| | | 33 | */↵
|
28 | public IDataStorage getDataStorageInstance() {↵ | | 34 | public IDataStorage getDataStorageInstance() {↵
|
29 | if (dataStorage == null) {↵ | | 35 | if (dataStorage == null) {↵
|
30 | dataStorage = new MHDataStorage(this);↵ | | 36 | dataStorage = new MboxDataStorage(this);↵
|
31 | }↵ | | 37 | }↵
|
|
32 | return dataStorage;↵ | | 38 | return dataStorage;↵
|
33 | | | 39 |
|