View Javadoc
1   
2   package org.miloss.fgsms.services.interfaces.policyconfiguration;
3   
4   import javax.xml.bind.annotation.XmlEnum;
5   import javax.xml.bind.annotation.XmlEnumValue;
6   import javax.xml.bind.annotation.XmlType;
7   
8   
9   /**
10   * <p>Java class for RightEnum.
11   * 
12   * <p>The following schema fragment specifies the expected content contained within this class.
13   * <p>
14   * <pre>
15   * &lt;simpleType name="RightEnum">
16   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
17   *     &lt;enumeration value="administer"/>
18   *     &lt;enumeration value="audit"/>
19   *     &lt;enumeration value="write"/>
20   *     &lt;enumeration value="read"/>
21   *   &lt;/restriction>
22   * &lt;/simpleType>
23   * </pre>
24   * 
25   */
26  @XmlType(name = "RightEnum")
27  @XmlEnum
28  public enum RightEnum {
29  
30  
31      /**
32       * 
33       *                         Change Permissions
34       *                     
35       * 
36       */
37      @XmlEnumValue("administer")
38      ADMINISTER("administer"),
39  
40      /**
41       * 
42       *                         Read Request/Response messages, Read change logs
43       *                     
44       * 
45       */
46      @XmlEnumValue("audit")
47      AUDIT("audit"),
48  
49      /**
50       * 
51       *                         Change Policies
52       *                     
53       * 
54       */
55      @XmlEnumValue("write")
56      WRITE("write"),
57  
58      /**
59       * 
60       *                         Read Performance Statistics
61       *                     
62       * 
63       */
64      @XmlEnumValue("read")
65      READ("read");
66      private final String value;
67  
68      RightEnum(String v) {
69          value = v;
70      }
71  
72      public String value() {
73          return value;
74      }
75  
76      public static RightEnum fromValue(String v) {
77          for (RightEnum c: RightEnum.values()) {
78              if (c.value.equals(v)) {
79                  return c;
80              }
81          }
82          throw new IllegalArgumentException(v);
83      }
84  
85  }