| java.lang.Object com.ivata.groupware.business.mail.server.JavaMailServer
All known Subclasses: com.ivata.groupware.business.mail.server.HMailServer, com.ivata.groupware.business.mail.server.ScriptMailServer,
JavaMailServer | abstract public class JavaMailServer implements MailServer(Code) | |
Uses JavaMail methods to actually log into the mail server.
since: ivata groupware 0.10 (2005-02-21) author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.8 $ |
JavaMailServer | public JavaMailServer(AddressBook addressBookParam, Settings settingsParam)(Code) | | Constructor. Normally called by PicoContainer .
Parameters: addressBookParam - Used to look-up the people associated with siteusers. Parameters: settingsParam - Used to access email settings such as the sitehost, and folder names. |
checkPassword | public boolean checkPassword(SecuritySession securitySession, String userName, String password) throws SystemException(Code) | | Parameters: securitySession - Parameters: userName - Parameters: password - throws: SystemException - |
connectStore | public Store connectStore(MailSession mailSession) throws SystemException(Code) | | Helper. Get the store from the mail session and connect it.
Parameters: mailSession - Used to access JavaMail store. A valid, connected JavaMail store. throws: SystemException - If we cannot connect for any reason. |
getFolder | public Folder getFolder(SecuritySession securitySession, Store store, String name) throws SystemException(Code) | | Wrapper for Store.getFolder to get around the fact that
courier/cyrus imap prefixes all "personal namespace" folder names with
"INBOX".
Parameters: securitySession - used to access the settings. Parameters: store - valid, connected store. Parameters: name - name of the folder you want to open. folder for the name you passed. throws: SystemException - if the settings cannot be accessed, or there isany exception accessing the store. |
hasNewMessages | public boolean hasNewMessages(SecuritySession securitySession, String userName, String folderName) throws SystemException(Code) | | Parameters: securitySession - Parameters: userName - Parameters: folderName - throws: SystemException - |
|
|