01: package org.claros.intouch.webmail.controllers;
02:
03: import java.util.ArrayList;
04: import java.util.List;
05:
06: import org.claros.intouch.webmail.models.FolderDbObject;
07:
08: /**
09: * @author Umut Gokbayrak
10: */
11: public interface FolderController {
12: public List getFolders() throws Exception;
13:
14: public FolderDbObject getFolder(String folder) throws Exception;
15:
16: public List getMailsByFolder(String folder) throws Exception;
17:
18: public void createFolder(FolderDbObject item) throws Exception;
19:
20: public Integer countUnreadMessages(String folder) throws Exception;
21:
22: public Integer countTotalMessages(String folder) throws Exception;
23:
24: public void emptyFolder(String folder) throws Exception;
25:
26: public void deleteFolder(String folder) throws Exception;
27:
28: public void renameFolder(String oldName, String newName)
29: throws Exception;
30:
31: public ArrayList getHeadersByFolder(String folder) throws Exception;
32:
33: public void createDefaultFolders() throws Exception;
34:
35: public FolderDbObject getJunkFolder() throws Exception;
36:
37: public FolderDbObject getInboxFolder() throws Exception;
38:
39: public FolderDbObject getSentItems() throws Exception;
40:
41: public FolderDbObject getTrashFolder() throws Exception;
42:
43: public FolderDbObject getDraftsFolder() throws Exception;
44: }
|