public interface SocialDatabase
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(String key,
Map<String,Object> attachment)
Persist the attachment/binary into underlying db layer
|
void |
batchRead(List<String> paths,
List<Map<String,Object>> docs)
Retrieve all documents corresponding with the provided paths and add them, in order, to the docs list
|
Map<String,Long> |
countChildren(List<String> keyValues,
String baseType,
boolean visibleOnly)
Fetch the count of db record matching the given inputs
|
Map<String,Object> |
createDocument(Map<String,Object> origdata)
Persist data to underlying database
|
void |
deleteAttachment(String key)
Delete the attachment matching the given key
|
APIResult |
deleteDocument(String key)
Delete record matching the key
|
InputStream |
getAttachmentInputStream(String key)
Retrieve the attachment/binary from the db
|
Map<String,Object> |
readAttachment(String key)
Read the attachment db record from underlying persistence layer
|
Map<String,Object> |
readDocument(String key,
boolean unpackMap) |
List<Map<String,Object>> |
readDocuments(String keyName,
String keyValue,
String baseType,
int maxResults,
int page,
List<Map.Entry<String,Boolean>> orderBy,
boolean visibleOnly) |
List<Map<String,Object>> |
readThread(String keyName,
String keyValue,
String baseType,
int maxResults,
int page,
List<Map.Entry<String,Boolean>> orderBy,
boolean visibleOnly)
Read list of db record matching the given inputs
|
Map<String,Object> |
updateDocument(String key,
Map<String,Object> origdata)
Update the db record matching the given key
|
Map<String,Object> readDocument(String key, boolean unpackMap) throws IOException
key - unpackMap - IOExceptionList<Map<String,Object>> readDocuments(String keyName, String keyValue, String baseType, int maxResults, int page, List<Map.Entry<String,Boolean>> orderBy, boolean visibleOnly) throws IOException
keyName - keyValue - baseType - maxResults - page - orderBy - visibleOnly - IOExceptionMap<String,Object> createDocument(Map<String,Object> origdata) throws PersistenceException
origdata - PersistenceExceptionAPIResult deleteDocument(String key) throws IOException
key - IOExceptionMap<String,Object> updateDocument(String key, Map<String,Object> origdata) throws PersistenceException
key - origdata - PersistenceExceptionList<Map<String,Object>> readThread(String keyName, String keyValue, String baseType, int maxResults, int page, List<Map.Entry<String,Boolean>> orderBy, boolean visibleOnly) throws IOException
keyName - keyValue - baseType - maxResults - page - orderBy - visibleOnly - IOExceptionvoid addAttachment(String key, Map<String,Object> attachment) throws PersistenceException
key - attachment - PersistenceExceptionInputStream getAttachmentInputStream(String key) throws IOException
key - IOExceptionMap<String,Object> readAttachment(String key) throws IOException
key - IOExceptionvoid deleteAttachment(String key) throws IOException
key - IOExceptionMap<String,Long> countChildren(List<String> keyValues, String baseType, boolean visibleOnly)
keyValues - baseType - visibleOnly - void batchRead(List<String> paths, List<Map<String,Object>> docs) throws IOException
paths - docs - IOException"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"