Klasse DUUIProcessRequestHandler
java.lang.Object
org.texttechnologylab.duui.api.routes.processes.DUUIProcessRequestHandler
A class that is responsible for handling incoming requests to the /processes path group.
- Autor:
- Cedric Borkowksi
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic StringdeleteOne(spark.Request request, spark.Response response) Delete a process given its id.static StringfindDocuments(spark.Request request, spark.Response response) Retrieve a limited number of documents from the database.static StringfindEvents(spark.Request request, spark.Response response) Retrieve events associated with the process.static StringfindMany(spark.Request request, spark.Response response) Retrieve a process given its id.static StringfindOne(spark.Request request, spark.Response response) Retrieve a process given its id.static StringgetFolderStructure(spark.Request request, spark.Response response) Retrieve the folder structure of a provider.static Stringstart(spark.Request request, spark.Response response) Create and start a new process.static Stringstop(spark.Request request, spark.Response response) Cancel a process that is currently running.
-
Konstruktordetails
-
DUUIProcessRequestHandler
public DUUIProcessRequestHandler()
-
-
Methodendetails
-
getFolderStructure
public static String getFolderStructure(spark.Request request, spark.Response response) throws com.dropbox.core.DbxException, ExecutionException, InterruptedException, GeneralSecurityException, IOException Retrieve the folder structure of a provider. SeeIDUUIFolderPickerApi.getFolderStructure().- Gibt zurück:
- A JSON Document containing the folder structure.
- Löst aus:
com.dropbox.core.DbxExceptionExecutionExceptionInterruptedExceptionGeneralSecurityExceptionIOException
-
findOne
Retrieve a process given its id. SeeDUUIProcessController.findOneById(String)- Gibt zurück:
- A response containing the process or a default not found (404).
-
findMany
Retrieve a process given its id. SeeDUUIProcessController.findMany(MongoDBFilters)- Gibt zurück:
- A response containing the processes or a default not found (404).
-
deleteOne
Delete a process given its id. SeeDUUIProcessController.deleteOne(String)- Gibt zurück:
- A response containing the success status.
-
start
Create and start a new process. SeeDUUIProcessController.start(Document, Document, DUUIDocumentProvider, DUUIDocumentProvider).- Gibt zurück:
- The created process or an error response.
-
stop
Cancel a process that is currently running. SeeDUUIProcessController.stop(String)- Gibt zurück:
- The result of the cancellation (success or fail).
-
findDocuments
Retrieve a limited number of documents from the database. SeeDUUIDocumentController.findMany(MongoDBFilters).- Gibt zurück:
- A JSON Document containing
DUUIDocuments and the total count.
-
findEvents
Retrieve events associated with the process. SeeDUUIEventController.findManyByProcess(String)- Gibt zurück:
- a timeline (
List) of events.
-