Class TaskOperationalDataManager
java.lang.Object
com.evolveum.midpoint.model.impl.lens.tasks.TaskOperationalDataManager
- All Implemented Interfaces:
DeltaExecutionPreprocessor
@Component
public class TaskOperationalDataManager
extends Object
implements DeltaExecutionPreprocessor
Updates "indexed" values in task objects; currently
TaskType.getAffectedObjects()
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends ItemDelta<?,
?>> getModifyDeltaForAffectedObjects
(TaskType taskBean, OperationResult result) return modification delta for "affected objects" data on task.<O extends ObjectType>
voidupdateOnElementAdd
(O objectToAdd, OperationResult result) Computes or re-computes "affected objects" on task being added.<O extends ObjectType>
voidupdateOnElementModify
(O current, @NotNull ObjectDelta<O> delta, @NotNull Class<O> objectClass, @NotNull LensElementContext<O> elementContext, OperationResult result) Updates "affected objects" data on task modification (by adding necessary changes to the `delta` parameter.)
-
Constructor Details
-
TaskOperationalDataManager
public TaskOperationalDataManager()
-
-
Method Details
-
updateOnElementAdd
public <O extends ObjectType> void updateOnElementAdd(@NotNull O objectToAdd, OperationResult result) Computes or re-computes "affected objects" on task being added. -
updateOnElementModify
public <O extends ObjectType> void updateOnElementModify(O current, @NotNull @NotNull ObjectDelta<O> delta, @NotNull @NotNull Class<O> objectClass, @NotNull @NotNull LensElementContext<O> elementContext, OperationResult result) throws SchemaException Updates "affected objects" data on task modification (by adding necessary changes to the `delta` parameter.)- Throws:
SchemaException
-
getModifyDeltaForAffectedObjects
public Collection<? extends ItemDelta<?,?>> getModifyDeltaForAffectedObjects(TaskType taskBean, OperationResult result) throws SchemaException return modification delta for "affected objects" data on task.- Returns:
- delta for task affected objects
- Throws:
SchemaException
-