private void notifyAfterAdd( ProvisioningContext ctx, PrismObject<ShadowType> addedShadow, ProvisioningOperationState<AsynchronousOperationReturnValue<PrismObject<ShadowType>>> opState, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException { ObjectDelta<ShadowType> delta = DeltaFactory.Object.createAddDelta(addedShadow); ResourceOperationDescription operationDescription = createSuccessOperationDescription(ctx, addedShadow, delta, parentResult); if (opState.isExecuting()) { operationListener.notifyInProgress(operationDescription, task, parentResult); } else if (opState.isCompleted()) { operationListener.notifySuccess(operationDescription, task, parentResult); } }
private void notifyAfterDelete( ProvisioningContext ctx, PrismObject<ShadowType> shadow, ProvisioningOperationState<AsynchronousOperationResult> opState, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException { ObjectDelta<ShadowType> delta = prismContext.deltaFactory().object().createDeleteDelta(shadow.getCompileTimeClass(), shadow.getOid()); ResourceOperationDescription operationDescription = createSuccessOperationDescription(ctx, shadow, delta, parentResult); if (opState.isExecuting()) { operationListener.notifyInProgress(operationDescription, task, parentResult); } else { operationListener.notifySuccess(operationDescription, task, parentResult); } }
private void notifyAfterModify( ProvisioningContext ctx, PrismObject<ShadowType> repoShadow, Collection<? extends ItemDelta> modifications, ProvisioningOperationState<AsynchronousOperationReturnValue<Collection<PropertyDelta<PrismPropertyValue>>>> opState, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException { ObjectDelta<ShadowType> delta = prismContext.deltaFactory().object().createModifyDelta(repoShadow.getOid(), modifications, repoShadow.getCompileTimeClass()); ResourceOperationDescription operationDescription = createSuccessOperationDescription(ctx, repoShadow, delta, parentResult); if (opState.isExecuting()) { operationListener.notifyInProgress(operationDescription, task, parentResult); } else { operationListener.notifySuccess(operationDescription, task, parentResult); } }
ResourceOperationDescription operationDescription = createSuccessOperationDescription(ctx, repoShadow, repoShadow.createDeleteDelta(), parentResult); operationListener.notifySuccess(operationDescription, task, parentResult); return null; } else {
ResourceOperationDescription operationDescription = createSuccessOperationDescription(ctx, repoShadow, notificationDelta, parentResult); operationListener.notifySuccess(operationDescription, task, parentResult);