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}
19 public class AppRole implements Serializable {
20 private static final long serialVersionUID = 1L;
24 public AppRole(String name, AppRoleLevel level) {
30 * Returns the application role name
31 * @return the string containing the role name
33 public String getName() {
38 * Returns the application role level
39 * @return the application user level
41 public AppRoleLevel getLevel() {