@Component public class ReportCreateTaskHandler extends Object implements TaskHandler, org.springframework.context.ApplicationContextAware
Modifier and Type | Field and Description |
---|---|
static String |
REPORT_CREATE_TASK_URI |
Constructor and Description |
---|
ReportCreateTaskHandler() |
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.
|
Map<String,Object> |
getReportParameters(com.evolveum.midpoint.xml.ns._public.common.common_3.ReportType reportType,
PrismContext prismContext,
OperationResult parentResult) |
Long |
heartbeat(Task task) |
void |
refreshStatus(Task task) |
TaskRunResult |
run(Task task) |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
public static final String REPORT_CREATE_TASK_URI
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public Map<String,Object> getReportParameters(com.evolveum.midpoint.xml.ns._public.common.common_3.ReportType reportType, PrismContext prismContext, OperationResult parentResult) throws Exception
Exception
public TaskRunResult run(Task task)
run
in interface TaskHandler
public Long heartbeat(Task task)
heartbeat
in interface TaskHandler
public void refreshStatus(Task task)
refreshStatus
in interface TaskHandler
public List<String> getCategoryNames()
TaskHandler
getCategoryNames
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 tasksCopyright © 2014 evolveum. All rights reserved.