Blue Mind
Release 1.0

net.bluemind.core.client.device
Class DeviceClient

java.lang.Object
  extended by net.bluemind.core.client.impl.AbstractClientImpl
      extended by net.bluemind.core.client.device.DeviceClient
All Implemented Interfaces:
IDevice, ISyncClient

public class DeviceClient
extends AbstractClientImpl
implements IDevice


Field Summary
 
Fields inherited from class net.bluemind.core.client.impl.AbstractClientImpl
logger
 
Constructor Summary
DeviceClient(java.lang.String syncServicesUrl)
           
 
Method Summary
 Device addPartnership(AccessToken token, Device d)
           
 Device create(AccessToken token, Device d)
           
 ResultList<DeviceUser> find(AccessToken token, DeviceQuery dq)
           
 java.util.List<Device> getDevices(AccessToken token, int id)
           
 java.util.List<java.lang.String> getType(AccessToken token)
           
 boolean hasPartnership(AccessToken token, int userId, java.lang.String deviceIdentifier)
           
 AccessToken login(java.lang.String login, java.lang.String password, java.lang.String origin)
           
 void logout(AccessToken at)
           
 Device removeDevice(AccessToken token, int deviceId)
           
 Device removePartnership(AccessToken token, Device d)
           
 void removeSyncKeys(AccessToken token, int deviceId)
           
 
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

DeviceClient

public DeviceClient(java.lang.String syncServicesUrl)
Method Detail

getDevices

public java.util.List<Device> getDevices(AccessToken token,
                                         int id)
                                  throws AuthFault,
                                         ServerFault
Specified by:
getDevices in interface IDevice
Throws:
AuthFault
ServerFault

removePartnership

public Device removePartnership(AccessToken token,
                                Device d)
                         throws ServerFault
Specified by:
removePartnership in interface IDevice
Throws:
ServerFault

addPartnership

public Device addPartnership(AccessToken token,
                             Device d)
                      throws ServerFault
Specified by:
addPartnership in interface IDevice
Throws:
ServerFault

removeDevice

public Device removeDevice(AccessToken token,
                           int deviceId)
                    throws ServerFault
Specified by:
removeDevice in interface IDevice
Throws:
ServerFault

getType

public java.util.List<java.lang.String> getType(AccessToken token)
                                         throws ServerFault
Throws:
ServerFault

find

public ResultList<DeviceUser> find(AccessToken token,
                                   DeviceQuery dq)
                            throws ServerFault
Throws:
ServerFault

create

public Device create(AccessToken token,
                     Device d)
              throws AuthFault,
                     ServerFault
Specified by:
create in interface IDevice
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

hasPartnership

public boolean hasPartnership(AccessToken token,
                              int userId,
                              java.lang.String deviceIdentifier)
                       throws ServerFault
Specified by:
hasPartnership in interface IDevice
Throws:
ServerFault

removeSyncKeys

public void removeSyncKeys(AccessToken token,
                           int deviceId)
                    throws AuthFault,
                           ServerFault
Specified by:
removeSyncKeys in interface IDevice
Throws:
AuthFault
ServerFault

Blue Mind
Release 1.0