3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.controller.sal.authorization;
12 import java.io.Serializable;
15 * Represents a user role level in the application space
16 * It contains the role name and the role level in the
17 * application context as specified by {@link AppRoleLevel}
20 public class AppRole implements Serializable {
21 private static final long serialVersionUID = 1L;
25 public AppRole(String name, AppRoleLevel level) {
31 * Returns the application role name
32 * @return the string containing the role name
34 public String getName() {
39 * Returns the application role level
40 * @return the application user level
42 public AppRoleLevel getLevel() {