Search in sources :

Example 21 with LensContext

use of com.evolveum.midpoint.model.impl.lens.LensContext 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

LensContext (com.evolveum.midpoint.model.impl.lens.LensContext)21 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)15 Task (com.evolveum.midpoint.task.api.Task)13 Test (org.testng.annotations.Test)9 ModelContext (com.evolveum.midpoint.model.api.context.ModelContext)8 PolyString (com.evolveum.midpoint.prism.polystring.PolyString)6 JAXBException (javax.xml.bind.JAXBException)6 LensProjectionContext (com.evolveum.midpoint.model.impl.lens.LensProjectionContext)5 ObjectDelta (com.evolveum.midpoint.prism.delta.ObjectDelta)4 ResourceShadowDiscriminator (com.evolveum.midpoint.schema.ResourceShadowDiscriminator)4 ModelProjectionContext (com.evolveum.midpoint.model.api.context.ModelProjectionContext)3 LensFocusContext (com.evolveum.midpoint.model.impl.lens.LensFocusContext)3 ProtectedStringType (com.evolveum.prism.xml.ns._public.types_3.ProtectedStringType)3 XMLGregorianCalendar (javax.xml.datatype.XMLGregorianCalendar)3 SynchronizationPolicyDecision (com.evolveum.midpoint.model.api.context.SynchronizationPolicyDecision)2 HookOperationMode (com.evolveum.midpoint.model.api.hooks.HookOperationMode)2 ItemDefinition (com.evolveum.midpoint.prism.ItemDefinition)2 PrismContainerValue (com.evolveum.midpoint.prism.PrismContainerValue)2 PrismContext (com.evolveum.midpoint.prism.PrismContext)2 PrismObject (com.evolveum.midpoint.prism.PrismObject)2