@ProviderType
public interface SocialDatabase
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(java.lang.String key,
java.util.Map<java.lang.String,java.lang.Object> attachment)
Persist the attachment/binary into underlying db layer
|
void |
batchRead(java.util.List<java.lang.String> paths,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> docs)
Retrieve all documents corresponding with the provided paths and add them, in order, to the docs list
|
java.util.Map<java.lang.String,java.lang.Long> |
countChildren(java.util.List<java.lang.String> keyValues,
java.lang.String baseType,
boolean visibleOnly)
Fetch the count of db record matching the given inputs
|
java.util.Map<java.lang.String,java.lang.Object> |
createDocument(java.util.Map<java.lang.String,java.lang.Object> origdata)
Persist data to underlying database
|
void |
deleteAttachment(java.lang.String key)
Delete the attachment matching the given key
|
APIResult |
deleteDocument(java.lang.String key)
Delete record matching the key
|
java.io.InputStream |
getAttachmentInputStream(java.lang.String key)
Retrieve the attachment/binary from the db
|
int |
getCommentIndex(java.lang.String keyName,
java.lang.String keyValue,
java.lang.String commentToCheck,
java.lang.String baseType,
boolean visibleOnly) |
java.util.Map<java.lang.String,java.lang.Object> |
readAttachment(java.lang.String key)
Read the attachment db record from underlying persistence layer
|
java.util.Map<java.lang.String,java.lang.Object> |
readDocument(java.lang.String key,
boolean unpackMap) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
readDocuments(java.lang.String keyName,
java.lang.String keyValue,
java.lang.String baseType,
int maxResults,
int page,
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Boolean>> orderBy,
boolean visibleOnly) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
readThread(java.lang.String keyName,
java.lang.String keyValue,
java.lang.String baseType,
int maxResults,
int page,
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Boolean>> orderBy,
boolean visibleOnly)
Read list of db record matching the given inputs
|
java.util.Map<java.lang.String,java.lang.Object> |
updateDocument(java.lang.String key,
java.util.Map<java.lang.String,java.lang.Object> origdata)
Update the db record matching the given key
|
java.util.Map<java.lang.String,java.lang.Object> readDocument(java.lang.String key, boolean unpackMap) throws java.io.IOException
key
- KeyunpackMap
- Mapjava.io.IOException
- IOExceptionjava.util.List<java.util.Map<java.lang.String,java.lang.Object>> readDocuments(java.lang.String keyName, java.lang.String keyValue, java.lang.String baseType, int maxResults, int page, java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Boolean>> orderBy, boolean visibleOnly) throws java.io.IOException
keyName
- StringkeyValue
- StringbaseType
- StringmaxResults
- intpage
- intorderBy
- ListvisibleOnly
- booleanjava.io.IOException
- IOExceptionint getCommentIndex(java.lang.String keyName, java.lang.String keyValue, java.lang.String commentToCheck, java.lang.String baseType, boolean visibleOnly)
keyName
- StringkeyValue
- StringcommentToCheck
- StringbaseType
- StringvisibleOnly
- booleanjava.util.Map<java.lang.String,java.lang.Object> createDocument(java.util.Map<java.lang.String,java.lang.Object> origdata) throws PersistenceException
origdata
- MapPersistenceException
- PersistenceExceptionAPIResult deleteDocument(java.lang.String key) throws java.io.IOException
key
- Stringjava.io.IOException
- IOExceptionjava.util.Map<java.lang.String,java.lang.Object> updateDocument(java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> origdata) throws PersistenceException
key
- Stringorigdata
- MapPersistenceException
- PersistenceExceptionjava.util.List<java.util.Map<java.lang.String,java.lang.Object>> readThread(java.lang.String keyName, java.lang.String keyValue, java.lang.String baseType, int maxResults, int page, java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Boolean>> orderBy, boolean visibleOnly) throws java.io.IOException
keyName
- StringkeyValue
- StringbaseType
- StringmaxResults
- intpage
- intorderBy
- ListvisibleOnly
- booleanjava.io.IOException
- IOExceptionvoid addAttachment(java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> attachment) throws PersistenceException
key
- Stringattachment
- MapPersistenceException
- PersistenceExceptionjava.io.InputStream getAttachmentInputStream(java.lang.String key) throws java.io.IOException
key
- Stringjava.io.IOException
- IOExceptionjava.util.Map<java.lang.String,java.lang.Object> readAttachment(java.lang.String key) throws java.io.IOException
key
- Stringjava.io.IOException
- IOExceptionvoid deleteAttachment(java.lang.String key) throws java.io.IOException
key
- Stringjava.io.IOException
- IOExceptionjava.util.Map<java.lang.String,java.lang.Long> countChildren(java.util.List<java.lang.String> keyValues, java.lang.String baseType, boolean visibleOnly)
keyValues
- ListbaseType
- StringvisibleOnly
- booleanvoid batchRead(java.util.List<java.lang.String> paths, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> docs) throws java.io.IOException
paths
- Listdocs
- Listjava.io.IOException
- IOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved