org.apache.myfaces.trinidaddemo.email
Class AccountData

java.lang.Object
  extended by org.apache.myfaces.trinidaddemo.email.AccountData
All Implemented Interfaces:
Serializable

public final class AccountData
extends Object
implements Serializable

Root bean which stores information and actions related to the email account

Version:
1.0
See Also:
Serialized Form

Constructor Summary
AccountData()
           
 
Method Summary
 void destroy()
          Frees up resources used by this object.
protected  void finalize()
          Clean up resources
 FolderData getCurrentFolder()
          Returns the currently selected folder.
 String getDomain()
          Returns the domain.
 TreeModel getFolderModel()
          Get the folder model used in the Trinidad tree component showing folders.
 String getPassword()
          Returns the password for the current user.
 PreferencesData getPreferences()
          Returns the current user's preferences
 FolderData[] getRootFolders()
          Returns the root folders.
 String getServer()
          Returns the IMAP server.
 String getSmtpServer()
          Returns the SMTP server.
 javax.mail.Store getStore()
          Returns the JavaMail Store object.
 String getUsername()
          Returns the user name.
 String login()
          Process login.
 String logout()
          Log out, and close up everything.
 void setCurrentFolder(FolderData folderData)
          Sets the current folder.
 void setDomain(String domain)
          Sets the domain for the current user.
 void setFolderModel(TreeModel model)
          Set the folder model used in the Trinidad tree component showing folders.
 void setPassword(String password)
          Sets the password for the current user.
 void setPreferences(PreferencesData preferences)
          Sets the Preferences for the current user.
 void setRootFolders(FolderData[] rootFolders)
          Sets the root folders.
 void setServer(String server)
          Sets the IMAP server for the current user.
 void setSmtpServer(String smtpServer)
          Sets the SMTP server.
 void setStore(javax.mail.Store store)
          Sets the Store.
 void setUsername(String userName)
          Sets the user name.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountData

public AccountData()
Method Detail

getUsername

public String getUsername()
Returns the user name.


getDomain

public String getDomain()
Returns the domain.


getServer

public String getServer()
Returns the IMAP server.


getSmtpServer

public String getSmtpServer()
Returns the SMTP server.


getPassword

public String getPassword()
Returns the password for the current user.


getStore

public javax.mail.Store getStore()
Returns the JavaMail Store object.


getCurrentFolder

public FolderData getCurrentFolder()
Returns the currently selected folder.


getRootFolders

public FolderData[] getRootFolders()
Returns the root folders.


getPreferences

public PreferencesData getPreferences()
Returns the current user's preferences


getFolderModel

public TreeModel getFolderModel()
Get the folder model used in the Trinidad tree component showing folders.


setUsername

public void setUsername(String userName)
Sets the user name.


setDomain

public void setDomain(String domain)
Sets the domain for the current user.


setServer

public void setServer(String server)
Sets the IMAP server for the current user.


setSmtpServer

public void setSmtpServer(String smtpServer)
Sets the SMTP server.


setPassword

public void setPassword(String password)
Sets the password for the current user.


setStore

public void setStore(javax.mail.Store store)
Sets the Store.


setCurrentFolder

public void setCurrentFolder(FolderData folderData)
Sets the current folder.


setRootFolders

public void setRootFolders(FolderData[] rootFolders)
Sets the root folders.


setPreferences

public void setPreferences(PreferencesData preferences)
                    throws javax.mail.MessagingException
Sets the Preferences for the current user.

Throws:
javax.mail.MessagingException

setFolderModel

public void setFolderModel(TreeModel model)
Set the folder model used in the Trinidad tree component showing folders.


login

public String login()
Process login. Connect to server and move to folder display page.


logout

public String logout()
Log out, and close up everything.


destroy

public void destroy()
Frees up resources used by this object.


finalize

protected void finalize()
                 throws Throwable
Clean up resources

Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.