@Component public class DeleteTaskHandler extends Object implements TaskHandler
Modifier and Type | Field and Description |
---|---|
static String |
HANDLER_URI |
protected ModelService |
modelService |
protected PrismContext |
prismContext |
static long |
PROGRESS_UPDATE_INTERVAL |
protected TaskManager |
taskManager |
Constructor and Description |
---|
DeleteTaskHandler() |
Modifier and Type | Method and Description |
---|---|
String |
getCategoryName(Task task)
Returns a category name for a given task.
|
List<String> |
getCategoryNames()
Returns names of task categories provided by this handler.
|
Long |
heartbeat(Task task) |
void |
refreshStatus(Task task) |
TaskRunResult |
run(Task task) |
<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
runInternal(Task task) |
public static final String HANDLER_URI
public static final long PROGRESS_UPDATE_INTERVAL
@Autowired(required=true) protected TaskManager taskManager
@Autowired(required=true) protected ModelService modelService
@Autowired(required=true) protected PrismContext prismContext
public TaskRunResult run(Task task)
run
in interface TaskHandler
public <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> TaskRunResult runInternal(Task task)
public Long heartbeat(Task task)
heartbeat
in interface TaskHandler
public void refreshStatus(Task task)
refreshStatus
in interface TaskHandler
public String getCategoryName(Task task)
TaskHandler
getCategoryName
in interface TaskHandler
task
- a task, whose category is to be determined; if getCategoryNames() returns null, this method
has to accept null value as this parameter, and return the (one) category name that it gives
to all taskspublic List<String> getCategoryNames()
TaskHandler
getCategoryNames
in interface TaskHandler
Copyright © 2016 evolveum. All rights reserved.