Make sure invokeOperation is set once
[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 @Deprecated
18 public enum Privilege implements Serializable {
19     NONE(""), // no privilege
20     READ("r"), // read only
21     USE("u"), // use
22     WRITE("w"); // modify
23
24     private String p;
25
26     private Privilege(String p) {
27         this.p = p;
28     }
29
30     @Override
31     public String toString() {
32         return p;
33     }
34
35 }