Blue Mind
Release 1.0

net.bluemind.core.api.services
Interface IDocument

All Known Implementing Classes:
DocClient

public interface IDocument

Basic document upload & fetch capabilities Base64 is used in this interface instead of streams to keep the api package compatible with GWT.


Method Summary
 DocumentId create(AccessToken at, java.util.Map<Meta,java.lang.String> metadata, java.lang.String base64encodedDocument)
           
 void delete(AccessToken at, DocumentId id)
           
 DocData fetch(AccessToken at, DocumentId id)
           
 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)
           
 void update(AccessToken at, DocumentId id, java.lang.String base64encodedDocument)
           
 

Method Detail

create

DocumentId create(AccessToken at,
                  java.util.Map<Meta,java.lang.String> metadata,
                  java.lang.String base64encodedDocument)
                  throws ServerFault,
                         AuthFault
Throws:
ServerFault
AuthFault

update

void update(AccessToken at,
            DocumentId id,
            java.lang.String base64encodedDocument)
            throws ServerFault,
                   AuthFault
Throws:
ServerFault
AuthFault

delete

void delete(AccessToken at,
            DocumentId id)
            throws ServerFault,
                   AuthFault
Throws:
ServerFault
AuthFault

fetchBase64

java.lang.String fetchBase64(AccessToken at,
                             DocumentId did)
                             throws ServerFault,
                                    AuthFault
Throws:
ServerFault
AuthFault

fetchMetadata

java.util.List<java.util.Map<Meta,java.lang.String>> fetchMetadata(AccessToken at,
                                                                   java.util.List<DocumentId> docs)
                                                                   throws ServerFault
Throws:
ServerFault

fetch

DocData fetch(AccessToken at,
              DocumentId id)
              throws ServerFault
Throws:
ServerFault

Blue Mind
Release 1.0