Class OperationalDataManager
java.lang.Object
com.evolveum.midpoint.model.impl.lens.OperationalDataManager
- All Implemented Interfaces:
DeltaExecutionPreprocessor
Manages metadata (mostly before delta execution), but also some other operational data, namely assignment effective status.
(I am not sure why do we that here. See
setAssignmentEffectiveStatus(AssignmentType)
.)- Author:
- semancik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ObjectType,
F extends ObjectType>
voidapplyMetadataAdd
(LensContext<F> context, PrismObject<T> objectToAdd, XMLGregorianCalendar now, Task task) Sets object and assignment metadata on object ADD operation.<T extends ObjectType,
F extends ObjectType, AH extends AssignmentHolderType>
voidapplyMetadataModify
(ObjectDelta<T> objectDelta, Class<T> objectTypeClass, LensElementContext<T> elementContext, XMLGregorianCalendar now, Task task, LensContext<F> context) <F extends ObjectType>
MetadataTypecreateCreateMetadata
(LensContext<F> context, XMLGregorianCalendar now, Task task) <F extends ObjectType,
T extends ObjectType>
Collection<ItemDelta<?,?>> createModifyMetadataDeltas
(LensContext<F> context, MetadataType existingMetadata, ItemPath metadataPath, Class<T> objectType, XMLGregorianCalendar now, Task task) Creates deltas for modification-related metadata (except for modification approval metadata).
-
Constructor Details
-
OperationalDataManager
public OperationalDataManager()
-
-
Method Details
-
applyMetadataAdd
public <T extends ObjectType,F extends ObjectType> void applyMetadataAdd(LensContext<F> context, PrismObject<T> objectToAdd, XMLGregorianCalendar now, Task task) Sets object and assignment metadata on object ADD operation. -
applyMetadataModify
public <T extends ObjectType,F extends ObjectType, void applyMetadataModifyAH extends AssignmentHolderType> (ObjectDelta<T> objectDelta, Class<T> objectTypeClass, LensElementContext<T> elementContext, XMLGregorianCalendar now, Task task, LensContext<F> context) throws SchemaException - Throws:
SchemaException
-
createCreateMetadata
public <F extends ObjectType> MetadataType createCreateMetadata(LensContext<F> context, XMLGregorianCalendar now, Task task) -
createModifyMetadataDeltas
public <F extends ObjectType,T extends ObjectType> Collection<ItemDelta<?,?>> createModifyMetadataDeltas(LensContext<F> context, MetadataType existingMetadata, ItemPath metadataPath, Class<T> objectType, XMLGregorianCalendar now, Task task) throws SchemaException Creates deltas for modification-related metadata (except for modification approval metadata). But also migrates creation channel, if needed.- Parameters:
existingMetadata
- Existing metadata bean, if known. It is used to execute the migration.- Throws:
SchemaException
-