com.evolveum.midpoint.model.importer
Class ImportObjectsFromCamelTaskHandler
java.lang.Object
com.evolveum.midpoint.model.importer.ImportObjectsFromCamelTaskHandler
- All Implemented Interfaces:
- TaskHandler, org.apache.camel.Processor
@Component
public class ImportObjectsFromCamelTaskHandler
- extends java.lang.Object
- implements TaskHandler, org.apache.camel.Processor
Task handler for "Import objects from Camel" task.
Import parses the input message and add all objects to the repository.
- Author:
- Radovan Semancik, Pavol Mederly
- See Also:
TaskHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HANDLER_URI
public static final java.lang.String HANDLER_URI
- See Also:
- Constant Field Values
ImportObjectsFromCamelTaskHandler
public ImportObjectsFromCamelTaskHandler()
run
public TaskRunResult run(Task task)
- The body of the task. This will start the import "loop".
- Specified by:
run
in interface TaskHandler
process
public void process(org.apache.camel.Exchange exchange)
throws java.lang.Exception
- Specified by:
process
in interface org.apache.camel.Processor
- Throws:
java.lang.Exception
heartbeat
public java.lang.Long heartbeat(Task task)
- Specified by:
heartbeat
in interface TaskHandler
refreshStatus
public void refreshStatus(Task task)
- Specified by:
refreshStatus
in interface TaskHandler
getCategoryName
public java.lang.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 interface TaskHandler
- 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 java.util.List<java.lang.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 interface TaskHandler
- Returns:
- a list of category names; may be null - in that case the category info is given by getCategoryName(null)
Copyright © 2012 evolveum. All Rights Reserved.