Interface ProcessedObject<O extends ObjectType>
- All Superinterfaces:
DebugDumpable
,Serializable
- All Known Implementing Classes:
ProcessedObjectImpl
Parsed analogy of
SimulationResultProcessedObjectType
.
Used during creation of SimulationResultType
objects, reporting on them, and during testing.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Metric information, currently for reporting purposes.static interface
ProcessedObject.ProcessedObjectItemDelta<V extends PrismValue,
D extends ItemDefinition<?>> ItemDelta
augmented with functionality needed to display it in a complex way, for example, with the information on real change(s) to the object.static class
Value touched by a delta, along with their processingProcessedObject.ValueWithState.State
. -
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDefinitions
(@NotNull Task task, @NotNull OperationResult result) Applies the definitions (currently, resource schema related to specific shadow) to the object(s) before/after, and the delta.void
Resolves "estimated old values" for item deltas where they are not known.getAfter()
Returns the (expected) state of the object after the operation.default O
Returns the state of the object before the operation.default O
@Nullable ObjectDelta<O>
getDelta()
Returns the operation that is to be executed.@NotNull Collection<ObjectReferenceType>
Returns references of object marks.@NotNull Collection<ProcessedObject.ProcessedObjectItemDelta<?,
?>> getItemDeltas
(@Nullable Object pathsToInclude, @Nullable Object pathsToExclude, @Nullable Boolean includeOperationalItems) Returns the collection of (augmented) item deltas related to this "processed object".@NotNull Collection<String>
Returns OIDs of matching event marks for this object.@NotNull Collection<ProcessedObject.Metric>
getMetrics
(@Nullable Boolean showEventMarks, @Nullable Boolean showExplicitMetrics) Returns the collection ofProcessedObject.Metric
values for this object.@Nullable PolyStringType
getName()
Name of the object being processed.getOid()
OID of the object whole processing is described by this record.@Nullable String
For processed objects that are shadows: returns the related resource OID.@Nullable OperationResult
The result of the operation connected to this object.@Nullable OperationResultStatus
The status of the operation connected to this object.@NotNull ObjectProcessingStateType
getState()
State of the object.getType()
Type of the object being processed.boolean
hasEventMark
(@NotNull String eventMarkOid) boolean
default boolean
default boolean
boolean
isFocus()
default boolean
default boolean
default boolean
default boolean
isShadow()
void
resolveEventMarks
(OperationResult result) For diagnostic purposes.@NotNull SimulationResultProcessedObjectType
toBean()
Creates aSimulationResultProcessedObjectType
bean corresponding to this object.Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDump, debugDumpLazily, debugDumpLazily
-
Field Details
-
DELTA_TO_PROCESSING_STATE
-
-
Method Details
-
getOid
String getOid()OID of the object whole processing is described by this record. Usually not null but we shouldn't rely on it. -
getType
Type of the object being processed. -
getName
Name of the object being processed. May not be known; typically for shadows to-be-created. -
getState
State of the object. -
getResultStatus
The status of the operation connected to this object. Only "primary" objects have this information. -
getResult
The result of the operation connected to this object. Only "primary" objects have this information. -
getMatchingEventMarksOids
Returns OIDs of matching event marks for this object. -
getEffectiveObjectMarksRefs
Returns references of object marks. Primarily on "object before" state (if exists). To be reconsidered. -
getBefore
O getBefore()Returns the state of the object before the operation. -
getAfter
O getAfter()Returns the (expected) state of the object after the operation. -
getDelta
Returns the operation that is to be executed. -
fixEstimatedOldValuesInDelta
void fixEstimatedOldValuesInDelta()Resolves "estimated old values" for item deltas where they are not known. TEMPORARY; see MID-8536. This will be part of standard processing but because of code freeze doing it as separate code. -
getAfterOrBefore
-
getBeforeOrAfterRequired
-
toBean
Creates aSimulationResultProcessedObjectType
bean corresponding to this object. -
resolveEventMarks
For diagnostic purposes. -
hasEventMark
-
hasNoEventMarks
@VisibleForTesting boolean hasNoEventMarks() -
getResourceOid
For processed objects that are shadows: returns the related resource OID. -
getItemDeltas
@NotNull @NotNull Collection<ProcessedObject.ProcessedObjectItemDelta<?,?>> getItemDeltas(@Nullable @Nullable Object pathsToInclude, @Nullable @Nullable Object pathsToExclude, @Nullable @Nullable Boolean includeOperationalItems) Returns the collection of (augmented) item deltas related to this "processed object". Limited! We are not able to see inside deltas. So, for example, when looking for `activation/administrativeStatus` property, and the whole `activation` container is added, the delta is not shown. See the implementation andItemDeltaFilter
for details. Experimental.- Parameters:
pathsToInclude
- paths of items that we want to see in the list of deltaspathsToExclude
- paths of items that we do not want to see in the list of deltasincludeOperationalItems
- should the operational items be included in the list of deltas?
-
getMetrics
@NotNull @NotNull Collection<ProcessedObject.Metric> getMetrics(@Nullable @Nullable Boolean showEventMarks, @Nullable @Nullable Boolean showExplicitMetrics) Returns the collection ofProcessedObject.Metric
values for this object.- Parameters:
showEventMarks
- Should we include mark-based metrics?showExplicitMetrics
- Should we include explicitly defined metrics?
-
applyDefinitions
void applyDefinitions(@NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) throws SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException, ObjectNotFoundException Applies the definitions (currently, resource schema related to specific shadow) to the object(s) before/after, and the delta. -
isAddition
default boolean isAddition() -
isModification
default boolean isModification() -
isDeletion
default boolean isDeletion() -
isNoChange
default boolean isNoChange() -
isFocus
boolean isFocus() -
isOfFocusType
default boolean isOfFocusType() -
isShadow
default boolean isShadow()
-