Search in sources :

Example 21 with ResourceOperationDescription

use of com.evolveum.midpoint.provisioning.api.ResourceOperationDescription in project midpoint by Evolveum.

the class Util method createSuccessOperationDescription.

static ResourceOperationDescription createSuccessOperationDescription(ProvisioningContext ctx, PrismObject<ShadowType> shadowType, ObjectDelta<? extends ShadowType> delta, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException {
    ResourceOperationDescription operationDescription = new ResourceOperationDescription();
    operationDescription.setCurrentShadow(shadowType);
    operationDescription.setResource(ctx.getResource().asPrismObject());
    operationDescription.setSourceChannel(ctx.getChannel());
    operationDescription.setObjectDelta(delta);
    operationDescription.setResult(parentResult);
    return operationDescription;
}
Also used : ResourceOperationDescription(com.evolveum.midpoint.provisioning.api.ResourceOperationDescription)

Aggregations

ResourceOperationDescription (com.evolveum.midpoint.provisioning.api.ResourceOperationDescription)21 ObjectDelta (com.evolveum.midpoint.prism.delta.ObjectDelta)10 ItemDelta (com.evolveum.midpoint.prism.delta.ItemDelta)5 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)5 ObjectDeltaType (com.evolveum.prism.xml.ns._public.types_3.ObjectDeltaType)5 GenericFrameworkException (com.evolveum.midpoint.provisioning.ucf.api.GenericFrameworkException)4 CommunicationException (com.evolveum.midpoint.util.exception.CommunicationException)4 ObjectNotFoundException (com.evolveum.midpoint.util.exception.ObjectNotFoundException)4 ConfigurationException (com.evolveum.midpoint.util.exception.ConfigurationException)3 ObjectAlreadyExistsException (com.evolveum.midpoint.util.exception.ObjectAlreadyExistsException)3 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)3 ResourceObjectEvent (com.evolveum.midpoint.notifications.api.events.ResourceObjectEvent)2 PrismObject (com.evolveum.midpoint.prism.PrismObject)2 ResourceAttributeContainer (com.evolveum.midpoint.schema.processor.ResourceAttributeContainer)2 AsynchronousOperationReturnValue (com.evolveum.midpoint.schema.result.AsynchronousOperationReturnValue)2 OperationResultStatus (com.evolveum.midpoint.schema.result.OperationResultStatus)2 SecurityViolationException (com.evolveum.midpoint.util.exception.SecurityViolationException)2 ShadowType (com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType)2 Date (java.util.Date)2 Duration (javax.xml.datatype.Duration)2