apps.email.db
Class Account

java.lang.Object
  |
  +--apps.email.db.Account

public class Account
extends java.lang.Object

Stores information about a particular e-mail account.


Constructor Summary
Account(int userid, java.lang.String email, java.lang.String password, java.lang.String host, java.lang.String protocol)
          Constructs a new Account
 
Method Summary
 java.lang.String getEmail()
          Retrieves the email address.
 javax.mail.Folder getFolder()
          Retreives the Folder object.
 java.lang.String getHost()
          Retrieves the host server.
 java.lang.String getPassword()
          Retrieves the password.
 javax.mail.Session getSession()
          Retrieves the session.
 javax.mail.Store getStore()
          Retreives the Store object.
 int getUserd()
          Retrieves the user id.
 boolean reconnectToEmailFolder()
          Attempts to reconnect to the email folder if the folder is closed or locked.
 void setFolder(javax.mail.Folder f)
          Sets the folder.
 void setSession(javax.mail.Session s)
          Sets the session.
 void setStore(javax.mail.Store s)
          Sets the store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Account

public Account(int userid,
               java.lang.String email,
               java.lang.String password,
               java.lang.String host,
               java.lang.String protocol)
Constructs a new Account
Parameters:
userid - The unique userid
email - The e-mail address
password - The password
host - The host of the e-mail server (i.e. pop.cc.columbia.edu)
protocol - The protocol (i.e. IMAP, POP3)
Method Detail

reconnectToEmailFolder

public boolean reconnectToEmailFolder()
Attempts to reconnect to the email folder if the folder is closed or locked.

getUserd

public int getUserd()
Retrieves the user id.
Returns:
the user id

getEmail

public java.lang.String getEmail()
Retrieves the email address.
Returns:
the email address

getPassword

public java.lang.String getPassword()
Retrieves the password.
Returns:
the password

getHost

public java.lang.String getHost()
Retrieves the host server.
Returns:
the host

getSession

public javax.mail.Session getSession()
Retrieves the session.
Returns:
the session

setSession

public void setSession(javax.mail.Session s)
Sets the session.
Parameters:
s - the session

getStore

public javax.mail.Store getStore()
Retreives the Store object.
Returns:
the store

setStore

public void setStore(javax.mail.Store s)
Sets the store.
Parameters:
s - the store

getFolder

public javax.mail.Folder getFolder()
Retreives the Folder object.
Returns:
the folder

setFolder

public void setFolder(javax.mail.Folder f)
Sets the folder.
Parameters:
f - the folder