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;
}
Aggregations