Mark AD-SAL interfaces as deprecated
[controller.git] / opendaylight / adsal / sal / api / src / main / java / org / opendaylight / controller / sal / authorization / AppRole.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
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
8  */
9
10 package org.opendaylight.controller.sal.authorization;
11
12 import java.io.Serializable;
13
14 /**
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}
18  */
19 @Deprecated
20 public class AppRole implements Serializable {
21     private static final long serialVersionUID = 1L;
22     String name;
23     AppRoleLevel level;
24
25     public AppRole(String name, AppRoleLevel level) {
26         this.name = name;
27         this.level = level;
28     }
29
30     /**
31      * Returns the application role name
32      * @return the string containing the role name
33      */
34     public String getName() {
35         return name;
36     }
37
38     /**
39      * Returns the application role level
40      * @return the application user level
41      */
42     public AppRoleLevel getLevel() {
43         return level;
44     }
45 }