@Test public void test200UserDeltaBasic() throws Exception { final String TEST_NAME = "test200UserDeltaBasic"; Task task = createTask(TEST_NAME); ObjectDelta<?> delta = DeltaBuilder.deltaFor(UserType.class, prismContext) .item(UserType.F_NAME).replace("admin") .asObjectDelta(USER_ADMINISTRATOR_OID); displayWhen(TEST_NAME); final Scene scene = visualizer.visualizeDelta((ObjectDelta<? extends ObjectType>) delta, task, task.getResult()); displayThen(TEST_NAME); display("scene", scene); }
@NotNull public SceneImpl visualizeDelta(ObjectDelta<? extends ObjectType> objectDelta, Task task, OperationResult parentResult) throws SchemaException, ExpressionEvaluationException { OperationResult result = parentResult.createSubresult(CLASS_DOT + "visualizeDelta"); try { resolver.resolve(objectDelta, task, result); return visualizeDelta(objectDelta, null, new VisualizationContext(), task, result); } catch (RuntimeException | Error | SchemaException | ExpressionEvaluationException e) { result.recordFatalError("Couldn't visualize the data structure: " + e.getMessage(), e); throw e; } finally { result.computeStatusIfUnknown(); } }
Visualizer { @NotNull public SceneImpl visualizeDelta(ObjectDelta<? extends ObjectType> objectDelta, Task task, OperationResult parentResult) throws SchemaException, ExpressionEvaluationException { OperationResult result = parentResult.createSubresult(CLASS_DOT + "visualizeDelta"); try { resolver.resolve(objectDelta, task, result); return visualizeDelta(objectDelta, null, new VisualizationContext(), task, result); } catch (RuntimeException | Error | SchemaException | ExpressionEvaluationException e) { result.recordFatalError("Couldn't visualize the data structure: " + e.getMessage(), e); throw e; } finally { result.computeStatusIfUnknown(); } } }
Visualizer { @NotNull public SceneImpl visualizeDelta(ObjectDelta<? extends ObjectType> objectDelta, Task task, OperationResult parentResult) throws SchemaException, ExpressionEvaluationException { OperationResult result = parentResult.createSubresult(CLASS_DOT + "visualizeDelta"); try { resolver.resolve(objectDelta, task, result); return visualizeDelta(objectDelta, null, new VisualizationContext(), task, result); } catch (RuntimeException | Error | SchemaException | ExpressionEvaluationException e) { result.recordFatalError("Couldn't visualize the data structure: " + e.getMessage(), e); throw e; } finally { result.computeStatusIfUnknown(); } }  }
Visualizer { @NotNull public SceneImpl visualizeDelta(ObjectDelta<? extends ObjectType> objectDelta, Task task, OperationResult parentResult) throws SchemaException, ExpressionEvaluationException { OperationResult result = parentResult.createSubresult(CLASS_DOT + "visualizeDelta"); try { resolver.resolve(objectDelta, task, result); return visualizeDelta(objectDelta, null, new VisualizationContext(), task, result); } catch (RuntimeException | Error | SchemaException | ExpressionEvaluationException e) { result.recordFatalError("Couldn't visualize the data structure: " + e.getMessage(), e); throw e; } finally { result.computeStatusIfUnknown(); } }  SceneImpl visualize(PrismObject<? extends ObjectType> object, Task task, OperationResult parentResult); SceneImpl visualize(PrismObject<? extends ObjectType> object, VisualizationContext context, Task task, OperationResult parentResult); List<? extends SceneImpl> visualizeDeltas(List<ObjectDelta<? extends ObjectType>> deltas, Task task, OperationResult parentResult); @NotNull SceneImpl visualizeDelta(ObjectDelta<? extends ObjectType> objectDelta, Task task, OperationResult parentResult); }
Visualizer { @NotNull public SceneImpl visualizeDelta(ObjectDelta<? extends ObjectType> objectDelta, Task task, OperationResult parentResult) throws SchemaException, ExpressionEvaluationException { OperationResult result = parentResult.createSubresult(CLASS_DOT + "visualizeDelta"); try { resolver.resolve(objectDelta, task, result); return visualizeDelta(objectDelta, null, new VisualizationContext(), task, result); } catch (RuntimeException | Error | SchemaException | ExpressionEvaluationException e) { result.recordFatalError("Couldn't visualize the data structure: " + e.getMessage(), e); throw e; } finally { result.computeStatusIfUnknown(); } }  SceneImpl visualize(PrismObject<? extends ObjectType> object, Task task, OperationResult parentResult); SceneImpl visualize(PrismObject<? extends ObjectType> object, VisualizationContext context, Task task, OperationResult parentResult); List<? extends SceneImpl> visualizeDeltas(List<ObjectDelta<? extends ObjectType>> deltas, Task task, OperationResult parentResult); @NotNull SceneImpl visualizeDelta(ObjectDelta<? extends ObjectType> objectDelta, Task task, OperationResult parentResult); static final String CLASS_DOT; }