Class ObjectProcessingRequest<O extends ObjectType>
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.task.ItemProcessingRequest<PrismObject<O>>
-
- com.evolveum.midpoint.repo.common.task.ObjectProcessingRequest<O>
-
- All Implemented Interfaces:
AcknowledgementSink
public class ObjectProcessingRequest<O extends ObjectType> extends ItemProcessingRequest<PrismObject<O>>
Request to process an object.
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.repo.common.task.ItemProcessingRequest
identifier, item
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacknowledge(boolean release, OperationResult result)Informs the receiver that a particular item was processed (successfully or not).@Nullable StringgetItemOid()OID of the object connected to the item being processed (usually the object itself or related shadow).@NotNull IterationItemInformationgetIterationItemInformation()StringgetObjectOidToRecordRetryTrigger()OperationExecutionRecorderForTasks.TargetgetOperationExecutionRecordingTarget()@Nullable SynchronizationSituationTypegetSynchronizationSituationOnProcessingStart()TODO reconsiderStringtoString()-
Methods inherited from class com.evolveum.midpoint.repo.common.task.ItemProcessingRequest
createRecordingTargetForObject, getIdentifier, getItem, getPrismContext, getRootTaskOid, getType, process
-
-
-
-
Method Detail
-
getIterationItemInformation
@NotNull public @NotNull IterationItemInformation getIterationItemInformation()
- Specified by:
getIterationItemInformationin classItemProcessingRequest<PrismObject<O extends ObjectType>>
-
getOperationExecutionRecordingTarget
public OperationExecutionRecorderForTasks.Target getOperationExecutionRecordingTarget()
- Specified by:
getOperationExecutionRecordingTargetin classItemProcessingRequest<PrismObject<O extends ObjectType>>- Returns:
- Object to which we will write an operation execution record (plus auxiliary information).
-
getObjectOidToRecordRetryTrigger
public String getObjectOidToRecordRetryTrigger()
- Specified by:
getObjectOidToRecordRetryTriggerin classItemProcessingRequest<PrismObject<O extends ObjectType>>- Returns:
- OID of object to which we put a trigger causing operation retry (if known)
-
acknowledge
public void acknowledge(boolean release, OperationResult result)Description copied from interface:AcknowledgementSinkInforms the receiver that a particular item was processed (successfully or not).- Parameters:
release- If true, the item can be forgotten. If false, we want to receive that item again, presumably to be reprocessed later.result- Operation result in context of which the acknowledgement should take place. It is useful if the acknowledgement itself can take considerable time, e.g. when it involves a communication with an external party.
-
getItemOid
@Nullable public @Nullable String getItemOid()
Description copied from class:ItemProcessingRequestOID of the object connected to the item being processed (usually the object itself or related shadow). TODO reconsider- Specified by:
getItemOidin classItemProcessingRequest<PrismObject<O extends ObjectType>>
-
getSynchronizationSituationOnProcessingStart
@Nullable public @Nullable SynchronizationSituationType getSynchronizationSituationOnProcessingStart()
Description copied from class:ItemProcessingRequestTODO reconsider- Specified by:
getSynchronizationSituationOnProcessingStartin classItemProcessingRequest<PrismObject<O extends ObjectType>>
-
-