KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > mail > folder > search > DummyQueryEngine


1 //The contents of this file are subject to the Mozilla Public License Version 1.1
2
//(the "License"); you may not use this file except in compliance with the
3
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
4
//
5
//Software distributed under the License is distributed on an "AS IS" basis,
6
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
7
//for the specific language governing rights and
8
//limitations under the License.
9
//
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 JavaDoc;
20
21 import org.columba.core.filter.FilterRule;
22 import org.columba.core.filter.IFilterRule;
23
24
25 /**
26  * Default query engine used by {@link DefaultSearchEngine}.
27  *
28  * @author fdietz
29  */

30 public class DummyQueryEngine implements QueryEngine {
31     /**
32  *
33  * @see org.columba.mail.folder.search.QueryEngine#getCaps()
34  */

35     public String JavaDoc[] getCaps() {
36         return new String JavaDoc[] { };
37     }
38
39     /**
40  * @see org.columba.mail.folder.search.QueryEngine#sync()
41  */

42     public void sync() throws Exception JavaDoc {
43     }
44
45     /**
46  * @see org.columba.mail.folder.search.QueryEngine#queryEngine(org.columba.mail.filter.FilterRule)
47  */

48     public List JavaDoc queryEngine(IFilterRule filter) throws Exception JavaDoc {
49         return null;
50     }
51
52     /**
53  * @see org.columba.mail.folder.search.QueryEngine#queryEngine(org.columba.mail.filter.FilterRule, java.lang.Object[])
54  */

55     public List JavaDoc queryEngine(IFilterRule filter, Object JavaDoc[] uids)
56         throws Exception JavaDoc {
57         return null;
58     }
59
60     /**
61  * @see org.columba.mail.folder.search.QueryEngine#messageAdded(org.columba.mail.message.ColumbaMessage)
62  */

63     public void messageAdded(Object JavaDoc uid) throws Exception JavaDoc {
64     }
65
66     /**
67  * @see org.columba.mail.folder.search.QueryEngine#messageRemoved(java.lang.Object)
68  */

69     public void messageRemoved(Object JavaDoc uid) throws Exception JavaDoc {
70     }
71
72     /**
73  * @see org.columba.mail.folder.search.QueryEngine#reset()
74  */

75     public void reset() throws Exception JavaDoc {
76     }
77
78     public void save() {
79         // TODO Auto-generated method stub
80

81     }
82 }
83
Popular Tags