Java Doc for VirtualFolder.java in  » Mail-Clients » columba-1.4 » org » columba » mail » folder » virtual » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Mail Clients » columba 1.4 » org.columba.mail.folder.virtual 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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



Field Summary
protected  IHeaderListheaderList
    
protected  intnextUid
    

Constructor Summary
public  VirtualFolder(FolderItem item, String path)
    
public  VirtualFolder(String name)
    
public  VirtualFolder(String name, IMailFolder sourceFolder)
    

Method Summary
public  voidactivate()
    
public  Objectadd(ColumbaHeader header, IMailbox source, Object uid)
    
public  ObjectaddMessage(InputStream in)
    
public  ObjectaddMessage(InputStream in, Attributes attributes, Flags flags)
    
public  voidaddSearchToHistory()
    
protected  voidapplySearch()
    
protected  voidapplySearch(IMailFolder parent, Filter filter)
    
public  voiddeactivate()
    
public  booleanexists(Object uid)
    
public  voidexpungeFolder()
    
public  voidfolderAdded(IFolderEvent e)
    
public  voidfolderPropertyChanged(IFolderEvent e)
    
public  voidfolderRemoved(IFolderEvent e)
    
protected  ObjectgenerateNextUid()
    
public  HeadergetAllHeaderFields(Object uid)
    
public  ObjectgetAttribute(Object uid, String key)
    
public  AttributesgetAttributes(Object uid)
    
public  StringgetDefaultChild()
    
public static  XmlElementgetDefaultProperties()
    
public  FiltergetFilter()
    
public  FlagsgetFlags(Object uid)
    
public  HeadergetHeaderFields(Object uid, String[] keys)
    
public  IHeaderListgetHeaderList()
    
public  ObjectgetLastSelection()
    
public  InputStreamgetMessageSourceStream(Object uid)
    
public  InputStreamgetMimePartBodyStream(Object uid, Integer[] address)
    
public  InputStreamgetMimePartSourceStream(Object uid, Integer[] address)
    
public  MimeTreegetMimePartTree(Object uid)
    
public  IMailFoldergetRootFolder()
    
public  DefaultSearchEnginegetSearchEngine()
    
 IMailFoldergetSourceFolder()
    
public  Object[]getUids()
    
public  VirtualHeadergetVirtualHeader(Object virtualUid)
     Get virtual header.
protected  booleanhasFlagsCriteria()
    
public  voidinnerCopy(IMailbox destFolder, Object[] uids)
    
public  voidmarkMessage(Object[] uids, int variant)
    
public  voidmessageAdded(IFolderEvent e)
    
public  voidmessageFlagChanged(IFolderEvent e)
    
public  voidmessageRemoved(IFolderEvent e)
    
public  voidreleaseLock(Object locker)
    
public  voidremoveFolder()
    
public  voidremoveMessage(Object uid)
    
public  Object[]searchMessages(Filter filter, Object[] uids)
    
public  Object[]searchMessages(Filter filter)
    
public  voidsetAttribute(Object uid, String key, Object value)
    
public  voidsetNextUid(int next)
    
public  JDialogshowFilterDialog(AbstractMailFrameController frameController)
    
protected  ObjectsrcUidToVirtualUid(IMailFolder srcFolder, Object uid)
    
public  booleansupportsAddFolder(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  booleansupportsAddMessage()
     VirtualFolder doesn't allow adding messages, in comparison to other regular mailbox folders.
public  booleansupportsMove()
    
public  booleantryToGetLock(Object locker)
    

Field Detail
headerList
protected IHeaderList headerList(Code)



nextUid
protected int nextUid(Code)




Constructor Detail
VirtualFolder
public VirtualFolder(FolderItem item, String path)(Code)



VirtualFolder
public VirtualFolder(String name)(Code)



VirtualFolder
public VirtualFolder(String name, IMailFolder sourceFolder)(Code)




Method Detail
activate
public void activate() throws Exception(Code)



add
public Object add(ColumbaHeader header, IMailbox source, Object uid) throws Exception(Code)



addMessage
public Object addMessage(InputStream in) throws Exception(Code)



addMessage
public Object addMessage(InputStream in, Attributes attributes, Flags flags) throws Exception(Code)



addSearchToHistory
public void addSearchToHistory() throws Exception(Code)



applySearch
protected void applySearch() throws Exception(Code)



applySearch
protected void applySearch(IMailFolder parent, Filter filter) throws Exception(Code)



deactivate
public void deactivate()(Code)



exists
public boolean exists(Object uid) throws Exception(Code)



expungeFolder
public void expungeFolder() throws Exception(Code)

See Also:   org.columba.mail.folder.IMailbox.expungeFolder



folderAdded
public void folderAdded(IFolderEvent e)(Code)



folderPropertyChanged
public void folderPropertyChanged(IFolderEvent e)(Code)



folderRemoved
public void folderRemoved(IFolderEvent e)(Code)



generateNextUid
protected Object generateNextUid()(Code)



getAllHeaderFields
public Header getAllHeaderFields(Object uid) throws Exception(Code)

See Also:   org.columba.mail.folder.IMailbox.getAllHeaderFields(java.lang.Object)



getAttribute
public Object getAttribute(Object uid, String key) throws Exception(Code)



getAttributes
public Attributes getAttributes(Object uid) throws Exception(Code)



getDefaultChild
public String getDefaultChild()(Code)

See Also:   org.columba.modules.mail.folder.FolderTreeNode.instanceNewChildNode(AdapterNodeFolderItem)



getDefaultProperties
public static XmlElement getDefaultProperties()(Code)



getFilter
public Filter getFilter()(Code)



getFlags
public Flags getFlags(Object uid) throws Exception(Code)



getHeaderFields
public Header getHeaderFields(Object uid, String[] keys) throws Exception(Code)



getHeaderList
public IHeaderList getHeaderList() throws Exception(Code)



getLastSelection
public Object getLastSelection()(Code)

See Also:   org.columba.mail.folder.AbstractMessageFolder.getLastSelection



getMessageSourceStream
public InputStream getMessageSourceStream(Object uid) throws Exception(Code)



getMimePartBodyStream
public InputStream getMimePartBodyStream(Object uid, Integer[] address) throws Exception(Code)



getMimePartSourceStream
public InputStream getMimePartSourceStream(Object uid, Integer[] address) throws Exception(Code)



getMimePartTree
public MimeTree getMimePartTree(Object uid) throws Exception(Code)

See Also:   org.columba.modules.mail.folder.Folder.getMimeTree(ObjectIMAPFolder)



getRootFolder
public IMailFolder getRootFolder()(Code)



getSearchEngine
public DefaultSearchEngine getSearchEngine()(Code)



getSourceFolder
IMailFolder getSourceFolder()(Code)



getUids
public Object[] getUids() throws Exception(Code)



getVirtualHeader
public VirtualHeader getVirtualHeader(Object virtualUid)(Code)
Get virtual header.
Parameters:
  virtualUid - virtual uid virtual header



hasFlagsCriteria
protected boolean hasFlagsCriteria()(Code)



innerCopy
public void innerCopy(IMailbox destFolder, Object[] uids) throws Exception(Code)



markMessage
public void markMessage(Object[] uids, int variant) throws Exception(Code)

See Also:   org.columba.modules.mail.folder.Folder.markMessage(Object[]intIMAPFolder)



messageAdded
public void messageAdded(IFolderEvent e)(Code)



messageFlagChanged
public void messageFlagChanged(IFolderEvent e)(Code)



messageRemoved
public void messageRemoved(IFolderEvent e)(Code)



releaseLock
public void releaseLock(Object locker)(Code)

See Also:   org.columba.mail.folder.AbstractFolder.releaseLock(java.lang.Object)



removeFolder
public void removeFolder() throws Exception(Code)



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)



searchMessages
public Object[] searchMessages(Filter filter) throws Exception(Code)



setAttribute
public void setAttribute(Object uid, String key, Object value) throws Exception(Code)



setNextUid
public void setNextUid(int next)(Code)



showFilterDialog
public JDialog showFilterDialog(AbstractMailFrameController frameController)(Code)



srcUidToVirtualUid
protected Object srcUidToVirtualUid(IMailFolder srcFolder, Object uid)(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



supportsMove
public boolean supportsMove()(Code)

See Also:   org.columba.mail.folder.AbstractFolder.supportsMove



tryToGetLock
public boolean tryToGetLock(Object locker)(Code)

See Also:   org.columba.mail.folder.FolderTreeNode.tryToGetLock(java.lang.Object)



Fields inherited from org.columba.mail.folder.AbstractMessageFolder
protected boolean changed(Code)(Java Doc)
protected File directoryFile(Code)(Java Doc)
protected FilterList filterList(Code)(Java Doc)
protected Object lastSelection(Code)(Java Doc)
protected IMailboxInfo messageFolderInfo(Code)(Java Doc)
protected IStatusObservable observable(Code)(Java Doc)
protected DefaultSearchEngine searchEngine(Code)(Java Doc)

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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.