Class CleanUpTaskHandler
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.cleanup.CleanUpTaskHandler
-
- All Implemented Interfaces:
TaskHandler
@Component public class CleanUpTaskHandler extends Object implements TaskHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
HANDLER_URI
-
Constructor Summary
Constructors Constructor Description CleanUpTaskHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArchetypeOid()
String
getCategoryName(Task task)
Returns a category name for a given task.List<String>
getCategoryNames()
Returns names of task categories provided by this handler.String
getDefaultChannel()
@NotNull StatisticsCollectionStrategy
getStatisticsCollectionStrategy()
TaskRunResult
run(RunningTask task, TaskPartitionDefinitionType partition)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.task.api.TaskHandler
heartbeat, refreshStatus, run
-
-
-
-
Field Detail
-
HANDLER_URI
public static final String HANDLER_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStatisticsCollectionStrategy
@NotNull public @NotNull StatisticsCollectionStrategy getStatisticsCollectionStrategy()
- Specified by:
getStatisticsCollectionStrategy
in interfaceTaskHandler
-
run
public TaskRunResult run(RunningTask task, TaskPartitionDefinitionType partition)
- Specified by:
run
in interfaceTaskHandler
-
getCategoryName
public String getCategoryName(Task task)
Description copied from interface:TaskHandler
Returns a category name for a given task. In most cases, the name would be independent of concrete task.- Specified by:
getCategoryName
in interfaceTaskHandler
- Parameters:
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 tasks- Returns:
- a user-understandable name, like "LiveSync" or "Workflow"
-
getCategoryNames
public List<String> getCategoryNames()
Description copied from interface:TaskHandler
Returns names of task categories provided by this handler. Usually it will be one-item list.- Specified by:
getCategoryNames
in interfaceTaskHandler
- Returns:
- a list of category names; may be null - in that case the category info is given by getCategoryName(null)
-
getArchetypeOid
public String getArchetypeOid()
- Specified by:
getArchetypeOid
in interfaceTaskHandler
- Returns:
- Archetype OID for tasks that are powered by this handler.
-
getDefaultChannel
public String getDefaultChannel()
- Specified by:
getDefaultChannel
in interfaceTaskHandler
- Returns:
- Channel URI for tasks managed by this handler, if applicable.
-
-