public interface ScriptingInvocationService
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.concurrent.CompletableFuture<T> |
callScript(java.lang.String name,
com.fasterxml.jackson.databind.JsonNode params,
java.lang.String targetDid,
java.lang.String targetAppDid,
java.lang.Class<T> resultType)
Invoke the execution of a specified script registered previously by the vault
owner, where the script is defined with certain preset routines.
|
<T> java.util.concurrent.CompletableFuture<T> |
downloadFile(java.lang.String transactionId,
java.lang.Class<T> resultType)
Invoke the execution of the script to download a file in the streaming mode.
|
<T> java.util.concurrent.CompletableFuture<T> |
uploadFile(java.lang.String transactionId,
java.lang.Class<T> resultType)
Invoke the execution of the script to upload a file in the streaming mode.
|
<T> java.util.concurrent.CompletableFuture<T> callScript(java.lang.String name,
com.fasterxml.jackson.databind.JsonNode params,
java.lang.String targetDid,
java.lang.String targetAppDid,
java.lang.Class<T> resultType)
T - String, byte[], JsonNode, Readername - The name of script to invoke.params - The parameters as input to the invocation.targetDid - The script owner's user did. Skipped when owner calls.targetAppDid - The script owner's application did. Skipped when owner calls.resultType - String, byte[], JsonNode, Reader<T> java.util.concurrent.CompletableFuture<T> uploadFile(java.lang.String transactionId,
java.lang.Class<T> resultType)
T - Reader or InputStream classtransactionId - The streaming identifier to the upload processresultType - Reader or InputStream class<T> java.util.concurrent.CompletableFuture<T> downloadFile(java.lang.String transactionId,
java.lang.Class<T> resultType)
T - Reader or InputStream classtransactionId - The streaming identifier to the upload processresultType - Reader or InputStream class