Class ItemProcessingRequest<I>
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.processing.ItemProcessingRequest<I>
- All Implemented Interfaces:
AcknowledgementSink
- Direct Known Subclasses:
ContainerableProcessingRequest
,GenericProcessingRequest
,SyncItemProcessingRequest
Holds an item that is scheduled for processing.
Besides the item itself it provides so called correlation value that is used to correctly order requests that relate to the same midPoint or resource object - for example, two async changes related to a given account.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionItemProcessingRequest
(int sequentialNumber, I item, @NotNull IterativeActivityRun<I, ?, ?, ?> activityRun) -
Method Summary
Modifier and TypeMethodDescriptioncreateRecordingTargetForObject
(PrismObject<? extends ObjectType> object) @NotNull String
getItem()
abstract @Nullable String
OID of the object connected to the item being processed (usually the object itself or related shadow).abstract @NotNull IterationItemInformation
abstract String
protected @NotNull String
int
abstract @Nullable SynchronizationSituationType
TODO reconsiderprotected @NotNull QName
getType
(@NotNull Containerable value) protected @NotNull QName
getType
(@NotNull PrismObject<?> object) boolean
process
(RunningTask workerTask, OperationResult result) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.schema.AcknowledgementSink
acknowledge
-
Field Details
-
item
-
identifier
Unique identifier of this request. Not to be confused with requestIdentifier used for auditing purposes! Most probably it will be replaced by something different.
-
-
Constructor Details
-
ItemProcessingRequest
public ItemProcessingRequest(int sequentialNumber, @NotNull I item, @NotNull @NotNull IterativeActivityRun<I, ?, ?, ?> activityRun)
-
-
Method Details
-
getSequentialNumber
public int getSequentialNumber() -
getItem
-
getOperationExecutionRecordingTarget
- Returns:
- Object to which we will write an operation execution record (plus auxiliary information).
-
createRecordingTargetForObject
@NotNull protected OperationExecutionRecorderForTasks.Target createRecordingTargetForObject(PrismObject<? extends ObjectType> object) -
getObjectOidToRecordRetryTrigger
- Returns:
- OID of object to which we put a trigger causing operation retry (if known)
-
getIterationItemInformation
-
process
-
getRootTaskOid
-
getType
-
getType
-
getItemOid
OID of the object connected to the item being processed (usually the object itself or related shadow). TODO reconsider -
getSynchronizationSituationOnProcessingStart
@Nullable public abstract @Nullable SynchronizationSituationType getSynchronizationSituationOnProcessingStart()TODO reconsider -
getIdentifier
-
toString
-