public class ManagedTasks extends Object
ManagedTask
Modifier and Type | Field and Description |
---|---|
static sirius.kernel.health.Log |
LOG
Contains the log being used by this framework
|
static String |
PERMISSION_ALL_TASKS
This permission needed to view all running tasks.
|
Constructor and Description |
---|
ManagedTasks() |
Modifier and Type | Method and Description |
---|---|
ManagedTaskSetup |
createManagedTaskSetup(String name)
Creates a new setup which is used to start a new task.
|
protected void |
execute(sirius.web.tasks.ManagedTaskExecution exec) |
ManagedTask |
findTask(String taskId)
Tries to find a managed task with the given id.
|
List<ManagedTask> |
getActiveTasks()
Returns a list of all managed tasks visible to the current user.
|
public static final sirius.kernel.health.Log LOG
public static final String PERMISSION_ALL_TASKS
public ManagedTaskSetup createManagedTaskSetup(String name)
name
- the name of the task being started.protected void execute(sirius.web.tasks.ManagedTaskExecution exec)
@Nullable public ManagedTask findTask(String taskId)
taskId
- the id of the taskpublic List<ManagedTask> getActiveTasks()
PERMISSION_ALL_TASKS
is presentCopyright © 2018. All rights reserved.