public class ManagedTasksController extends BasicController
| Modifier and Type | Field and Description |
|---|---|
static String |
PERMISSION_SYSTEM_SCRIPTING
This permission is needed to access the scripting facility of the system.
|
defaultRoute| Constructor and Description |
|---|
ManagedTasksController() |
| Modifier and Type | Method and Description |
|---|---|
void |
scripting(WebContext ctx)
Displays the system scripting facility.
|
void |
scriptingExecute(WebContext ctx,
JSONStructuredOutput json)
Executes the given script.
|
void |
task(WebContext ctx,
String taskId)
Displays details to a running task
|
void |
taskCancel(WebContext ctx,
JSONStructuredOutput json,
String taskId)
Cancels the given tasks as response to an AJAX call.
|
void |
taskInfo(WebContext ctx,
JSONStructuredOutput json,
String taskId)
Displays details to a running task as JSON
|
void |
tasks(WebContext ctx)
Lists all active tasks
|
void |
tasksAPI(WebContext ctx,
JSONStructuredOutput json)
Lists all active tasks as JSON
|
assertNotNull, assertPermission, fail, getUser, hasPermission, onError, showDeletedMessage, showSavedMessagepublic static final String PERMISSION_SYSTEM_SCRIPTING
public void tasks(WebContext ctx)
ctx - the request being handledpublic void tasksAPI(WebContext ctx, JSONStructuredOutput json)
ctx - the request being handledjson - the JSON response being generatedpublic void task(WebContext ctx, String taskId)
ctx - the request being handledtaskId - the id of the task to be shownpublic void taskInfo(WebContext ctx, JSONStructuredOutput json, String taskId)
ctx - the request being handledjson - the JSON response being generatedtaskId - the id of the task to be shownpublic void taskCancel(WebContext ctx, JSONStructuredOutput json, String taskId)
ctx - the request being handledjson - the JSON response being generatedtaskId - the id of the task to be shownpublic void scripting(WebContext ctx)
ctx - the request being handledpublic void scriptingExecute(WebContext ctx, JSONStructuredOutput json) throws IOException
ctx - the request being handledjson - the response sent to the browserIOException - in case of an io errorCopyright © 2018. All rights reserved.