Search in sources :

Example 26 with ModelProjectionContext

use of com.evolveum.midpoint.model.api.context.ModelProjectionContext in project midpoint by Evolveum.

the class PrimaryChangeProcessor method contextCopyWithNoDelta.

public LensContext contextCopyWithNoDelta(ModelContext context) {
    LensContext contextCopy = ((LensContext) context).clone();
    contextCopy.replacePrimaryFocusDelta(null);
    Collection<LensProjectionContext> projectionContexts = contextCopy.getProjectionContexts();
    for (ModelProjectionContext projectionContext : projectionContexts) {
        projectionContext.setPrimaryDelta(null);
    }
    return contextCopy;
}
Also used : LensProjectionContext(com.evolveum.midpoint.model.impl.lens.LensProjectionContext) ModelProjectionContext(com.evolveum.midpoint.model.api.context.ModelProjectionContext) LensContext(com.evolveum.midpoint.model.impl.lens.LensContext)

Aggregations

ModelProjectionContext (com.evolveum.midpoint.model.api.context.ModelProjectionContext)26 ShadowType (com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType)21 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)20 UserType (com.evolveum.midpoint.xml.ns._public.common.common_3.UserType)19 Task (com.evolveum.midpoint.task.api.Task)18 Test (org.testng.annotations.Test)18 ObjectDelta (com.evolveum.midpoint.prism.delta.ObjectDelta)15 ModelExecuteOptions (com.evolveum.midpoint.model.api.ModelExecuteOptions)13 ObjectType (com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType)12 ResourceShadowDiscriminator (com.evolveum.midpoint.schema.ResourceShadowDiscriminator)11 LensContext (com.evolveum.midpoint.model.impl.lens.LensContext)3 PrismReference (com.evolveum.midpoint.prism.PrismReference)2 ReferenceDelta (com.evolveum.midpoint.prism.delta.ReferenceDelta)2 ItemPath (com.evolveum.midpoint.prism.path.ItemPath)2 ObjectDeltaOperation (com.evolveum.midpoint.schema.ObjectDeltaOperation)2 ArrayList (java.util.ArrayList)2 LensFocusContext (com.evolveum.midpoint.model.impl.lens.LensFocusContext)1 LensProjectionContext (com.evolveum.midpoint.model.impl.lens.LensProjectionContext)1 PrismReferenceValue (com.evolveum.midpoint.prism.PrismReferenceValue)1 PolyString (com.evolveum.midpoint.prism.polystring.PolyString)1