1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.lum.lu.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.HashMap; |
20 | |
import java.util.Map; |
21 | |
|
22 | |
import javax.xml.bind.annotation.XmlAccessType; |
23 | |
import javax.xml.bind.annotation.XmlAccessorType; |
24 | |
import javax.xml.bind.annotation.XmlAttribute; |
25 | |
import javax.xml.bind.annotation.XmlElement; |
26 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
27 | |
|
28 | |
import org.kuali.student.core.dto.HasAttributes; |
29 | |
import org.kuali.student.core.dto.Idable; |
30 | |
import org.kuali.student.core.dto.MetaInfo; |
31 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
@XmlAccessorType(XmlAccessType.FIELD) |
40 | 0 | public class AdminOrgInfo implements Serializable, Idable, HasAttributes { |
41 | |
|
42 | |
private static final long serialVersionUID = 1L; |
43 | |
|
44 | |
@XmlAttribute |
45 | |
private String id; |
46 | |
|
47 | |
@XmlElement |
48 | |
private String orgId; |
49 | |
|
50 | |
@XmlElement |
51 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
52 | |
private Map<String, String> attributes; |
53 | |
|
54 | |
@XmlElement |
55 | |
private MetaInfo metaInfo; |
56 | |
|
57 | |
@XmlAttribute |
58 | |
private String type; |
59 | |
|
60 | |
@XmlElement |
61 | |
private boolean isPrimary; |
62 | |
|
63 | |
|
64 | |
|
65 | |
|
66 | |
|
67 | |
public String getId() { |
68 | 0 | return id; |
69 | |
} |
70 | |
|
71 | |
public void setId(String id) { |
72 | 0 | this.id = id; |
73 | 0 | } |
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
public String getOrgId() { |
79 | 0 | return orgId; |
80 | |
} |
81 | |
|
82 | |
public void setOrgId(String orgId) { |
83 | 0 | this.orgId = orgId; |
84 | 0 | } |
85 | |
|
86 | |
|
87 | |
|
88 | |
|
89 | |
public Map<String, String> getAttributes() { |
90 | 0 | if (attributes == null) { |
91 | 0 | attributes = new HashMap<String, String>(); |
92 | |
} |
93 | 0 | return attributes; |
94 | |
} |
95 | |
|
96 | |
public void setAttributes(Map<String, String> attributes) { |
97 | 0 | this.attributes = attributes; |
98 | 0 | } |
99 | |
|
100 | |
public String getType() { |
101 | 0 | return type; |
102 | |
} |
103 | |
|
104 | |
public void setType(String type) { |
105 | 0 | this.type = type; |
106 | 0 | } |
107 | |
|
108 | |
public boolean isPrimary() { |
109 | 0 | return isPrimary; |
110 | |
} |
111 | |
|
112 | |
public void setPrimary(boolean isPrimary) { |
113 | 0 | this.isPrimary = isPrimary; |
114 | 0 | } |
115 | |
|
116 | |
public MetaInfo getMetaInfo() { |
117 | 0 | return metaInfo; |
118 | |
} |
119 | |
|
120 | |
public void setMetaInfo(MetaInfo metaInfo) { |
121 | 0 | this.metaInfo = metaInfo; |
122 | 0 | } |
123 | |
} |