com.funambol.email.admin
Class AccountController

java.lang.Object
  extended by com.funambol.email.admin.AccountController

public class AccountController
extends java.lang.Object

This class contains the logic and visual representation for mail server account handling processes (insertion, modification, deletation, inspecting cache).


Constructor Summary
AccountController(boolean isPopup)
          Creates a new instance of an AccountController object.
 
Method Summary
 int deleteAccount(MailServerAccount account)
          Account deletetion process.
 java.awt.Container getPanel()
          Gets the mainPanel property.
 void insertAccount()
          The account insertion process is performed through the following steps:

1 - select an user from a list of users (selectUser()) 2 - insert account specific informations (accountDetails())

 MailServerAccount modifyAccount(MailServerAccount account)
          Account modification process.
 void selectUser()
          Select an user from a list of ds-server users.
 void setParentFrame(java.awt.Frame parent)
          Sets the parent frame property
 void showCache(java.lang.String username, java.lang.String protocol)
          Shows cache entries for given username,protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountController

public AccountController(boolean isPopup)
Creates a new instance of an AccountController object.

Parameters:
isPopup - flag that specify if processes will be displaied in a popup window or a frame in the admin tool.
Method Detail

getPanel

public java.awt.Container getPanel()
Gets the mainPanel property.

Returns:
mainPanel

setParentFrame

public void setParentFrame(java.awt.Frame parent)
Sets the parent frame property


selectUser

public void selectUser()
Select an user from a list of ds-server users.


insertAccount

public void insertAccount()
The account insertion process is performed through the following steps:

1 - select an user from a list of users (selectUser()) 2 - insert account specific informations (accountDetails())


modifyAccount

public MailServerAccount modifyAccount(MailServerAccount account)
Account modification process.

Parameters:
account - account to be modified
Returns:
updated account

deleteAccount

public int deleteAccount(MailServerAccount account)
Account deletetion process.
TODO deletetion of more than one account (by now only one account can be deleted)

Parameters:
account - account to be deleted
Returns:
number of records deleted

showCache

public void showCache(java.lang.String username,
                      java.lang.String protocol)
Shows cache entries for given username,protocol.



Copyright © 2005-2006 Funambol.