Class OperationalDataManager
- java.lang.Object
-
- com.evolveum.midpoint.model.impl.lens.OperationalDataManager
-
@Component public class OperationalDataManager extends Object
- Author:
- semancik
-
-
Constructor Summary
Constructors Constructor Description OperationalDataManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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>
voidapplyMetadataModify(ObjectDelta<T> objectDelta, Class 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).
-
-
-
Method Detail
-
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 applyMetadataModify(ObjectDelta<T> objectDelta, Class 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
-
-