KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > mail > folder > AbstractRemoteFolder


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
package org.columba.mail.folder;
17
18 import org.columba.core.filter.FilterList;
19 import org.columba.core.xml.XmlElement;
20 import org.columba.mail.config.FolderItem;
21
22
23 /**
24  * Top-level folder of every IMAP account.
25  * <p>
26  * Only purpose of this folder is to allow for a better structure
27  * of the folder hierachy, where local and remote folders are
28  * very easy to distinct.
29  *
30  * @author fdietz
31  */

32 public abstract class AbstractRemoteFolder extends AbstractMessageFolder {
33     //protected RemoteSearchEngine searchEngine;
34

35     /**
36  * Constructs a AbstractRemoteFolder.
37  * @param item information about the folder.
38  */

39     public AbstractRemoteFolder(FolderItem item, String JavaDoc path) {
40         super(item, path);
41
42         // TODO (@author fdietz): move this to AbstractMessageFolder constructor
43
XmlElement filterListElement = node.getElement(FilterList.XML_NAME);
44
45         if (filterListElement == null) {
46             filterListElement = new XmlElement(FilterList.XML_NAME);
47             getConfiguration().getRoot().addElement(filterListElement);
48         }
49
50         filterList = new FilterList(filterListElement);
51     }
52
53     /**
54  * Constructs a Remote Folder.
55  * @param name the name of the folder.
56  * @param type the type of a folder.
57  */

58     public AbstractRemoteFolder(String JavaDoc name, String JavaDoc type, String JavaDoc path) {
59         super(name, type, path);
60     }
61 }
62
Popular Tags