Class ContainerableProcessingRequest<C extends Containerable>
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.activity.run.processing.ItemProcessingRequest<C>
-
- com.evolveum.midpoint.repo.common.activity.run.processing.ContainerableProcessingRequest<C>
-
- All Implemented Interfaces:
AcknowledgementSink
- Direct Known Subclasses:
ObjectProcessingRequest
@Experimental public class ContainerableProcessingRequest<C extends Containerable> extends ItemProcessingRequest<C>
Request to process a containerable.
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.repo.common.activity.run.processing.ItemProcessingRequest
identifier, item
-
-
Method Summary
All Methods Static 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).static <C extends Containerable>
@NotNull ContainerableProcessingRequest<C>create(int sequentialNumber, C item, @NotNull IterativeActivityRun<C,?,?,?> activityRun)Factory method: returns eitherContainerableProcessingRequestorObjectProcessingRequest(if the item is of ObjectType type).@Nullable StringgetItemOid()OID of the object connected to the item being processed (usually the object itself or related shadow).@NotNull IterationItemInformationgetIterationItemInformation()This can be overridden in cases when we know how to derive a name or display name for the containerable.StringgetObjectOidToRecordRetryTrigger()OperationExecutionRecorderForTasks.TargetgetOperationExecutionRecordingTarget()@Nullable SynchronizationSituationTypegetSynchronizationSituationOnProcessingStart()TODO reconsiderStringtoString()-
Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.processing.ItemProcessingRequest
createRecordingTargetForObject, getIdentifier, getItem, getRootTaskOid, getSequentialNumber, getType, getType, process
-
-
-
-
Method Detail
-
create
@NotNull public static <C extends Containerable> @NotNull ContainerableProcessingRequest<C> create(int sequentialNumber, @NotNull C item, @NotNull @NotNull IterativeActivityRun<C,?,?,?> activityRun)
Factory method: returns eitherContainerableProcessingRequestorObjectProcessingRequest(if the item is of ObjectType type).
-
getIterationItemInformation
@NotNull public @NotNull IterationItemInformation getIterationItemInformation()
This can be overridden in cases when we know how to derive a name or display name for the containerable.- Specified by:
getIterationItemInformationin classItemProcessingRequest<C extends Containerable>
-
getOperationExecutionRecordingTarget
public OperationExecutionRecorderForTasks.Target getOperationExecutionRecordingTarget()
- Specified by:
getOperationExecutionRecordingTargetin classItemProcessingRequest<C extends Containerable>- Returns:
- Object to which we will write an operation execution record (plus auxiliary information).
-
getObjectOidToRecordRetryTrigger
public String getObjectOidToRecordRetryTrigger()
- Specified by:
getObjectOidToRecordRetryTriggerin classItemProcessingRequest<C extends Containerable>- 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<C extends Containerable>
-
getSynchronizationSituationOnProcessingStart
@Nullable public @Nullable SynchronizationSituationType getSynchronizationSituationOnProcessingStart()
Description copied from class:ItemProcessingRequestTODO reconsider- Specified by:
getSynchronizationSituationOnProcessingStartin classItemProcessingRequest<C extends Containerable>
-
toString
public String toString()
- Overrides:
toStringin classItemProcessingRequest<C extends Containerable>
-
-