blob: 7946fe5b21e6bee08852e87983891081346dd3ed [file] [log] [blame]
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -08003 *
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
Simon Hunt23f9c7b2017-07-10 20:00:30 -070018import org.onosproject.ui.lion.LionBundle;
19
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080020import java.util.List;
21
22/**
23 * Service for registering user interface extensions.
24 */
25public interface UiExtensionService {
26
27 /**
28 * Registers the specified user interface extension.
29 *
Simon Hunt8add9ee2016-09-20 17:05:07 -070030 * @param extension UI extension to register
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080031 */
32 void register(UiExtension extension);
33
34 /**
35 * Unregisters the specified user interface extension.
36 *
Simon Hunt8add9ee2016-09-20 17:05:07 -070037 * @param extension UI extension to unregister
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080038 */
39 void unregister(UiExtension extension);
40
41 /**
Simon Hunt8add9ee2016-09-20 17:05:07 -070042 * Returns the list of registered user interface extensions.
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080043 *
44 * @return list of extensions
45 */
46 List<UiExtension> getExtensions();
47
48 /**
49 * Returns the user interface extension that contributed the specified view.
50 *
51 * @param viewId view identifier
Simon Hunt8add9ee2016-09-20 17:05:07 -070052 * @return contributing user interface extension
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080053 */
54 UiExtension getViewExtension(String viewId);
Simon Hunt23f9c7b2017-07-10 20:00:30 -070055
56 /**
57 * Returns the navigation pane localization bundle.
58 *
59 * @return the navigation localization bundle
60 */
61 LionBundle getNavLionBundle();
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080062}