Search in sources :

Example 1 with LensObjectDeltaOperationType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.LensObjectDeltaOperationType in project midpoint by Evolveum.

the class AbstractChangeExecutionOpNode method initialize.

void initialize() {
    if (!initialized) {
        trace = getTraceDownwards(ModelExecuteDeltaTraceType.class, 1);
        LensObjectDeltaOperationType lensObjectDeltaOperation = trace != null ? trace.getDelta() : null;
        objectDeltaOperation = lensObjectDeltaOperation != null ? lensObjectDeltaOperation.getObjectDeltaOperation() : null;
        initialized = true;
    }
}
Also used : LensObjectDeltaOperationType(com.evolveum.midpoint.xml.ns._public.common.common_3.LensObjectDeltaOperationType) ModelExecuteDeltaTraceType(com.evolveum.midpoint.xml.ns._public.common.common_3.ModelExecuteDeltaTraceType)

Example 2 with LensObjectDeltaOperationType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.LensObjectDeltaOperationType in project midpoint by Evolveum.

the class LensObjectDeltaOperation method toLensObjectDeltaOperationType.

@NotNull
public LensObjectDeltaOperationType toLensObjectDeltaOperationType() throws SchemaException {
    LensObjectDeltaOperationType retval = new LensObjectDeltaOperationType();
    DeltaConversionOptions options = DeltaConversionOptions.createSerializeReferenceNames();
    // Escaping invalid characters in serialized deltas could be questionable; see MID-6262.
    // But because we currently do not use the deltas for other than human readers we can afford
    // to replace invalid characters by descriptive text.
    options.setEscapeInvalidCharacters(true);
    retval.setObjectDeltaOperation(DeltaConvertor.toObjectDeltaOperationType(this, options));
    retval.setAudited(audited);
    return retval;
}
Also used : LensObjectDeltaOperationType(com.evolveum.midpoint.xml.ns._public.common.common_3.LensObjectDeltaOperationType) DeltaConversionOptions(com.evolveum.midpoint.schema.DeltaConversionOptions) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

LensObjectDeltaOperationType (com.evolveum.midpoint.xml.ns._public.common.common_3.LensObjectDeltaOperationType)2 DeltaConversionOptions (com.evolveum.midpoint.schema.DeltaConversionOptions)1 ModelExecuteDeltaTraceType (com.evolveum.midpoint.xml.ns._public.common.common_3.ModelExecuteDeltaTraceType)1 NotNull (org.jetbrains.annotations.NotNull)1