Blue Mind
Release 1.0

net.bluemind.core.client.resource
Class ResourceClient

java.lang.Object
  extended by net.bluemind.core.client.impl.AbstractClientImpl
      extended by net.bluemind.core.client.resource.ResourceClient
All Implemented Interfaces:
IResource, ISyncClient

public class ResourceClient
extends AbstractClientImpl
implements IResource


Field Summary
 
Fields inherited from class net.bluemind.core.client.impl.AbstractClientImpl
logger
 
Constructor Summary
ResourceClient(java.lang.String backendUrl)
           
 
Method Summary
 Resource create(AccessToken token, Resource r)
           
 ResourceType createResourceType(AccessToken at, ResourceType rt)
           
 void deleteResource(AccessToken token, int id)
           
 void deleteResourceType(AccessToken at, java.util.Collection<ResourceType> items)
           
 ResultList<Resource> find(AccessToken token, ResourceQuery rq)
           
 ResultList<ResourceType> findResourceType(AccessToken at, ResourceTypeQuery query)
           
 Resource getResourceFromId(AccessToken token, int id)
           
 ResourceType getResourceTypeFromId(AccessToken at, int id)
           
 AccessToken login(java.lang.String login, java.lang.String password, java.lang.String origin)
           
 void logout(AccessToken at)
           
 Resource update(AccessToken token, Resource r)
           
 ResourceType updateResourceType(AccessToken at, ResourceType rt)
           
 
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

ResourceClient

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

find

public ResultList<Resource> find(AccessToken token,
                                 ResourceQuery rq)
                          throws AuthFault,
                                 ServerFault
Specified by:
find in interface IResource
Throws:
AuthFault
ServerFault

create

public Resource create(AccessToken token,
                       Resource r)
                throws AuthFault,
                       ServerFault
Specified by:
create in interface IResource
Throws:
AuthFault
ServerFault

update

public Resource update(AccessToken token,
                       Resource r)
                throws AuthFault,
                       ServerFault
Specified by:
update in interface IResource
Throws:
AuthFault
ServerFault

deleteResource

public void deleteResource(AccessToken token,
                           int id)
                    throws AuthFault,
                           ServerFault
Specified by:
deleteResource in interface IResource
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

getResourceFromId

public Resource getResourceFromId(AccessToken token,
                                  int id)
                           throws AuthFault,
                                  ServerFault
Specified by:
getResourceFromId in interface IResource
Throws:
AuthFault
ServerFault

findResourceType

public ResultList<ResourceType> findResourceType(AccessToken at,
                                                 ResourceTypeQuery query)
                                          throws AuthFault,
                                                 ServerFault
Specified by:
findResourceType in interface IResource
Throws:
AuthFault
ServerFault

createResourceType

public ResourceType createResourceType(AccessToken at,
                                       ResourceType rt)
                                throws AuthFault,
                                       ServerFault
Specified by:
createResourceType in interface IResource
Throws:
AuthFault
ServerFault

updateResourceType

public ResourceType updateResourceType(AccessToken at,
                                       ResourceType rt)
                                throws AuthFault,
                                       ServerFault
Specified by:
updateResourceType in interface IResource
Throws:
AuthFault
ServerFault

deleteResourceType

public void deleteResourceType(AccessToken at,
                               java.util.Collection<ResourceType> items)
                        throws AuthFault,
                               ServerFault
Specified by:
deleteResourceType in interface IResource
Throws:
AuthFault
ServerFault

getResourceTypeFromId

public ResourceType getResourceTypeFromId(AccessToken at,
                                          int id)
                                   throws AuthFault,
                                          ServerFault
Specified by:
getResourceTypeFromId in interface IResource
Throws:
AuthFault
ServerFault

Blue Mind
Release 1.0