1 package com.atlassian.plugins.rest.doclet.generators.schema.beans.permissions;
2
3 import org.codehaus.jackson.annotate.JsonProperty;
4
5 public class PermissionJsonBean
6 {
7 @JsonProperty
8 public String id;
9
10 @JsonProperty
11 public String key;
12
13 @JsonProperty
14 public String name;
15
16 @JsonProperty
17 public PermissionType type;
18
19 @JsonProperty
20 public String description;
21
22 /**
23 * Indicate whether this is a project or global permission
24 */
25 static enum PermissionType
26 {
27 GLOBAL, PROJECT
28 }
29 }