Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Simon Hunt | f679c4e | 2016-04-01 17:02:24 -0700 | [diff] [blame] | 17 | package org.onosproject.ui.impl.topo; |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 18 | |
Sean Condon | a3ce00b | 2019-04-10 11:44:01 +0100 | [diff] [blame] | 19 | import org.onosproject.net.DeviceId; |
Simon Hunt | b1ce260 | 2016-07-23 14:04:31 -0700 | [diff] [blame] | 20 | import org.onosproject.net.region.RegionId; |
Simon Hunt | f679c4e | 2016-04-01 17:02:24 -0700 | [diff] [blame] | 21 | import org.onosproject.ui.UiTopoLayoutService; |
| 22 | import org.onosproject.ui.impl.UiWebSocket; |
Simon Hunt | 0e16109 | 2017-05-08 17:41:38 -0700 | [diff] [blame] | 23 | import org.onosproject.ui.model.topo.UiLinkId; |
Thomas Vachuska | 8c0b18a | 2017-04-14 16:27:33 -0700 | [diff] [blame] | 24 | import org.onosproject.ui.model.topo.UiModelEvent; |
Simon Hunt | cda9c03 | 2016-04-11 10:32:54 -0700 | [diff] [blame] | 25 | import org.onosproject.ui.impl.topo.model.UiModelListener; |
Simon Hunt | f679c4e | 2016-04-01 17:02:24 -0700 | [diff] [blame] | 26 | import org.onosproject.ui.impl.topo.model.UiSharedTopologyModel; |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 27 | import org.onosproject.ui.model.topo.UiClusterMember; |
Simon Hunt | 9818919 | 2016-07-29 19:02:27 -0700 | [diff] [blame] | 28 | import org.onosproject.ui.model.topo.UiNode; |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 29 | import org.onosproject.ui.model.topo.UiRegion; |
Simon Hunt | c13082f | 2016-08-03 21:20:23 -0700 | [diff] [blame] | 30 | import org.onosproject.ui.model.topo.UiSynthLink; |
Simon Hunt | f679c4e | 2016-04-01 17:02:24 -0700 | [diff] [blame] | 31 | import org.onosproject.ui.model.topo.UiTopoLayout; |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 32 | import org.slf4j.Logger; |
| 33 | import org.slf4j.LoggerFactory; |
| 34 | |
Simon Hunt | f836a87 | 2016-08-10 17:37:36 -0700 | [diff] [blame] | 35 | import java.util.ArrayList; |
Simon Hunt | b1ce260 | 2016-07-23 14:04:31 -0700 | [diff] [blame] | 36 | import java.util.HashSet; |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 37 | import java.util.List; |
Simon Hunt | 0e16109 | 2017-05-08 17:41:38 -0700 | [diff] [blame] | 38 | import java.util.Map; |
Simon Hunt | 977aa05 | 2016-07-20 17:08:29 -0700 | [diff] [blame] | 39 | import java.util.Set; |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 40 | |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 41 | /** |
Simon Hunt | f679c4e | 2016-04-01 17:02:24 -0700 | [diff] [blame] | 42 | * Coordinates with the {@link UiTopoLayoutService} to access |
| 43 | * {@link UiTopoLayout}s, and with the {@link UiSharedTopologyModel} which |
Simon Hunt | cda9c03 | 2016-04-11 10:32:54 -0700 | [diff] [blame] | 44 | * maintains a local model of the network entities, tailored specifically |
| 45 | * for displaying on the UI. |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 46 | * <p> |
| 47 | * Note that an instance of this class will be created for each |
Simon Hunt | f679c4e | 2016-04-01 17:02:24 -0700 | [diff] [blame] | 48 | * {@link UiWebSocket} connection, and will contain |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 49 | * the state of how the topology is laid out for the logged-in user. |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 50 | * <p> |
| 51 | * The expected pattern is for the {@link Topo2ViewMessageHandler} to obtain |
| 52 | * a reference to the session instance (via the {@link UiWebSocket}), and |
| 53 | * interact with it when topo-related events come in from the client. |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 54 | */ |
Simon Hunt | cda9c03 | 2016-04-11 10:32:54 -0700 | [diff] [blame] | 55 | public class UiTopoSession implements UiModelListener { |
Simon Hunt | 977aa05 | 2016-07-20 17:08:29 -0700 | [diff] [blame] | 56 | |
Simon Hunt | 537bc76 | 2016-12-20 12:15:13 -0800 | [diff] [blame] | 57 | private static final String TOPO2_UI_MODEL_EVENT = "topo2UiModelEvent"; |
| 58 | |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 59 | private final Logger log = LoggerFactory.getLogger(getClass()); |
| 60 | |
Simon Hunt | f679c4e | 2016-04-01 17:02:24 -0700 | [diff] [blame] | 61 | private final UiWebSocket webSocket; |
Simon Hunt | 7092cc4 | 2016-04-06 18:40:17 -0700 | [diff] [blame] | 62 | private final String username; |
Simon Hunt | 537bc76 | 2016-12-20 12:15:13 -0800 | [diff] [blame] | 63 | private final Topo2Jsonifier t2json; |
Simon Hunt | 7092cc4 | 2016-04-06 18:40:17 -0700 | [diff] [blame] | 64 | |
| 65 | final UiSharedTopologyModel sharedModel; |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 66 | |
| 67 | private boolean registered = false; |
| 68 | |
Thomas Vachuska | 92b016b | 2016-05-20 11:37:57 -0700 | [diff] [blame] | 69 | private UiTopoLayoutService layoutService; |
Simon Hunt | 7092cc4 | 2016-04-06 18:40:17 -0700 | [diff] [blame] | 70 | private UiTopoLayout currentLayout; |
Simon Hunt | bbd0f46 | 2017-01-10 14:50:22 -0800 | [diff] [blame] | 71 | private boolean messagesEnabled = true; |
Simon Hunt | f679c4e | 2016-04-01 17:02:24 -0700 | [diff] [blame] | 72 | |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 73 | /** |
Simon Hunt | 537bc76 | 2016-12-20 12:15:13 -0800 | [diff] [blame] | 74 | * Creates a new topology session for the specified web socket connection, |
| 75 | * and references to JSONifier, shared model, and layout service. |
Simon Hunt | 7092cc4 | 2016-04-06 18:40:17 -0700 | [diff] [blame] | 76 | * |
Thomas Vachuska | 92b016b | 2016-05-20 11:37:57 -0700 | [diff] [blame] | 77 | * @param webSocket web socket |
Simon Hunt | 537bc76 | 2016-12-20 12:15:13 -0800 | [diff] [blame] | 78 | * @param jsonifier JSONifier instance |
Thomas Vachuska | 92b016b | 2016-05-20 11:37:57 -0700 | [diff] [blame] | 79 | * @param model share topology model |
| 80 | * @param layoutService topology layout service |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 81 | */ |
Thomas Vachuska | 92b016b | 2016-05-20 11:37:57 -0700 | [diff] [blame] | 82 | public UiTopoSession(UiWebSocket webSocket, |
Simon Hunt | 537bc76 | 2016-12-20 12:15:13 -0800 | [diff] [blame] | 83 | Topo2Jsonifier jsonifier, |
Thomas Vachuska | 92b016b | 2016-05-20 11:37:57 -0700 | [diff] [blame] | 84 | UiSharedTopologyModel model, |
| 85 | UiTopoLayoutService layoutService) { |
Simon Hunt | f679c4e | 2016-04-01 17:02:24 -0700 | [diff] [blame] | 86 | this.webSocket = webSocket; |
Simon Hunt | 7092cc4 | 2016-04-06 18:40:17 -0700 | [diff] [blame] | 87 | this.username = webSocket.userName(); |
Simon Hunt | 537bc76 | 2016-12-20 12:15:13 -0800 | [diff] [blame] | 88 | this.t2json = jsonifier; |
Simon Hunt | cda9c03 | 2016-04-11 10:32:54 -0700 | [diff] [blame] | 89 | this.sharedModel = model; |
Thomas Vachuska | 92b016b | 2016-05-20 11:37:57 -0700 | [diff] [blame] | 90 | this.layoutService = layoutService; |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 91 | } |
| 92 | |
Simon Hunt | 977aa05 | 2016-07-20 17:08:29 -0700 | [diff] [blame] | 93 | // constructs a neutered instance, for unit testing |
| 94 | UiTopoSession() { |
| 95 | webSocket = null; |
| 96 | username = null; |
Simon Hunt | 537bc76 | 2016-12-20 12:15:13 -0800 | [diff] [blame] | 97 | t2json = null; |
Simon Hunt | 977aa05 | 2016-07-20 17:08:29 -0700 | [diff] [blame] | 98 | sharedModel = null; |
| 99 | } |
| 100 | |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 101 | /** |
Simon Hunt | 7092cc4 | 2016-04-06 18:40:17 -0700 | [diff] [blame] | 102 | * Initializes the session; registering with the shared model. |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 103 | */ |
| 104 | public void init() { |
| 105 | if (!registered) { |
Simon Hunt | 7092cc4 | 2016-04-06 18:40:17 -0700 | [diff] [blame] | 106 | log.debug("{} : Registering with shared model", this); |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 107 | sharedModel.register(this); |
Thomas Vachuska | 92b016b | 2016-05-20 11:37:57 -0700 | [diff] [blame] | 108 | currentLayout = layoutService.getRootLayout(); |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 109 | registered = true; |
| 110 | } else { |
| 111 | log.warn("already registered"); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | /** |
Simon Hunt | 7092cc4 | 2016-04-06 18:40:17 -0700 | [diff] [blame] | 116 | * Destroys the session; unregistering from the shared model. |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 117 | */ |
| 118 | public void destroy() { |
Simon Hunt | 7092cc4 | 2016-04-06 18:40:17 -0700 | [diff] [blame] | 119 | if (registered) { |
| 120 | log.debug("{} : Unregistering from shared model", this); |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 121 | sharedModel.unregister(this); |
Simon Hunt | f679c4e | 2016-04-01 17:02:24 -0700 | [diff] [blame] | 122 | registered = false; |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 123 | } else { |
| 124 | log.warn("already unregistered"); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | @Override |
| 129 | public String toString() { |
Simon Hunt | f679c4e | 2016-04-01 17:02:24 -0700 | [diff] [blame] | 130 | return String.format("{UiTopoSession for user <%s>}", username); |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 131 | } |
Simon Hunt | cda9c03 | 2016-04-11 10:32:54 -0700 | [diff] [blame] | 132 | |
| 133 | @Override |
Thomas Vachuska | 8c0b18a | 2017-04-14 16:27:33 -0700 | [diff] [blame] | 134 | public boolean isRelevant(UiModelEvent event) { |
| 135 | if (!messagesEnabled) { |
| 136 | return false; |
Simon Hunt | bbd0f46 | 2017-01-10 14:50:22 -0800 | [diff] [blame] | 137 | } |
Thomas Vachuska | 8c0b18a | 2017-04-14 16:27:33 -0700 | [diff] [blame] | 138 | UiRegion uiRegion = sharedModel.getRegion(currentLayout.regionId()); |
| 139 | return uiRegion.isRelevant(event); |
| 140 | } |
| 141 | |
| 142 | @Override |
| 143 | public void event(UiModelEvent event) { |
Sean Condon | a3ce00b | 2019-04-10 11:44:01 +0100 | [diff] [blame] | 144 | // To ensure link can be created devices have to be added to the list as |
| 145 | // they are created |
| 146 | if (event.type() == UiModelEvent.Type.DEVICE_ADDED_OR_UPDATED && |
Ray Milkey | 2b299d2 | 2019-04-11 14:19:06 -0700 | [diff] [blame] | 147 | event.memo().equals("added")) { |
Sean Condon | a3ce00b | 2019-04-10 11:44:01 +0100 | [diff] [blame] | 148 | UiRegion uiRegion = sharedModel.getRegion(currentLayout.regionId()); |
| 149 | uiRegion.newDeviceAdded(DeviceId.deviceId(event.subject().idAsString())); |
| 150 | } else if (event.type() == UiModelEvent.Type.DEVICE_REMOVED) { |
| 151 | UiRegion uiRegion = sharedModel.getRegion(currentLayout.regionId()); |
| 152 | uiRegion.deviceRemoved(DeviceId.deviceId(event.subject().idAsString())); |
| 153 | } |
| 154 | |
Thomas Vachuska | 8c0b18a | 2017-04-14 16:27:33 -0700 | [diff] [blame] | 155 | webSocket.sendMessage(TOPO2_UI_MODEL_EVENT, t2json.jsonEvent(event)); |
Simon Hunt | cda9c03 | 2016-04-11 10:32:54 -0700 | [diff] [blame] | 156 | } |
Thomas Vachuska | 92b016b | 2016-05-20 11:37:57 -0700 | [diff] [blame] | 157 | |
| 158 | /** |
| 159 | * Returns the current layout context. |
| 160 | * |
| 161 | * @return current topology layout |
| 162 | */ |
| 163 | public UiTopoLayout currentLayout() { |
| 164 | return currentLayout; |
| 165 | } |
| 166 | |
| 167 | /** |
Simon Hunt | f836a87 | 2016-08-10 17:37:36 -0700 | [diff] [blame] | 168 | * Returns the breadcrumb trail from current layout to root. That is, |
| 169 | * element 0 of the list will be the current layout; the last element |
| 170 | * of the list will be the root layout. This list is guaranteed to have |
| 171 | * size of at least 1. |
| 172 | * |
| 173 | * @return breadcrumb trail |
| 174 | */ |
| 175 | public List<UiTopoLayout> breadCrumbs() { |
| 176 | UiTopoLayout current = currentLayout; |
| 177 | List<UiTopoLayout> crumbs = new ArrayList<>(); |
| 178 | crumbs.add(current); |
| 179 | while (!current.isRoot()) { |
| 180 | current = layoutService.getLayout(current.parent()); |
| 181 | crumbs.add(current); |
| 182 | } |
| 183 | return crumbs; |
| 184 | } |
| 185 | |
| 186 | /** |
Thomas Vachuska | 92b016b | 2016-05-20 11:37:57 -0700 | [diff] [blame] | 187 | * Changes the current layout context to the specified layout. |
| 188 | * |
| 189 | * @param topoLayout new topology layout context |
| 190 | */ |
| 191 | public void setCurrentLayout(UiTopoLayout topoLayout) { |
| 192 | currentLayout = topoLayout; |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * Enables or disables the transmission of topology event update messages. |
| 197 | * |
| 198 | * @param enabled true if messages should be sent |
| 199 | */ |
| 200 | public void enableEvent(boolean enabled) { |
| 201 | messagesEnabled = enabled; |
| 202 | } |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 203 | |
| 204 | /** |
| 205 | * Returns the list of ONOS instances (cluster members). |
| 206 | * |
| 207 | * @return the list of ONOS instances |
| 208 | */ |
| 209 | public List<UiClusterMember> getAllInstances() { |
| 210 | return sharedModel.getClusterMembers(); |
| 211 | } |
| 212 | |
| 213 | /** |
| 214 | * Returns the region for the specified layout. |
| 215 | * |
| 216 | * @param layout layout filter |
| 217 | * @return region that the layout is based upon |
| 218 | */ |
| 219 | public UiRegion getRegion(UiTopoLayout layout) { |
Simon Hunt | b1ce260 | 2016-07-23 14:04:31 -0700 | [diff] [blame] | 220 | RegionId rid = layout.regionId(); |
| 221 | return rid == null ? sharedModel.getNullRegion() : sharedModel.getRegion(rid); |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 222 | } |
Simon Hunt | 977aa05 | 2016-07-20 17:08:29 -0700 | [diff] [blame] | 223 | |
| 224 | /** |
Simon Hunt | 9818919 | 2016-07-29 19:02:27 -0700 | [diff] [blame] | 225 | * Returns the regions/devices that are "peers" to this region. That is, |
| 226 | * based on the layout the user is viewing, all the regions/devices that |
| 227 | * are associated with layouts that share the same parent layout as this |
| 228 | * layout, AND that are linked to an element within this region. |
Simon Hunt | 977aa05 | 2016-07-20 17:08:29 -0700 | [diff] [blame] | 229 | * |
| 230 | * @param layout the layout being viewed |
Simon Hunt | 9818919 | 2016-07-29 19:02:27 -0700 | [diff] [blame] | 231 | * @return all regions/devices that are "siblings" to this layout's region |
Simon Hunt | 977aa05 | 2016-07-20 17:08:29 -0700 | [diff] [blame] | 232 | */ |
Simon Hunt | 9818919 | 2016-07-29 19:02:27 -0700 | [diff] [blame] | 233 | public Set<UiNode> getPeerNodes(UiTopoLayout layout) { |
| 234 | Set<UiNode> peers = new HashSet<>(); |
| 235 | |
| 236 | // first, get the peer regions |
| 237 | Set<UiTopoLayout> peerLayouts = layoutService.getPeerLayouts(layout.id()); |
| 238 | peerLayouts.forEach(l -> { |
| 239 | RegionId peerRegion = l.regionId(); |
| 240 | peers.add(sharedModel.getRegion(peerRegion)); |
| 241 | }); |
| 242 | |
| 243 | // now add the devices that reside in the parent region |
| 244 | if (!layout.isRoot()) { |
| 245 | UiTopoLayout parentLayout = layoutService.getLayout(layout.parent()); |
Simon Hunt | 8f60ff8 | 2017-04-24 17:19:30 -0700 | [diff] [blame] | 246 | peers.addAll(getRegion(parentLayout).devices()); |
Simon Hunt | 9818919 | 2016-07-29 19:02:27 -0700 | [diff] [blame] | 247 | } |
| 248 | |
| 249 | // TODO: Finally, filter out regions / devices that are not connected |
| 250 | // directly to this region by an implicit link |
Simon Hunt | b1ce260 | 2016-07-23 14:04:31 -0700 | [diff] [blame] | 251 | return peers; |
Simon Hunt | 977aa05 | 2016-07-20 17:08:29 -0700 | [diff] [blame] | 252 | } |
| 253 | |
| 254 | /** |
| 255 | * Returns the subregions of the region in the specified layout. |
| 256 | * |
| 257 | * @param layout the layout being viewed |
| 258 | * @return all regions that are "contained within" this layout's region |
| 259 | */ |
| 260 | public Set<UiRegion> getSubRegions(UiTopoLayout layout) { |
Simon Hunt | b1ce260 | 2016-07-23 14:04:31 -0700 | [diff] [blame] | 261 | Set<UiTopoLayout> kidLayouts = layoutService.getChildren(layout.id()); |
| 262 | Set<UiRegion> kids = new HashSet<>(); |
| 263 | kidLayouts.forEach(l -> kids.add(sharedModel.getRegion(l.regionId()))); |
| 264 | return kids; |
Simon Hunt | 977aa05 | 2016-07-20 17:08:29 -0700 | [diff] [blame] | 265 | } |
| 266 | |
| 267 | /** |
Simon Hunt | c13082f | 2016-08-03 21:20:23 -0700 | [diff] [blame] | 268 | * Returns the (synthetic) links of the region in the specified layout. |
| 269 | * |
| 270 | * @param layout the layout being viewed |
| 271 | * @return all links that are contained by this layout's region |
| 272 | */ |
| 273 | public List<UiSynthLink> getLinks(UiTopoLayout layout) { |
| 274 | return sharedModel.getSynthLinks(layout.regionId()); |
| 275 | } |
| 276 | |
| 277 | /** |
Simon Hunt | b1ce260 | 2016-07-23 14:04:31 -0700 | [diff] [blame] | 278 | * Refreshes the model's internal state. |
Simon Hunt | 977aa05 | 2016-07-20 17:08:29 -0700 | [diff] [blame] | 279 | */ |
Simon Hunt | b1ce260 | 2016-07-23 14:04:31 -0700 | [diff] [blame] | 280 | public void refreshModel() { |
| 281 | sharedModel.refresh(); |
Simon Hunt | 977aa05 | 2016-07-20 17:08:29 -0700 | [diff] [blame] | 282 | } |
Simon Hunt | 377f5d2 | 2016-09-01 16:27:21 -0700 | [diff] [blame] | 283 | |
| 284 | /** |
| 285 | * Navigates to the specified region by setting the associated layout as |
| 286 | * current. |
| 287 | * |
| 288 | * @param regionId region identifier |
| 289 | */ |
| 290 | public void navToRegion(String regionId) { |
| 291 | // 1. find the layout corresponding to the region ID |
| 292 | // 2. set this layout to be "current" |
| 293 | RegionId r = RegionId.regionId(regionId); |
| 294 | UiTopoLayout layout = layoutService.getLayout(r); |
| 295 | setCurrentLayout(layout); |
| 296 | } |
Simon Hunt | 0e16109 | 2017-05-08 17:41:38 -0700 | [diff] [blame] | 297 | |
| 298 | /** |
| 299 | * Returns synthetic links that are in the current region, mapped by |
| 300 | * original link ID. |
| 301 | * |
| 302 | * @return map of synth links |
| 303 | */ |
| 304 | public Map<UiLinkId, UiSynthLink> relevantSynthLinks() { |
| 305 | return sharedModel.relevantSynthLinks(currentLayout.regionId()); |
| 306 | } |
Simon Hunt | ed804d5 | 2016-03-30 09:51:40 -0700 | [diff] [blame] | 307 | } |