blob: 0aa7db0c827ece5fe236a4d2599809301c502c1e [file] [log] [blame]
Simon Huntf679c4e2016-04-01 17:02:24 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
Simon Huntf679c4e2016-04-01 17:02:24 -07003 *
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 */
16package org.onosproject.ui;
17
18import org.onosproject.ui.model.topo.UiTopoLayout;
19
20import java.util.List;
21
22/**
23 * Service for managing {@link UiTopoLayout} instances.
24 */
25public interface UiTopoLayoutService {
26
27 /**
28 * Returns the list of available layouts.
29 *
30 * @return available layouts
31 */
32 List<UiTopoLayout> getLayouts();
33
34 /**
35 * Adds a layout to the system.
36 *
37 * @param layout the layout to add
38 * @return an indication of success
39 */
40 boolean addLayout(UiTopoLayout layout);
41
42 /**
43 * Removes a layout from the system.
44 *
45 * @param layout the layout to remove
46 * @return an indication of success
47 */
48 boolean removeLayout(UiTopoLayout layout);
49
50}