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 String
deleteOne
(spark.Request request, spark.Response response) Delete a process given its id.static String
findDocuments
(spark.Request request, spark.Response response) Retrieve a limited number of documents from the database.static String
findEvents
(spark.Request request, spark.Response response) Retrieve events associated with the process.static String
findMany
(spark.Request request, spark.Response response) Retrieve a process given its id.static String
findOne
(spark.Request request, spark.Response response) Retrieve a process given its id.static String
getFolderStructure
(spark.Request request, spark.Response response) Retrieve the folder structure of a provider.static String
start
(spark.Request request, spark.Response response) Create and start a new process.static String
stop
(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.DbxException
ExecutionException
InterruptedException
GeneralSecurityException
IOException
-
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
DUUIDocument
s and the total count.
-
findEvents
Retrieve events associated with the process. SeeDUUIEventController.findManyByProcess(String)
- Gibt zurück:
- a timeline (
List
) of events.
-