2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.web;
11 import org.opendaylight.controller.sal.authorization.UserLevel;
13 public interface IDaylightWeb {
15 * Returns the name of the bundle. In the GUI, this name will be displayed
18 * @return Name assigned to the bundle.
20 public String getWebName();
23 * Returns the Id assigned to the web bundle.
25 * @return Id assigned to the web bundle.
27 public String getWebId();
30 * Returns the position where the bundle tab will be placed in the GUI.
32 * @return Position number for the bundle tab.
34 public short getWebOrder();
37 * This method checks if the user is authorized to access the bundle.
40 * user role level in the controller space.
42 * @return true, if user is authorized to access the bundle, else false.
44 public boolean isAuthorized(UserLevel userLevel);