Blue Mind
Release 1.0

net.bluemind.core.client.doc
Class DocClient

java.lang.Object
  extended by net.bluemind.core.client.impl.AbstractClientImpl
      extended by net.bluemind.core.client.doc.DocClient
All Implemented Interfaces:
IDocument, ISyncClient

public class DocClient
extends AbstractClientImpl
implements IDocument


Field Summary
 
Fields inherited from class net.bluemind.core.client.impl.AbstractClientImpl
logger
 
Constructor Summary
DocClient(java.lang.String bjServicesUrl)
           
 
Method Summary
 DocumentId create(AccessToken at, java.util.Map<Meta,java.lang.String> meta, java.lang.String base64encodedDocument)
           
 void delete(AccessToken at, DocumentId id)
           
 DocData fetch(AccessToken at, DocumentId did)
           
 java.lang.String fetchBase64(AccessToken at, DocumentId did)
           
 java.util.List<java.util.Map<Meta,java.lang.String>> fetchMetadata(AccessToken at, java.util.List<DocumentId> docs)
           
 AccessToken login(java.lang.String login, java.lang.String password, java.lang.String origin)
           
 void logout(AccessToken at)
           
 void update(AccessToken at, DocumentId id, java.lang.String base64encodedDocument)
           
 
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

DocClient

public DocClient(java.lang.String bjServicesUrl)
Method Detail

create

public DocumentId create(AccessToken at,
                         java.util.Map<Meta,java.lang.String> meta,
                         java.lang.String base64encodedDocument)
                  throws ServerFault
Specified by:
create in interface IDocument
Throws:
ServerFault

update

public void update(AccessToken at,
                   DocumentId id,
                   java.lang.String base64encodedDocument)
Specified by:
update in interface IDocument

delete

public void delete(AccessToken at,
                   DocumentId id)
            throws ServerFault
Specified by:
delete in interface IDocument
Throws:
ServerFault

fetchBase64

public java.lang.String fetchBase64(AccessToken at,
                                    DocumentId did)
                             throws ServerFault
Specified by:
fetchBase64 in interface IDocument
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

fetchMetadata

public java.util.List<java.util.Map<Meta,java.lang.String>> fetchMetadata(AccessToken at,
                                                                          java.util.List<DocumentId> docs)
                                                                   throws ServerFault
Specified by:
fetchMetadata in interface IDocument
Throws:
ServerFault

fetch

public DocData fetch(AccessToken at,
                     DocumentId did)
              throws ServerFault
Specified by:
fetch in interface IDocument
Throws:
ServerFault

Blue Mind
Release 1.0