/** * Creates a dynamic view. * * @param key the key for the view (must be unique) * @param description a description of the view * @return a DynamicView object * @throws IllegalArgumentException if the key is not unique */ public DynamicView createDynamicView(String key, String description) { assertThatTheViewKeyIsSpecifiedAndUnique(key); DynamicView view = new DynamicView(model, key, description); view.setViewSet(this); dynamicViews.add(view); return view; }
/** * Creates a dynamic view, where the scope is the specified container. The following * elements can be added to the resulting view: * * <ul> * <li>People</li> * <li>Software systems</li> * <li>Containers with the same parent software system as the specified container</li> * <li>Components within the specified container</li> * </ul> * * @param container the Container object representing the scope of the view * @param key the key for the view (must be unique) * @param description a description of the view * @return a DynamicView object * @throws IllegalArgumentException if the container is null or the key is not unique */ public DynamicView createDynamicView(Container container, String key, String description) { assertThatTheContainerIsNotNull(container); assertThatTheViewKeyIsSpecifiedAndUnique(key); DynamicView view = new DynamicView(container, key, description); view.setViewSet(this); dynamicViews.add(view); return view; }
/** * Creates a dynamic view, where the scope is the specified software system. The following * elements can be added to the resulting view: * * <ul> * <li>People</li> * <li>Software systems</li> * <li>Containers that reside inside the specified software system</li> * </ul> * * @param softwareSystem the SoftwareSystem object representing the scope of the view * @param key the key for the view (must be unique) * @param description a description of the view * @return a DynamicView object * @throws IllegalArgumentException if the software system is null or the key is not unique */ public DynamicView createDynamicView(SoftwareSystem softwareSystem, String key, String description) { assertThatTheSoftwareSystemIsNotNull(softwareSystem); assertThatTheViewKeyIsSpecifiedAndUnique(key); DynamicView view = new DynamicView(softwareSystem, key, description); view.setViewSet(this); dynamicViews.add(view); return view; }
views.setComponentViews(Collections.singleton(componentView)); DynamicView dynamicView = new DynamicView(); dynamicView.setElementId(softwareSystem.getId()); dynamicView.setElements(elementViewsFor(component));