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übersichtKonstruktoren
- 
MethodenübersichtModifizierer 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- 
DUUIProcessRequestHandlerpublic DUUIProcessRequestHandler()
 
- 
- 
Methodendetails- 
getFolderStructurepublic 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
 
- 
findOneRetrieve a process given its id. SeeDUUIProcessController.findOneById(String)- Gibt zurück:
- A response containing the process or a default not found (404).
 
- 
findManyRetrieve a process given its id. SeeDUUIProcessController.findMany(MongoDBFilters)- Gibt zurück:
- A response containing the processes or a default not found (404).
 
- 
deleteOneDelete a process given its id. SeeDUUIProcessController.deleteOne(String)- Gibt zurück:
- A response containing the success status.
 
- 
startCreate and start a new process. SeeDUUIProcessController.start(Document, Document, DUUIDocumentProvider, DUUIDocumentProvider).- Gibt zurück:
- The created process or an error response.
 
- 
stopCancel a process that is currently running. SeeDUUIProcessController.stop(String)- Gibt zurück:
- The result of the cancellation (success or fail).
 
- 
findDocumentsRetrieve a limited number of documents from the database. SeeDUUIDocumentController.findMany(MongoDBFilters).- Gibt zurück:
- A JSON Document containing DUUIDocuments and the total count.
 
- 
findEventsRetrieve events associated with the process. SeeDUUIEventController.findManyByProcess(String)- Gibt zurück:
- a timeline (List) of events.
 
 
-