01: //The contents of this file are subject to the Mozilla Public License Version 1.1
02: //(the "License"); you may not use this file except in compliance with the
03: //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
04: //
05: //Software distributed under the License is distributed on an "AS IS" basis,
06: //WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
07: //for the specific language governing rights and
08: //limitations under the License.
09: //
10: //The Original Code is "The Columba Project"
11: //
12: //The Initial Developers of the Original Code are Frederik Dietz and Timo Stich.
13: //Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
14: //
15: //All Rights Reserved.
16:
17: package org.columba.mail.folder.search;
18:
19: import java.util.List;
20:
21: import org.columba.core.filter.FilterRule;
22: import org.columba.core.filter.IFilterRule;
23:
24: /**
25: * Default query engine used by {@link DefaultSearchEngine}.
26: *
27: * @author fdietz
28: */
29: public class DummyQueryEngine implements QueryEngine {
30: /**
31: *
32: * @see org.columba.mail.folder.search.QueryEngine#getCaps()
33: */
34: public String[] getCaps() {
35: return new String[] {};
36: }
37:
38: /**
39: * @see org.columba.mail.folder.search.QueryEngine#sync()
40: */
41: public void sync() throws Exception {
42: }
43:
44: /**
45: * @see org.columba.mail.folder.search.QueryEngine#queryEngine(org.columba.mail.filter.FilterRule)
46: */
47: public List queryEngine(IFilterRule filter) throws Exception {
48: return null;
49: }
50:
51: /**
52: * @see org.columba.mail.folder.search.QueryEngine#queryEngine(org.columba.mail.filter.FilterRule, java.lang.Object[])
53: */
54: public List queryEngine(IFilterRule filter, Object[] uids)
55: throws Exception {
56: return null;
57: }
58:
59: /**
60: * @see org.columba.mail.folder.search.QueryEngine#messageAdded(org.columba.mail.message.ColumbaMessage)
61: */
62: public void messageAdded(Object uid) throws Exception {
63: }
64:
65: /**
66: * @see org.columba.mail.folder.search.QueryEngine#messageRemoved(java.lang.Object)
67: */
68: public void messageRemoved(Object uid) throws Exception {
69: }
70:
71: /**
72: * @see org.columba.mail.folder.search.QueryEngine#reset()
73: */
74: public void reset() throws Exception {
75: }
76:
77: public void save() {
78: // TODO Auto-generated method stub
79:
80: }
81: }
|