Blue Mind
Release 1.0

net.bluemind.core.client.setting
Class SettingClient

java.lang.Object
  extended by net.bluemind.core.client.impl.AbstractClientImpl
      extended by net.bluemind.core.client.setting.SettingClient
All Implemented Interfaces:
ISetting, ISyncClient

public class SettingClient
extends AbstractClientImpl
implements ISetting


Field Summary
 
Fields inherited from class net.bluemind.core.client.impl.AbstractClientImpl
logger
 
Constructor Summary
SettingClient(java.lang.String backendUrl)
           
 
Method Summary
 ForwardingSettings getEmailForwarding(AccessToken token, int userId)
           
 java.util.Map<java.lang.String,java.lang.String> getSettings(AccessToken token)
           
 java.util.Map<java.lang.String,java.lang.String> getSettings(AccessToken token, int userId)
           
 VacationSettings getVacationSettings(AccessToken token, int userId)
           
 AccessToken login(java.lang.String login, java.lang.String password, java.lang.String origin)
           
 void logout(AccessToken at)
           
 void setEmailForwarding(AccessToken token, int userId, ForwardingSettings fs)
           
 void setSetting(AccessToken token, int userId, java.lang.String key, java.lang.String value)
           
 void setSettings(AccessToken token, int userId, java.util.Map<java.lang.String,java.lang.String> settings)
           
 void setVacationSettings(AccessToken token, int userId, VacationSettings vs)
           
 
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

SettingClient

public SettingClient(java.lang.String backendUrl)
Method Detail

getSettings

public java.util.Map<java.lang.String,java.lang.String> getSettings(AccessToken token)
                                                             throws AuthFault,
                                                                    ServerFault
Specified by:
getSettings in interface ISetting
Throws:
AuthFault
ServerFault

setSetting

public void setSetting(AccessToken token,
                       int userId,
                       java.lang.String key,
                       java.lang.String value)
                throws AuthFault,
                       ServerFault
Specified by:
setSetting in interface ISetting
Throws:
AuthFault
ServerFault

setVacationSettings

public void setVacationSettings(AccessToken token,
                                int userId,
                                VacationSettings vs)
                         throws AuthFault,
                                ServerFault
Specified by:
setVacationSettings in interface ISetting
Throws:
AuthFault
ServerFault

setEmailForwarding

public void setEmailForwarding(AccessToken token,
                               int userId,
                               ForwardingSettings fs)
                        throws AuthFault,
                               ServerFault
Specified by:
setEmailForwarding in interface ISetting
Throws:
AuthFault
ServerFault

getEmailForwarding

public ForwardingSettings getEmailForwarding(AccessToken token,
                                             int userId)
                                      throws AuthFault,
                                             ServerFault
Specified by:
getEmailForwarding in interface ISetting
Throws:
AuthFault
ServerFault

getVacationSettings

public VacationSettings getVacationSettings(AccessToken token,
                                            int userId)
                                     throws AuthFault,
                                            ServerFault
Specified by:
getVacationSettings in interface ISetting
Throws:
AuthFault
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

getSettings

public java.util.Map<java.lang.String,java.lang.String> getSettings(AccessToken token,
                                                                    int userId)
                                                             throws AuthFault,
                                                                    ServerFault
Specified by:
getSettings in interface ISetting
Throws:
AuthFault
ServerFault

setSettings

public void setSettings(AccessToken token,
                        int userId,
                        java.util.Map<java.lang.String,java.lang.String> settings)
                 throws AuthFault,
                        ServerFault
Specified by:
setSettings in interface ISetting
Throws:
AuthFault
ServerFault

Blue Mind
Release 1.0