-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Providing stateBefore/stateAfter to sim manager
Here we had to rework the mechanism of passing info to simulation result manager: instead of passing each delta as soon as it's produced, we use information from LensElementContext at the end of the clockwork. This way we have the full "object old" information that would not be available otherwise. Work in progress. The full info is not stored into the repo now; and the deltas are not retrieved either.
- Loading branch information
Showing
17 changed files
with
347 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 16 additions & 2 deletions
18
...api/src/main/java/com/evolveum/midpoint/model/api/simulation/SimulationResultContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
package com.evolveum.midpoint.model.api.simulation; | ||
|
||
import com.evolveum.midpoint.task.api.ObjectProcessingListener; | ||
import com.evolveum.midpoint.prism.delta.ObjectDelta; | ||
import com.evolveum.midpoint.schema.result.OperationResult; | ||
import com.evolveum.midpoint.task.api.AggregatedObjectProcessingListener; | ||
import com.evolveum.midpoint.util.exception.ObjectNotFoundException; | ||
import com.evolveum.midpoint.util.exception.SchemaException; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.SimulationResultType; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.Collection; | ||
|
||
public interface SimulationResultContext { | ||
|
||
ObjectProcessingListener objectProcessingListener(); | ||
AggregatedObjectProcessingListener aggregatedObjectProcessingListener(); | ||
|
||
/** OID of the {@link SimulationResultType} object that can be used to retrieve the data. */ | ||
@NotNull String getResultOid(); | ||
|
||
/** TEMPORARY. Retrieves stored deltas. May be replaced by something more general in the future. */ | ||
@NotNull Collection<ObjectDelta<?>> getStoredDeltas(OperationResult result) throws SchemaException, ObjectNotFoundException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.