1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.lum.lu.dto; |
18 | |
|
19 | |
import org.kuali.student.core.dto.HasAttributes; |
20 | |
import org.kuali.student.core.dto.HasTypeState; |
21 | |
import org.kuali.student.core.dto.Idable; |
22 | |
import org.kuali.student.core.dto.MetaInfo; |
23 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
24 | |
|
25 | |
import javax.xml.bind.annotation.XmlAccessType; |
26 | |
import javax.xml.bind.annotation.XmlAccessorType; |
27 | |
import javax.xml.bind.annotation.XmlAttribute; |
28 | |
import javax.xml.bind.annotation.XmlElement; |
29 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
30 | |
import java.io.Serializable; |
31 | |
import java.util.Date; |
32 | |
import java.util.HashMap; |
33 | |
import java.util.Map; |
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
@XmlAccessorType(XmlAccessType.FIELD) |
44 | 0 | public class CluLoRelationInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
45 | |
|
46 | |
private static final long serialVersionUID = 1L; |
47 | |
|
48 | |
@XmlElement |
49 | |
private String cluId; |
50 | |
|
51 | |
@XmlElement |
52 | |
private String loId; |
53 | |
|
54 | |
@XmlElement |
55 | |
private Date effectiveDate; |
56 | |
|
57 | |
@XmlElement |
58 | |
private Date expirationDate; |
59 | |
|
60 | |
@XmlElement |
61 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
62 | |
private Map<String, String> attributes; |
63 | |
|
64 | |
@XmlElement |
65 | |
private MetaInfo metaInfo; |
66 | |
|
67 | |
@XmlAttribute |
68 | |
private String type; |
69 | |
|
70 | |
@XmlAttribute |
71 | |
private String state; |
72 | |
|
73 | |
@XmlAttribute |
74 | |
private String id; |
75 | |
|
76 | |
|
77 | |
|
78 | |
|
79 | |
|
80 | |
|
81 | |
public String getCluId() { |
82 | 0 | return cluId; |
83 | |
} |
84 | |
|
85 | |
public void setCluId(String cluId) { |
86 | 0 | this.cluId = cluId; |
87 | 0 | } |
88 | |
|
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
|
94 | |
public String getLoId() { |
95 | 0 | return loId; |
96 | |
} |
97 | |
|
98 | |
public void setLoId(String loId) { |
99 | 0 | this.loId = loId; |
100 | 0 | } |
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | |
|
106 | |
|
107 | |
|
108 | |
|
109 | |
|
110 | |
public Date getEffectiveDate() { |
111 | 0 | return effectiveDate; |
112 | |
} |
113 | |
|
114 | |
public void setEffectiveDate(Date effectiveDate) { |
115 | 0 | this.effectiveDate = effectiveDate; |
116 | 0 | } |
117 | |
|
118 | |
|
119 | |
|
120 | |
|
121 | |
|
122 | |
|
123 | |
|
124 | |
|
125 | |
|
126 | |
|
127 | |
|
128 | |
public Date getExpirationDate() { |
129 | 0 | return expirationDate; |
130 | |
} |
131 | |
|
132 | |
public void setExpirationDate(Date expirationDate) { |
133 | 0 | this.expirationDate = expirationDate; |
134 | 0 | } |
135 | |
|
136 | |
|
137 | |
|
138 | |
|
139 | |
|
140 | |
|
141 | |
public Map<String, String> getAttributes() { |
142 | 0 | if (attributes == null) { |
143 | 0 | attributes = new HashMap<String, String>(); |
144 | |
} |
145 | |
|
146 | 0 | return attributes; |
147 | |
} |
148 | |
|
149 | |
public void setAttributes(Map<String, String> attributes) { |
150 | 0 | this.attributes = attributes; |
151 | 0 | } |
152 | |
|
153 | |
|
154 | |
|
155 | |
|
156 | |
|
157 | |
|
158 | |
|
159 | |
|
160 | |
public MetaInfo getMetaInfo() { |
161 | 0 | return metaInfo; |
162 | |
} |
163 | |
|
164 | |
public void setMetaInfo(MetaInfo metaInfo) { |
165 | 0 | this.metaInfo = metaInfo; |
166 | 0 | } |
167 | |
|
168 | |
|
169 | |
|
170 | |
|
171 | |
|
172 | |
|
173 | |
public String getType() { |
174 | 0 | return type; |
175 | |
} |
176 | |
|
177 | |
public void setType(String type) { |
178 | 0 | this.type = type; |
179 | 0 | } |
180 | |
|
181 | |
|
182 | |
|
183 | |
|
184 | |
|
185 | |
|
186 | |
|
187 | |
|
188 | |
|
189 | |
|
190 | |
public String getState() { |
191 | 0 | return state; |
192 | |
} |
193 | |
|
194 | |
public void setState(String state) { |
195 | 0 | this.state = state; |
196 | 0 | } |
197 | |
|
198 | |
|
199 | |
|
200 | |
|
201 | |
|
202 | |
|
203 | |
|
204 | |
|
205 | |
|
206 | |
public String getId() { |
207 | 0 | return id; |
208 | |
} |
209 | |
|
210 | |
public void setId(String id) { |
211 | 0 | this.id = id; |
212 | 0 | } |
213 | |
|
214 | |
@Override |
215 | |
public String toString() { |
216 | 0 | return "CLuLoRelationInfo[id=" + id + ", cluId=" + cluId + ", loId=" + loId + "]"; |
217 | |
} |
218 | |
} |