Java Doc for DBStore.java in  » Groupware » hipergate » com » knowgate » hipermail » 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 » Groupware » hipergate » com.knowgate.hipermail 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.knowgate.hipermail.DBStore

DBStore
public class DBStore extends javax.mail.Store (Code)
Manages local storage of mail messages at RDBMS and MBOX files
author:
   Sergio Montoro Ten
version:
   2.2



Constructor Summary
public  DBStore(javax.mail.Session session, URLName url)
    

Method Summary
public static  StringMBoxDirectory(String sProfile, int iDomainId, String sWorkAreaGu)
    
public  voidclose()
    
public  voidconnect(String host, String user, String password)
    
public  voidconnect()
    
public  JDCConnectiongetConnection()
    
public  DBFoldergetDBFolder(String sFolderName)
    
public  FoldergetDefaultFolder()
    
public  FoldergetFolder(URLName oURL)
    
public  FoldergetFolder(String sFolderName)
    
public  Folder[]getPersonalNamespaces()
    
public  SessiongetSession()
    
public  Folder[]getSharedNamespaces()
    
public  URLNamegetURLName()
    
public  ACLUsergetUser()
    
public  Folder[]getUserNamespaces(String sUserId)
    
public  booleanisConnected()
    
public static  DBStoreopen(Session oMailSession, String sProfile, String sMBoxDir, String sGuUser, String sPwd)
    
public  DBFolderopenDBFolder(String sFolderName, int iMode)
    
public  DBMimeMessagepreFetchMessage(Folder oIncomingFldr, int iMsgNum)
    
protected  booleanprotocolConnect(String host, int port, String user, String password)
    


Constructor Detail
DBStore
public DBStore(javax.mail.Session session, URLName url) throws MessagingException(Code)




Method Detail
MBoxDirectory
public static String MBoxDirectory(String sProfile, int iDomainId, String sWorkAreaGu) throws ProtocolException(Code)



close
public void close() throws MessagingException(Code)



connect
public void connect(String host, String user, String password) throws MessagingException(Code)



connect
public void connect() throws MessagingException(Code)



getConnection
public JDCConnection getConnection()(Code)



getDBFolder
public DBFolder getDBFolder(String sFolderName) throws StoreClosedException, FolderNotFoundException, MessagingException(Code)
Same as getFolder() but casting result to DBFolder
Parameters:
  sFolderName - String DBFolder
throws:
  StoreClosedException -
throws:
  FolderNotFoundException -
throws:
  MessagingException -



getDefaultFolder
public Folder getDefaultFolder() throws StoreClosedException, FolderNotFoundException, MessagingException(Code)
Get inbox Folder DBFolder
throws:
  StoreClosedException -
throws:
  FolderNotFoundException -
throws:
  MessagingException -



getFolder
public Folder getFolder(URLName oURL) throws StoreClosedException, FolderNotFoundException, MessagingException(Code)
Calls getFolder(oURL.getFile());
Parameters:
  oURL - URLName DBFolder instance
throws:
  StoreClosedException -
throws:
  FolderNotFoundException -
throws:
  MessagingException -



getFolder
public Folder getFolder(String sFolderName) throws StoreClosedException, FolderNotFoundException, MessagingException(Code)

Get folder by guid or name


Parameters:
  sFolderName - String This parameter may be either the folder GUID or its namevalid folder names are {inbox, outbox, drafts, sent, spam, deleted, received} DBFolder instance
throws:
  StoreClosedException -
throws:
  FolderNotFoundException -
throws:
  MessagingException -



getPersonalNamespaces
public Folder[] getPersonalNamespaces() throws StoreClosedException, FolderNotFoundException, MessagingException(Code)



getSession
public Session getSession()(Code)



getSharedNamespaces
public Folder[] getSharedNamespaces()(Code)



getURLName
public URLName getURLName()(Code)



getUser
public ACLUser getUser()(Code)



getUserNamespaces
public Folder[] getUserNamespaces(String sUserId) throws StoreClosedException, FolderNotFoundException, MessagingException(Code)



isConnected
public boolean isConnected()(Code)



open
public static DBStore open(Session oMailSession, String sProfile, String sMBoxDir, String sGuUser, String sPwd) throws MessagingException(Code)
Create new DBStore instance and open connection to the database
Parameters:
  oMailSession - Session
Parameters:
  sProfile - String
Parameters:
  sMBoxDir - String
Parameters:
  sGuUser - String
Parameters:
  sPwd - String DBStore
throws:
  MessagingException -



openDBFolder
public DBFolder openDBFolder(String sFolderName, int iMode) throws StoreClosedException, FolderNotFoundException, MessagingException(Code)
Get DBFolder and open it in the specified mode
Parameters:
  sFolderName - String
Parameters:
  iMode - int {DBFolder.READ_ONLY | DBFolder.READ_WRITE} DBFolder
throws:
  StoreClosedException -
throws:
  FolderNotFoundException -
throws:
  MessagingException -



preFetchMessage
public DBMimeMessage preFetchMessage(Folder oIncomingFldr, int iMsgNum) throws MessagingException(Code)
Fetch a message from a POP3 or other remote folder into de local cache
Parameters:
  oIncomingFldr - Incoming Folder (POP3, IMAP, or other)
Parameters:
  iMsgNum - int Message number DBMimeMessage
throws:
  MessagingException -



protocolConnect
protected boolean protocolConnect(String host, int port, String user, String password) throws AuthenticationFailedException, MessagingException(Code)

Parameters:
  host - Name of profile file without extension { hipergate, real, test, demo }
Parameters:
  port - Not used, must be -1
Parameters:
  user - GUID of user to be authenticated
Parameters:
  password - User password in clear text true
throws:
  MessagingException -



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