1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kim.api.jaxb;
17
18 import java.io.Serializable;
19 import java.util.ArrayList;
20 import java.util.List;
21 import java.util.Map;
22
23 import javax.xml.bind.annotation.XmlAccessType;
24 import javax.xml.bind.annotation.XmlAccessorType;
25 import javax.xml.bind.annotation.XmlElement;
26 import javax.xml.bind.annotation.XmlType;
27
28 import org.kuali.rice.core.api.util.jaxb.MapStringStringAdapter;
29
30
31
32
33
34
35
36 @XmlAccessorType(XmlAccessType.FIELD)
37 @XmlType(name="PermissionDetailListType", propOrder={"permissionDetails"})
38 public class PermissionDetailList implements Serializable {
39
40 private static final long serialVersionUID = 1L;
41
42 @XmlElement(name="permissionDetail")
43 private List<MapStringStringAdapter.StringMapEntry> permissionDetails;
44
45 public PermissionDetailList() {
46 this.permissionDetails = new ArrayList<MapStringStringAdapter.StringMapEntry>();
47 }
48
49 public PermissionDetailList(Map<String, String> map) {
50 this();
51 for (Map.Entry<String,String> tempEntry : map.entrySet()) {
52 permissionDetails.add(new MapStringStringAdapter.StringMapEntry(tempEntry));
53 }
54 }
55
56
57
58
59 public List<MapStringStringAdapter.StringMapEntry> getPermissionDetails() {
60 return this.permissionDetails;
61 }
62
63
64
65
66 public void setPermissionDetails(List<MapStringStringAdapter.StringMapEntry> permissionDetails) {
67 this.permissionDetails = permissionDetails;
68 }
69
70 }