| org.columba.mail.folder.AbstractMessageFolder org.columba.mail.folder.virtual.VirtualFolder
VirtualFolder | public class VirtualFolder extends AbstractMessageFolder implements FolderListener(Code) | | Virtual folder presenting search results and saving only references to
messages of "real" folders.
Almost all methods don't do anything here, because the we pass all operatins
to the source folders. This happens on the Command and CommandReference
abstraction level.
author: fdietz |
Method Summary | |
public void | activate() | public Object | add(ColumbaHeader header, IMailbox source, Object uid) | public Object | addMessage(InputStream in) | public Object | addMessage(InputStream in, Attributes attributes, Flags flags) | public void | addSearchToHistory() | protected void | applySearch() | protected void | applySearch(IMailFolder parent, Filter filter) | public void | deactivate() | public boolean | exists(Object uid) | public void | expungeFolder() | public void | folderAdded(IFolderEvent e) | public void | folderPropertyChanged(IFolderEvent e) | public void | folderRemoved(IFolderEvent e) | protected Object | generateNextUid() | public Header | getAllHeaderFields(Object uid) | public Object | getAttribute(Object uid, String key) | public Attributes | getAttributes(Object uid) | public String | getDefaultChild() | public static XmlElement | getDefaultProperties() | public Filter | getFilter() | public Flags | getFlags(Object uid) | public Header | getHeaderFields(Object uid, String[] keys) | public IHeaderList | getHeaderList() | public Object | getLastSelection() | public InputStream | getMessageSourceStream(Object uid) | public InputStream | getMimePartBodyStream(Object uid, Integer[] address) | public InputStream | getMimePartSourceStream(Object uid, Integer[] address) | public MimeTree | getMimePartTree(Object uid) | public IMailFolder | getRootFolder() | public DefaultSearchEngine | getSearchEngine() | IMailFolder | getSourceFolder() | public Object[] | getUids() | public VirtualHeader | getVirtualHeader(Object virtualUid) Get virtual header. | protected boolean | hasFlagsCriteria() | public void | innerCopy(IMailbox destFolder, Object[] uids) | public void | markMessage(Object[] uids, int variant) | public void | messageAdded(IFolderEvent e) | public void | messageFlagChanged(IFolderEvent e) | public void | messageRemoved(IFolderEvent e) | public void | releaseLock(Object locker) | public void | removeFolder() | public void | removeMessage(Object uid) | public Object[] | searchMessages(Filter filter, Object[] uids) | public Object[] | searchMessages(Filter filter) | public void | setAttribute(Object uid, String key, Object value) | public void | setNextUid(int next) | public JDialog | showFilterDialog(AbstractMailFrameController frameController) | protected Object | srcUidToVirtualUid(IMailFolder srcFolder, Object uid) | public boolean | supportsAddFolder(String newFolderType) Virtual folders can only accept other Virtual folders as childs.
Parameters: newFolderType - a folder to check if it is a Virtual folder. | public boolean | supportsAddMessage() VirtualFolder doesn't allow adding messages, in comparison to other
regular mailbox folders. | public boolean | supportsMove() | public boolean | tryToGetLock(Object locker) |
nextUid | protected int nextUid(Code) | | |
deactivate | public void deactivate()(Code) | | |
getDefaultChild | public String getDefaultChild()(Code) | | See Also: org.columba.modules.mail.folder.FolderTreeNode.instanceNewChildNode(AdapterNodeFolderItem) |
getMimePartTree | public MimeTree getMimePartTree(Object uid) throws Exception(Code) | | See Also: org.columba.modules.mail.folder.Folder.getMimeTree(ObjectIMAPFolder) |
getVirtualHeader | public VirtualHeader getVirtualHeader(Object virtualUid)(Code) | | Get virtual header.
Parameters: virtualUid - virtual uid virtual header |
hasFlagsCriteria | protected boolean hasFlagsCriteria()(Code) | | |
markMessage | public void markMessage(Object[] uids, int variant) throws Exception(Code) | | See Also: org.columba.modules.mail.folder.Folder.markMessage(Object[]intIMAPFolder) |
removeMessage | public void removeMessage(Object uid) throws Exception(Code) | | See Also: org.columba.modules.mail.folder.Folder.remove(Object) |
searchMessages | public Object[] searchMessages(Filter filter, Object[] uids) throws Exception(Code) | | See Also: org.columba.modules.mail.folder.Folder.searchMessages(FilterObject[]IWorkerStatusController) |
setNextUid | public void setNextUid(int next)(Code) | | |
supportsAddFolder | public boolean supportsAddFolder(String newFolderType)(Code) | | Virtual folders can only accept other Virtual folders as childs.
Parameters: newFolderType - a folder to check if it is a Virtual folder. true if the folder is a VirtualFolder; false otherwise. |
supportsAddMessage | public boolean supportsAddMessage()(Code) | | VirtualFolder doesn't allow adding messages, in comparison to other
regular mailbox folders.
See Also: org.columba.mail.folder.FolderTreeNode.supportsAddMessage |
tryToGetLock | public boolean tryToGetLock(Object locker)(Code) | | See Also: org.columba.mail.folder.FolderTreeNode.tryToGetLock(java.lang.Object) |
Methods inherited from org.columba.mail.folder.AbstractMessageFolder | protected InputStream decodeStream(MimeHeader header, InputStream bodyStream)(Code)(Java Doc) public boolean exists(Object uid) throws Exception(Code)(Java Doc) public void expungeFolder() throws Exception(Code)(Java Doc) public void fireMessageAdded(Object uid, Flags flags)(Code)(Java Doc) public void fireMessageFlagChanged(Object uid, Flags oldFlags, int variant)(Code)(Java Doc) public void fireMessageRemoved(Object uid, Flags flags)(Code)(Java Doc) public Object getAttribute(Object uid, String key) throws Exception(Code)(Java Doc) public Attributes getAttributes(Object uid) throws Exception(Code)(Java Doc) public File getDirectoryFile()(Code)(Java Doc) public IFilterList getFilterList()(Code)(Java Doc) public Flags getFlags(Object uid) throws Exception(Code)(Java Doc) abstract public IHeaderList getHeaderList() throws Exception(Code)(Java Doc) public Object getLastSelection()(Code)(Java Doc) public IMailboxInfo getMessageFolderInfo()(Code)(Java Doc) public IStatusObservable getObservable()(Code)(Java Doc) public DefaultSearchEngine getSearchEngine()(Code)(Java Doc) public Object[] getUids() throws Exception(Code)(Java Doc) protected boolean hasChanged()(Code)(Java Doc) public boolean isInboxFolder()(Code)(Java Doc) public boolean isReadOnly()(Code)(Java Doc) public boolean isTrashFolder()(Code)(Java Doc) protected void loadMessageFolderInfo()(Code)(Java Doc) protected void markMessage(Object uid, int variant) throws Exception(Code)(Java Doc) public void markMessage(Object[] uids, int variant) throws Exception(Code)(Java Doc) protected void recreateMessageFolderInfo()(Code)(Java Doc) public void removeMessage(Object uid) throws Exception(Code)(Java Doc) public void save() throws Exception(Code)(Java Doc) protected void saveMessageFolderInfo()(Code)(Java Doc) public Object[] searchMessages(IFilter filter, Object[] uids) throws Exception(Code)(Java Doc) public Object[] searchMessages(IFilter filter) throws Exception(Code)(Java Doc) public void setAttribute(Object uid, String key, Object value) throws Exception(Code)(Java Doc) public void setChanged(boolean b)(Code)(Java Doc) public void setLastSelection(Object lastSel)(Code)(Java Doc) public void setMessageFolderInfo(MailboxInfo i)(Code)(Java Doc) public void setSearchEngine(DefaultSearchEngine engine)(Code)(Java Doc) public boolean supportsAddMessage()(Code)(Java Doc) public String toString()(Code)(Java Doc) protected void updateMailFolderInfo(Flags flags, int variant) throws Exception(Code)(Java Doc)
|
|
|