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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMetric information, currently for reporting purposes.static interfaceProcessedObject.ProcessedObjectItemDelta<V extends PrismValue,D extends ItemDefinition<?>> ItemDeltaaugmented with functionality needed to display it in a complex way, for example, with the information on real change(s) to the object.static classValue touched by a delta, along with their processingProcessedObject.ValueWithState.State.
- 
Field SummaryFieldsFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Method SummaryModifier and TypeMethodDescriptionvoidapplyDefinitions(@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.voidResolves "estimated old values" for item deltas where they are not known.getAfter()Returns the (expected) state of the object after the operation.default OReturns 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.Metricvalues for this object.@Nullable PolyStringTypegetName()Name of the object being processed.getOid()OID of the object whole processing is described by this record.@Nullable StringFor processed objects that are shadows: returns the related resource OID.@Nullable OperationResultThe result of the operation connected to this object.@Nullable OperationResultStatusThe status of the operation connected to this object.@NotNull ObjectProcessingStateTypegetState()State of the object.getType()Type of the object being processed.booleanhasEventMark(@NotNull String eventMarkOid) booleandefault booleandefault booleanbooleanisFocus()default booleandefault booleandefault booleandefault booleanisShadow()voidresolveEventMarks(OperationResult result) For diagnostic purposes.@NotNull SimulationResultProcessedObjectTypetoBean()Creates aSimulationResultProcessedObjectTypebean corresponding to this object.Methods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDump, debugDumpLazily, debugDumpLazily
- 
Field Details- 
DELTA_TO_PROCESSING_STATE
 
- 
- 
Method Details- 
getOidString getOid()OID of the object whole processing is described by this record. Usually not null but we shouldn't rely on it.
- 
getTypeType of the object being processed.
- 
getNameName of the object being processed. May not be known; typically for shadows to-be-created.
- 
getStateState of the object.
- 
getResultStatusThe status of the operation connected to this object. Only "primary" objects have this information.
- 
getResultThe result of the operation connected to this object. Only "primary" objects have this information.
- 
getMatchingEventMarksOidsReturns OIDs of matching event marks for this object.
- 
getEffectiveObjectMarksRefsReturns references of object marks. Primarily on "object before" state (if exists). To be reconsidered.
- 
getBeforeO getBefore()Returns the state of the object before the operation.
- 
getAfterO getAfter()Returns the (expected) state of the object after the operation.
- 
getDeltaReturns the operation that is to be executed.
- 
fixEstimatedOldValuesInDeltavoid 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
- 
toBeanCreates aSimulationResultProcessedObjectTypebean corresponding to this object.
- 
resolveEventMarksFor diagnostic purposes.
- 
hasEventMark
- 
hasNoEventMarks@VisibleForTesting boolean hasNoEventMarks()
- 
getResourceOidFor 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 andItemDeltaFilterfor details. Experimental.- Parameters:
- pathsToInclude- paths of items that we want to see in the list of deltas
- pathsToExclude- paths of items that we do not want to see in the list of deltas
- includeOperationalItems- 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.Metricvalues for this object.- Parameters:
- showEventMarks- Should we include mark-based metrics?
- showExplicitMetrics- Should we include explicitly defined metrics?
 
- 
applyDefinitionsvoid 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.
- 
isAdditiondefault boolean isAddition()
- 
isModificationdefault boolean isModification()
- 
isDeletiondefault boolean isDeletion()
- 
isNoChangedefault boolean isNoChange()
- 
isFocusboolean isFocus()
- 
isOfFocusTypedefault boolean isOfFocusType()
- 
isShadowdefault boolean isShadow()
 
-