public abstract class DocumentManager
extends java.lang.Object
Constructor and Description |
---|
DocumentManager() |
Modifier and Type | Method and Description |
---|---|
abstract void |
delete(java.lang.String id,
RequestCallback<java.lang.Void> callback)
Delete a document.
|
static DocumentManager |
getInstance()
Get an instance of document management
|
abstract void |
queryDocumentDataList(java.lang.String marker,
int limit,
RequestCallback<java.util.List<DMData>> callback)
Query paginated documents.
|
abstract void |
querySingleDocumentData(java.lang.String id,
RequestCallback<DMData> callback)
query a document.
|
public static DocumentManager getInstance()
public abstract void queryDocumentDataList(java.lang.String marker, int limit, RequestCallback<java.util.List<DMData>> callback)
marker
- document ID used to start the search. If no ID is specified, the query start the first document. The documents are displayed in descending order by datelimit
- limit of documents for search. A maximum of 30 documents are supported.callback
- callback that returns Listpublic abstract void delete(java.lang.String id, RequestCallback<java.lang.Void> callback)
id
- document IDcallback
- callbackpublic abstract void querySingleDocumentData(java.lang.String id, RequestCallback<DMData> callback)
id
- document IDcallback
- callback that returns DMData