Blue Mind
Release 1.0

net.bluemind.core.client.info
Class InfoClient

java.lang.Object
  extended by net.bluemind.core.client.impl.AbstractClientImpl
      extended by net.bluemind.core.client.info.InfoClient
All Implemented Interfaces:
IInfo, ISyncClient

public class InfoClient
extends AbstractClientImpl
implements IInfo

Blue Mind Info RPC core client


Field Summary
 
Fields inherited from class net.bluemind.core.client.impl.AbstractClientImpl
logger
 
Constructor Summary
InfoClient(java.lang.String backendUrl)
          Instantiate a new Blue Mind Info RPC core client
 
Method Summary
 java.lang.String getInfo(AccessToken token, java.lang.String name)
           
 java.util.Map<java.lang.String,java.lang.String> getInfos(AccessToken token, java.util.List<java.lang.String> names)
           
 AccessToken login(java.lang.String loginAtDomain, java.lang.String password, java.lang.String origin)
           
 void logout(AccessToken at)
           
 void setInfo(AccessToken token, java.lang.String name, java.lang.String value)
           
 void setInfos(AccessToken token, java.util.Map<java.lang.String,java.lang.String> infos)
           
 AccessToken sudo(AccessToken token, java.lang.String loginAtDomain)
          Returns an AccessToken for the given loginAtDomain.
 ValidationKind validate(java.lang.String loginAtDomain, java.lang.String password, java.lang.String origin)
           
 
Methods inherited from class net.bluemind.core.client.impl.AbstractClientImpl
checkServerError, execute, executeStream, executeVoid, initParams, setToken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoClient

public InfoClient(java.lang.String backendUrl)
Instantiate a new Blue Mind Info RPC core client

Parameters:
backendUrl - Blue Mind core URL
Method Detail

getInfo

public java.lang.String getInfo(AccessToken token,
                                java.lang.String name)
                         throws AuthFault,
                                ServerFault
Specified by:
getInfo in interface IInfo
Throws:
AuthFault
ServerFault

setInfo

public void setInfo(AccessToken token,
                    java.lang.String name,
                    java.lang.String value)
             throws AuthFault,
                    ServerFault
Specified by:
setInfo in interface IInfo
Throws:
AuthFault
ServerFault

setInfos

public void setInfos(AccessToken token,
                     java.util.Map<java.lang.String,java.lang.String> infos)
              throws AuthFault,
                     ServerFault
Specified by:
setInfos in interface IInfo
Throws:
AuthFault
ServerFault

getInfos

public java.util.Map<java.lang.String,java.lang.String> getInfos(AccessToken token,
                                                                 java.util.List<java.lang.String> names)
                                                          throws AuthFault,
                                                                 ServerFault
Specified by:
getInfos in interface IInfo
Throws:
AuthFault
ServerFault

login

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

validate

public ValidationKind validate(java.lang.String loginAtDomain,
                               java.lang.String password,
                               java.lang.String origin)
Specified by:
validate in interface ISyncClient
Overrides:
validate in class AbstractClientImpl

sudo

public AccessToken sudo(AccessToken token,
                        java.lang.String loginAtDomain)
                 throws AuthFault,
                        ServerFault
Description copied from interface: ISyncClient
Returns an AccessToken for the given loginAtDomain. The provided AccessToken must be an admin0@global.virt token.

Specified by:
sudo in interface ISyncClient
Overrides:
sudo in class AbstractClientImpl
Returns:
Throws:
AuthFault
ServerFault

logout

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

Blue Mind
Release 1.0