com.funambol.email.inboxlistener.console
Class MenuWSDAO

java.lang.Object
  extended by com.funambol.email.inboxlistener.console.MenuWSDAO

public class MenuWSDAO
extends java.lang.Object

Contains methods to access to the DB tables


Constructor Summary
MenuWSDAO(java.lang.String endPoint, java.lang.String user, java.lang.String pwd)
           
 
Method Summary
 int checkAccount(MailServerAccount msa)
          Get Account; returns the MailAccount Object with all the info about the user
 void deleteAccount(java.lang.String accountID)
           
 void deleteMailServer(java.lang.String mailserverID)
           
 void disableAccount(java.lang.String accountID)
           
 void enableAccount(java.lang.String accountID)
           
 MailServerAccount getAccount(java.lang.String username)
          Get Account; returns the MailAccount Object with all the info about the user
 MailServerAccount getAccountFromID(java.lang.String accountID)
          Get Account; returns the MailAccount Object with all the info about the user
 MailServerAccount[] getAccounts()
          Gets Accounts returns a list that contains MailAccount
 SyncItemInfoAdmin[] getCachedInfo(java.lang.String username, java.lang.String protocol)
          Get Account; returns the MailAccount Object with all the info about the user
 MailServer getMailServerFromID(java.lang.String mailserverID)
          Get Account; returns the MailAccount Object with all the info about the user
 MailServer[] getMailServers()
          Gets Accounts returns a list that contains MailAccount
 void insertAccount(MailServerAccount msa)
           
 void insertMailServer(MailServer ms)
           
 void updateAccount(MailServerAccount msa)
           
 void updateMailServer(MailServer ms)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuWSDAO

public MenuWSDAO(java.lang.String endPoint,
                 java.lang.String user,
                 java.lang.String pwd)
          throws InboxListenerException
Parameters:
endPoint -
user -
pwd -
Throws:
InboxListenerException
Method Detail

getAccounts

public MailServerAccount[] getAccounts()
                                throws InboxListenerException,
                                       com.funambol.framework.tools.beans.BeanException
Gets Accounts returns a list that contains MailAccount

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

getMailServers

public MailServer[] getMailServers()
                            throws InboxListenerException,
                                   com.funambol.framework.tools.beans.BeanException
Gets Accounts returns a list that contains MailAccount

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

getAccount

public MailServerAccount getAccount(java.lang.String username)
                             throws InboxListenerException
Get Account; returns the MailAccount Object with all the info about the user

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

getCachedInfo

public SyncItemInfoAdmin[] getCachedInfo(java.lang.String username,
                                         java.lang.String protocol)
                                  throws InboxListenerException
Get Account; returns the MailAccount Object with all the info about the user

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

checkAccount

public int checkAccount(MailServerAccount msa)
                 throws InboxListenerException
Get Account; returns the MailAccount Object with all the info about the user

Parameters:
msa -
Returns:
account info MailboxAccount
Throws:
InboxListenerException

getMailServerFromID

public MailServer getMailServerFromID(java.lang.String mailserverID)
                               throws InboxListenerException
Get Account; returns the MailAccount Object with all the info about the user

Parameters:
mailserverID -
Returns:
account info MailboxAccount
Throws:
InboxListenerException

getAccountFromID

public MailServerAccount getAccountFromID(java.lang.String accountID)
                                   throws InboxListenerException
Get Account; returns the MailAccount Object with all the info about the user

Parameters:
accountID -
Returns:
account info MailboxAccount
Throws:
InboxListenerException

insertAccount

public void insertAccount(MailServerAccount msa)
                   throws InboxListenerException
Parameters:
msa -
Throws:
InboxListenerException

insertMailServer

public void insertMailServer(MailServer ms)
                      throws InboxListenerException
Parameters:
ms -
Throws:
InboxListenerException

updateAccount

public void updateAccount(MailServerAccount msa)
                   throws InboxListenerException
Parameters:
msa -
Throws:
InboxListenerException

disableAccount

public void disableAccount(java.lang.String accountID)
                    throws InboxListenerException
Parameters:
msa -
msa -
Throws:
InboxListenerException

enableAccount

public void enableAccount(java.lang.String accountID)
                   throws InboxListenerException
Parameters:
msa -
msa -
Throws:
InboxListenerException

updateMailServer

public void updateMailServer(MailServer ms)
                      throws InboxListenerException
Parameters:
ms -
Throws:
InboxListenerException

deleteAccount

public void deleteAccount(java.lang.String accountID)
                   throws InboxListenerException
Parameters:
accountID -
Throws:
InboxListenerException

deleteMailServer

public void deleteMailServer(java.lang.String mailserverID)
                      throws InboxListenerException
Parameters:
mailserverID -
Throws:
InboxListenerException


Copyright © 2005-2006 Funambol.