63babe7d0a0399ba3e5b9752b5a87740d3f712b7
[controller.git] / opendaylight / 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 /**
13  * It represents the group/resource access privilege
14  */
15 public enum Privilege {
16     NONE(""), // no privilege
17     READ("r"), // read only
18     USE("u"), // use
19     WRITE("w"); // modify
20
21     private String p;
22
23     private Privilege(String p) {
24         this.p = p;
25     }
26
27     @Override
28     public String toString() {
29         return p;
30     }
31
32 }