| 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 String | MBoxDirectory(String sProfile, int iDomainId, String sWorkAreaGu) | public void | close() | public void | connect(String host, String user, String password) | public void | connect() | public JDCConnection | getConnection() | public DBFolder | getDBFolder(String sFolderName) | public Folder | getDefaultFolder() | public Folder | getFolder(URLName oURL) | public Folder | getFolder(String sFolderName) | public Folder[] | getPersonalNamespaces() | public Session | getSession() | public Folder[] | getSharedNamespaces() | public URLName | getURLName() | public ACLUser | getUser() | public Folder[] | getUserNamespaces(String sUserId) | public boolean | isConnected() | public static DBStore | open(Session oMailSession, String sProfile, String sMBoxDir, String sGuUser, String sPwd) | public DBFolder | openDBFolder(String sFolderName, int iMode) | public DBMimeMessage | preFetchMessage(Folder oIncomingFldr, int iMsgNum) | protected boolean | protocolConnect(String host, int port, String user, String password) |
DBStore | public DBStore(javax.mail.Session session, URLName url) throws MessagingException(Code) | | |
close | public void close() throws MessagingException(Code) | | |
connect | public void connect() throws MessagingException(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) | | |
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 - |
|
|