1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.enrollment.courseofferingset.dto; |
17 | |
|
18 | |
import java.util.ArrayList; |
19 | |
import java.util.List; |
20 | |
|
21 | |
import javax.xml.bind.annotation.XmlAccessType; |
22 | |
import javax.xml.bind.annotation.XmlAccessorType; |
23 | |
import javax.xml.bind.annotation.XmlAnyElement; |
24 | |
import javax.xml.bind.annotation.XmlElement; |
25 | |
import javax.xml.bind.annotation.XmlType; |
26 | |
|
27 | |
import org.kuali.student.enrollment.courseofferingset.infc.SocRolloverResult; |
28 | |
import org.kuali.student.r2.common.dto.IdNamelessEntityInfo; |
29 | |
import org.kuali.student.r2.common.dto.RichTextInfo; |
30 | |
import org.w3c.dom.Element; |
31 | |
|
32 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
33 | |
@XmlType(name = "SocRolloverResultInfo", propOrder = {"id", |
34 | |
"typeKey", |
35 | |
"stateKey", |
36 | |
"sourceSocId", |
37 | |
"targetSocId", |
38 | |
"targetTermId", |
39 | |
"optionKeys", |
40 | |
"itemsProcessed", |
41 | |
"itemsExpected", |
42 | |
"courseOfferingsCreated", |
43 | |
"courseOfferingsSkipped", |
44 | |
"activityOfferingsCreated", |
45 | |
"activityOfferingsSkipped", |
46 | |
"sourceTermId", |
47 | |
"message", |
48 | |
"meta", |
49 | |
"attributes", |
50 | |
"_futureElements"}) |
51 | |
public class SocRolloverResultInfo |
52 | |
extends IdNamelessEntityInfo |
53 | |
implements SocRolloverResult { |
54 | |
|
55 | |
private static final long serialVersionUID = 1L; |
56 | |
@XmlElement |
57 | |
private String sourceSocId; |
58 | |
@XmlElement |
59 | |
private String targetSocId; |
60 | |
@XmlElement |
61 | |
private String targetTermId; |
62 | |
@XmlElement |
63 | |
private List<String> optionKeys; |
64 | |
@XmlElement |
65 | |
private Integer itemsProcessed; |
66 | |
@XmlElement |
67 | |
private Integer itemsExpected; |
68 | |
@XmlElement |
69 | |
private Integer courseOfferingsCreated; |
70 | |
@XmlElement |
71 | |
private Integer courseOfferingsSkipped; |
72 | |
@XmlElement |
73 | |
private Integer activityOfferingsCreated; |
74 | |
@XmlElement |
75 | |
private Integer activityOfferingsSkipped; |
76 | |
@XmlElement |
77 | |
private String sourceTermId; |
78 | |
@XmlElement |
79 | |
private RichTextInfo message; |
80 | |
@XmlAnyElement |
81 | |
private List<Element> _futureElements; |
82 | |
|
83 | 0 | public SocRolloverResultInfo() { |
84 | 0 | } |
85 | |
|
86 | |
|
87 | |
|
88 | |
|
89 | |
|
90 | |
|
91 | |
public SocRolloverResultInfo(SocRolloverResult orig) { |
92 | |
|
93 | 0 | super(orig); |
94 | |
|
95 | 0 | if (orig == null) { |
96 | 0 | return; |
97 | |
} |
98 | |
|
99 | 0 | this.sourceSocId = orig.getSourceSocId(); |
100 | 0 | this.targetSocId = orig.getTargetSocId(); |
101 | 0 | this.targetTermId = orig.getTargetTermId(); |
102 | 0 | this.optionKeys = new ArrayList<String>(orig.getOptionKeys()); |
103 | 0 | this.itemsProcessed = orig.getItemsProcessed(); |
104 | 0 | this.itemsExpected = orig.getItemsExpected(); |
105 | 0 | this.courseOfferingsCreated = orig.getCourseOfferingsCreated(); |
106 | 0 | this.courseOfferingsSkipped = orig.getCourseOfferingsSkipped(); |
107 | 0 | this.activityOfferingsCreated = orig.getActivityOfferingsCreated(); |
108 | 0 | this.activityOfferingsSkipped = orig.getActivityOfferingsSkipped(); |
109 | 0 | this.sourceTermId = orig.getSourceTermId(); |
110 | 0 | if (orig.getMessage() != null) { |
111 | 0 | this.message = new RichTextInfo (orig.getMessage()); |
112 | |
} |
113 | 0 | } |
114 | |
|
115 | |
@Override |
116 | |
public List<String> getOptionKeys() { |
117 | 0 | if (this.optionKeys == null) { |
118 | 0 | this.optionKeys = new ArrayList<String>(); |
119 | |
} |
120 | 0 | return optionKeys; |
121 | |
} |
122 | |
|
123 | |
public void setOptionKeys(List<String> optionKeys) { |
124 | 0 | this.optionKeys = optionKeys; |
125 | 0 | } |
126 | |
|
127 | |
@Override |
128 | |
public String getSourceSocId() { |
129 | 0 | return sourceSocId; |
130 | |
} |
131 | |
|
132 | |
public void setSourceSocId(String sourceSocId) { |
133 | 0 | this.sourceSocId = sourceSocId; |
134 | 0 | } |
135 | |
|
136 | |
@Override |
137 | |
public String getTargetSocId() { |
138 | 0 | return targetSocId; |
139 | |
} |
140 | |
|
141 | |
public void setTargetSocId(String targetSocId) { |
142 | 0 | this.targetSocId = targetSocId; |
143 | 0 | } |
144 | |
|
145 | |
@Override |
146 | |
public String getTargetTermId() { |
147 | 0 | return targetTermId; |
148 | |
} |
149 | |
|
150 | |
public void setTargetTermId(String targetTermId) { |
151 | 0 | this.targetTermId = targetTermId; |
152 | 0 | } |
153 | |
|
154 | |
@Override |
155 | |
public Integer getItemsProcessed() { |
156 | 0 | return itemsProcessed; |
157 | |
} |
158 | |
|
159 | |
public void setItemsProcessed(Integer itemsProcessed) { |
160 | 0 | this.itemsProcessed = itemsProcessed; |
161 | 0 | } |
162 | |
|
163 | |
@Override |
164 | |
public Integer getItemsExpected() { |
165 | 0 | return itemsExpected; |
166 | |
} |
167 | |
|
168 | |
public void setItemsExpected(Integer itemsExpected) { |
169 | 0 | this.itemsExpected = itemsExpected; |
170 | 0 | } |
171 | |
|
172 | |
@Override |
173 | |
public RichTextInfo getMessage() { |
174 | 0 | return message; |
175 | |
} |
176 | |
|
177 | |
public void setMessage(RichTextInfo message) { |
178 | 0 | this.message = message; |
179 | 0 | } |
180 | |
|
181 | |
@Override |
182 | |
public Integer getActivityOfferingsCreated() { |
183 | 0 | return activityOfferingsCreated; |
184 | |
} |
185 | |
|
186 | |
public void setActivityOfferingsCreated(Integer activityOfferingsCreated) { |
187 | 0 | this.activityOfferingsCreated = activityOfferingsCreated; |
188 | 0 | } |
189 | |
|
190 | |
@Override |
191 | |
public Integer getActivityOfferingsSkipped() { |
192 | 0 | return activityOfferingsSkipped; |
193 | |
} |
194 | |
|
195 | |
public void setActivityOfferingsSkipped(Integer activityOfferingsSkipped) { |
196 | 0 | this.activityOfferingsSkipped = activityOfferingsSkipped; |
197 | 0 | } |
198 | |
|
199 | |
@Override |
200 | |
public Integer getCourseOfferingsCreated() { |
201 | 0 | return courseOfferingsCreated; |
202 | |
} |
203 | |
|
204 | |
public void setCourseOfferingsCreated(Integer courseOfferingsCreated) { |
205 | 0 | this.courseOfferingsCreated = courseOfferingsCreated; |
206 | 0 | } |
207 | |
|
208 | |
@Override |
209 | |
public Integer getCourseOfferingsSkipped() { |
210 | 0 | return courseOfferingsSkipped; |
211 | |
} |
212 | |
|
213 | |
public void setCourseOfferingsSkipped(Integer courseOfferingsSkipped) { |
214 | 0 | this.courseOfferingsSkipped = courseOfferingsSkipped; |
215 | 0 | } |
216 | |
|
217 | |
@Override |
218 | |
public String getSourceTermId() { |
219 | 0 | return sourceTermId; |
220 | |
} |
221 | |
|
222 | |
public void setSourceTermId(String sourceTermId) { |
223 | 0 | this.sourceTermId = sourceTermId; |
224 | 0 | } |
225 | |
|
226 | |
|
227 | |
} |