BUG-2218: Keep existing link augmentations during discovery process
[controller.git] / opendaylight / adsal / sal / api / src / main / java / org / opendaylight / controller / sal / authorization / Privilege.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  * It represents the group/resource access privilege
16  */
17 public enum Privilege implements Serializable {
18     NONE(""), // no privilege
19     READ("r"), // read only
20     USE("u"), // use
21     WRITE("w"); // modify
22
23     private String p;
24
25     private Privilege(String p) {
26         this.p = p;
27     }
28
29     @Override
30     public String toString() {
31         return p;
32     }
33
34 }