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 | |
@XmlAccessorType(XmlAccessType.FIELD) |
41 | 0 | public class CluCluRelationInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
42 | |
|
43 | |
private static final long serialVersionUID = 1L; |
44 | |
|
45 | |
@XmlElement |
46 | |
private String cluId; |
47 | |
|
48 | |
@XmlElement |
49 | |
private String relatedCluId; |
50 | |
|
51 | |
@XmlElement |
52 | |
private Boolean isCluRelationRequired; |
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 getRelatedCluId() { |
95 | 0 | return relatedCluId; |
96 | |
} |
97 | |
|
98 | |
public void setRelatedCluId(String relatedCluId) { |
99 | 0 | this.relatedCluId = relatedCluId; |
100 | 0 | } |
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | |
|
106 | |
|
107 | |
|
108 | |
public Boolean getIsCluRelationRequired() { |
109 | 0 | return isCluRelationRequired; |
110 | |
} |
111 | |
|
112 | |
public void setIsCluRelationRequired(Boolean isCluRelationRequired) { |
113 | 0 | this.isCluRelationRequired = isCluRelationRequired; |
114 | 0 | } |
115 | |
|
116 | |
|
117 | |
|
118 | |
|
119 | |
|
120 | |
|
121 | |
|
122 | |
|
123 | |
|
124 | |
public Date getEffectiveDate() { |
125 | 0 | return effectiveDate; |
126 | |
} |
127 | |
|
128 | |
public void setEffectiveDate(Date effectiveDate) { |
129 | 0 | this.effectiveDate = effectiveDate; |
130 | 0 | } |
131 | |
|
132 | |
|
133 | |
|
134 | |
|
135 | |
|
136 | |
|
137 | |
|
138 | |
|
139 | |
|
140 | |
|
141 | |
|
142 | |
public Date getExpirationDate() { |
143 | 0 | return expirationDate; |
144 | |
} |
145 | |
|
146 | |
public void setExpirationDate(Date expirationDate) { |
147 | 0 | this.expirationDate = expirationDate; |
148 | 0 | } |
149 | |
|
150 | |
|
151 | |
|
152 | |
|
153 | |
|
154 | |
|
155 | |
public Map<String, String> getAttributes() { |
156 | 0 | if (attributes == null) { |
157 | 0 | attributes = new HashMap<String, String>(); |
158 | |
} |
159 | |
|
160 | 0 | return attributes; |
161 | |
} |
162 | |
|
163 | |
@Override |
164 | |
public void setAttributes(Map<String, String> attributes) { |
165 | 0 | this.attributes = attributes; |
166 | 0 | } |
167 | |
|
168 | |
|
169 | |
|
170 | |
|
171 | |
|
172 | |
|
173 | |
|
174 | |
|
175 | |
public MetaInfo getMetaInfo() { |
176 | 0 | return metaInfo; |
177 | |
} |
178 | |
|
179 | |
public void setMetaInfo(MetaInfo metaInfo) { |
180 | 0 | this.metaInfo = metaInfo; |
181 | 0 | } |
182 | |
|
183 | |
|
184 | |
|
185 | |
|
186 | |
|
187 | |
|
188 | |
public String getType() { |
189 | 0 | return type; |
190 | |
} |
191 | |
|
192 | |
public void setType(String type) { |
193 | 0 | this.type = type; |
194 | 0 | } |
195 | |
|
196 | |
|
197 | |
|
198 | |
|
199 | |
|
200 | |
|
201 | |
|
202 | |
|
203 | |
|
204 | |
|
205 | |
public String getState() { |
206 | 0 | return state; |
207 | |
} |
208 | |
|
209 | |
public void setState(String state) { |
210 | 0 | this.state = state; |
211 | 0 | } |
212 | |
|
213 | |
|
214 | |
|
215 | |
|
216 | |
|
217 | |
|
218 | |
|
219 | |
|
220 | |
|
221 | |
public String getId() { |
222 | 0 | return id; |
223 | |
} |
224 | |
|
225 | |
public void setId(String id) { |
226 | 0 | this.id = id; |
227 | 0 | } |
228 | |
|
229 | |
@Override |
230 | |
public String toString() { |
231 | 0 | return "CluCluRelationInfo[id=" + id + ", cluId=" + cluId + ", relatedCluId=" + relatedCluId + ", type=" + type + ", cluRelationRequired=" + isCluRelationRequired + "]"; |
232 | |
} |
233 | |
} |