com.funambol.email.admin.dao
Class WSDAO

java.lang.Object
  extended by com.funambol.email.admin.dao.WSDAO

public class WSDAO
extends java.lang.Object

Contains methods to access to the DB tables.


Constructor Summary
WSDAO(java.lang.String endPoint, java.lang.String user, java.lang.String pwd)
          Creates a new instance of WSDAO.
 
Method Summary
 void deleteAccount(java.lang.String accountID)
          Delete account with the given ID.
 int deleteMailServer(java.lang.String mailserverID)
          Delete mail server with the given ID.
 MailServerAccount getAccount(java.lang.String username)
          Retrieve the account for the given username.
 MailServerAccount[] getAccounts(com.funambol.framework.filter.Clause clause)
          Retrieve an array of the MailServerAccount objects that match the given clause.
 SyncItemInfoAdmin[] getCachedInfo(java.lang.String username, java.lang.String protocol)
          Retrieve all the cache entries for given username,protocol.
 MailServer[] getMailServers(com.funambol.framework.filter.Clause clause)
          Retrieve an array of the MailServer objects that match the given clause.
 void insertAccount(MailServerAccount msa)
          Insert a given account.
 void insertMailServer(MailServer ms)
          Insert a given mail server.
 void updateAccount(MailServerAccount msa)
          Updates a given account.
 void updateMailServer(MailServer ms)
          Updates a given mail server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDAO

public WSDAO(java.lang.String endPoint,
             java.lang.String user,
             java.lang.String pwd)
      throws InboxListenerException
Creates a new instance of WSDAO.

Parameters:
endPoint -
user -
pwd -
Throws:
InboxListenerException
Method Detail

getAccounts

public MailServerAccount[] getAccounts(com.funambol.framework.filter.Clause clause)
                                throws InboxListenerException,
                                       com.funambol.framework.tools.beans.BeanException
Retrieve an array of the MailServerAccount objects that match the given clause.

Returns:
MailServerAccount[]
Throws:
InboxListenerException
com.funambol.framework.tools.beans.BeanException

getMailServers

public MailServer[] getMailServers(com.funambol.framework.filter.Clause clause)
                            throws InboxListenerException,
                                   com.funambol.framework.tools.beans.BeanException
Retrieve an array of the MailServer objects that match the given clause.

Returns:
MailServer[]
Throws:
InboxListenerException
com.funambol.framework.tools.beans.BeanException

getAccount

public MailServerAccount getAccount(java.lang.String username)
                             throws InboxListenerException
Retrieve the account for the given username.

Parameters:
username - String
Returns:
account info MailboxAccount
Throws:
InboxListenerException

insertAccount

public void insertAccount(MailServerAccount msa)
                   throws InboxListenerException
Insert a given account.

Parameters:
msa - the account to be inserted
Throws:
InboxListenerException

insertMailServer

public void insertMailServer(MailServer ms)
                      throws InboxListenerException
Insert a given mail server.

Parameters:
ms - the mail server to be inserted
Throws:
InboxListenerException

updateAccount

public void updateAccount(MailServerAccount msa)
                   throws InboxListenerException
Updates a given account.

Parameters:
msa - account to be updated
Throws:
InboxListenerException

updateMailServer

public void updateMailServer(MailServer ms)
                      throws InboxListenerException
Updates a given mail server.

Parameters:
ms - mail server to be updated
Throws:
InboxListenerException

deleteAccount

public void deleteAccount(java.lang.String accountID)
                   throws InboxListenerException
Delete account with the given ID.

Parameters:
accountID - id for the account to be deleted.
Throws:
InboxListenerException

deleteMailServer

public int deleteMailServer(java.lang.String mailserverID)
                     throws InboxListenerException
Delete mail server with the given ID.

Parameters:
mailserverID - id for the mail server to be deleted.
Throws:
InboxListenerException

getCachedInfo

public SyncItemInfoAdmin[] getCachedInfo(java.lang.String username,
                                         java.lang.String protocol)
                                  throws InboxListenerException
Retrieve all the cache entries for given username,protocol.

Parameters:
username -
protocol -
Returns:
the array of cache entries
Throws:
InboxListenerException


Copyright © 2005-2006 Funambol.