@MinimumAcl(value=READER) public class GetDocumentAttachment extends AsyncDominoJNXBuffer
Endpoint to stream an attachment from a document
AsyncDominoBase.RequestTypeapiName, appTags, logger, requestParams, UNNEEDED_CALL, user, vertx| Constructor and Description |
|---|
GetDocumentAttachment() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(DbRequestParameters<io.vertx.core.buffer.Buffer> request)
Actual work is done here.
|
protected void |
processDominoRequest(io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject> incoming)
The processDominoRequest method provides the EventBusResponseSubscriber that listens to the result of the database operation.
|
getDbRequestParametersaccessControlCheck, dontCallProcessPayload, emitterToObserver, getActualDatabaseName, getApiName, getAppTags, getBarbican, getEventbusId, getKeepDbInfo, getRequestType, getSubscriber, getUser, getUserForMetrics, isProcessPayloadRequired, isWorkInProgress, recordAppMetrics, setApiName, setBarbican, setDbFileName, setKeepDbInfo, setProcessPayloadRequired, setRequestParams, setRequestType, setSubscriber, setUser, setVertx, subscribe, validateDqlAccess, validateOpenAccess, validationCheckclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcustomValidator, preflightpublic void process(DbRequestParameters<io.vertx.core.buffer.Buffer> request) throws java.lang.Exception
AsyncDominoBaseActual work is done here. The DbRequestParameters injects all needed components as well as functions like validation and results
request - DbRequestParameters granting access to session and databasejava.lang.Exception - Anything that can go wrong, will go wrongprotected void processDominoRequest(@Nonnull
io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject> incoming)
AsyncDominoJNXBufferThe processDominoRequest method provides the EventBusResponseSubscriber that listens to the result of the database operation. Most operations return JSON, but some (Attachments, MIME content) use Buffers. This default method uses JSON responses, overwrite this method in your extension to AsyncDominoJNX with an EventBusResponseSubscriber expecting your data type
processDominoRequest in class AsyncDominoJNXBufferincoming -