Blue Mind
Release 1.0

net.bluemind.core.client.mail
Class MailClient

java.lang.Object
  extended by net.bluemind.core.client.impl.AbstractClientImpl
      extended by net.bluemind.core.client.mail.MailClient
All Implemented Interfaces:
IMail, ISyncClient

public class MailClient
extends AbstractClientImpl
implements IMail


Field Summary
 
Fields inherited from class net.bluemind.core.client.impl.AbstractClientImpl
logger
 
Constructor Summary
MailClient(java.lang.String backUrl)
           
 
Method Summary
 java.util.List<Folder> getFolders(AccessToken at)
           
 int getUnreadMailCount(AccessToken at)
          If the user has a mailbox, returns the unread mails count
 AccessToken login(java.lang.String login, java.lang.String password, java.lang.String origin)
           
 void logout(AccessToken at)
           
 
Methods inherited from class net.bluemind.core.client.impl.AbstractClientImpl
checkServerError, execute, executeStream, executeVoid, initParams, setToken, sudo, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailClient

public MailClient(java.lang.String backUrl)
Method Detail

getUnreadMailCount

public int getUnreadMailCount(AccessToken at)
                       throws ServerFault
Description copied from interface: IMail
If the user has a mailbox, returns the unread mails count

Specified by:
getUnreadMailCount in interface IMail
Returns:
Throws:
ServerFault

login

public AccessToken login(java.lang.String login,
                         java.lang.String password,
                         java.lang.String origin)
Specified by:
login in interface ISyncClient
Overrides:
login in class AbstractClientImpl

logout

public void logout(AccessToken at)
Specified by:
logout in interface ISyncClient
Overrides:
logout in class AbstractClientImpl

getFolders

public java.util.List<Folder> getFolders(AccessToken at)
                                  throws ServerFault,
                                         AuthFault
Specified by:
getFolders in interface IMail
Throws:
ServerFault
AuthFault

Blue Mind
Release 1.0