01: package org.claros.mini.controllers;
02:
03: import java.util.ArrayList;
04: import java.util.List;
05:
06: import org.claros.mini.models.FolderDbItem;
07:
08: /**
09: * @author Umut Gokbayrak
10: */
11: public interface FolderController {
12: public List getFolders() throws Exception;
13:
14: public FolderDbItem getFolder(String folder) throws Exception;
15:
16: public List getMailsByFolder(String folder) throws Exception;
17:
18: public void createFolder(FolderDbItem 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 FolderDbItem getJunkFolder() throws Exception;
36:
37: public FolderDbItem getInboxFolder() throws Exception;
38:
39: public FolderDbItem getSentItems() throws Exception;
40:
41: }
|