Class OperationExecutionRecorderForTasks
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.util.OperationExecutionRecorderForTasks
-
@Component public class OperationExecutionRecorderForTasks extends Object
Prepares complex OperationExecutionType records for search-iterative and live-sync/async-update tasks. UsesOperationExecutionWriter
for the actual writing of the records.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OperationExecutionRecorderForTasks.Target
Specification of where to write operation execution record.
-
Constructor Summary
Constructors Constructor Description OperationExecutionRecorderForTasks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
recordOperationExecution(@NotNull OperationExecutionRecorderForTasks.Target target, @NotNull RunningTask task, @NotNull ActivityPath activityPath, @NotNull OperationResult resultToRecord, @NotNull OperationResult result)
Writes an operation execution record.
-
-
-
Method Detail
-
recordOperationExecution
public void recordOperationExecution(@NotNull @NotNull OperationExecutionRecorderForTasks.Target target, @NotNull @NotNull RunningTask task, @NotNull @NotNull ActivityPath activityPath, @NotNull @NotNull OperationResult resultToRecord, @NotNull @NotNull OperationResult result)
Writes an operation execution record.- Parameters:
target
- Where to write the record to.task
- Related task. It could be any task that has the correct root task OID filled-in.activityPath
- Path of the related activity.resultToRecord
- This is the result that we want to write to the object (i.e. it must have already computed status and messageresult
- This is the result we use for our own writing operations. TODO implement redirection also for (rightfully) deleted objects? Currently deleteOk=true means no exception is propagated from the writer. Overall, it is questionable if we want to write such information at all. TODO move redirection to the writer level?
-
-