1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
package org.kuali.student.enrollment.lui.dto; |
18 |
|
|
19 |
|
import java.io.Serializable; |
20 |
|
import java.util.Date; |
21 |
|
import java.util.List; |
22 |
|
|
23 |
|
import javax.xml.bind.annotation.XmlAccessType; |
24 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
25 |
|
import javax.xml.bind.annotation.XmlAnyElement; |
26 |
|
import javax.xml.bind.annotation.XmlElement; |
27 |
|
import javax.xml.bind.annotation.XmlType; |
28 |
|
|
29 |
|
import org.kuali.student.common.infc.ModelBuilder; |
30 |
|
import org.kuali.student.enrollment.lui.infc.Lui; |
31 |
|
import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo; |
32 |
|
import org.kuali.student.r2.common.dto.IdEntityInfo; |
33 |
|
import org.w3c.dom.Element; |
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
41 |
|
@XmlType(name = "LuiInfo", propOrder = {"id","typeKey","stateKey","name", "descr", "luiCode", "cluId", "atpKey", "maxSeats", "effectiveDate", "expirationDate","metaInfo","attributes", "_futureElements"}) |
|
|
| 0% |
Uncovered Elements: 34 (34) |
Complexity: 10 |
Complexity Density: 0.45 |
|
42 |
|
public class LuiInfo extends IdEntityInfo |
43 |
|
implements Serializable, Lui { |
44 |
|
|
45 |
|
private static final long serialVersionUID = 1L; |
46 |
|
|
47 |
|
@XmlElement |
48 |
|
private final String luiCode; |
49 |
|
|
50 |
|
@XmlElement |
51 |
|
private final String cluId; |
52 |
|
|
53 |
|
@XmlElement |
54 |
|
private final String atpKey; |
55 |
|
|
56 |
|
@XmlElement |
57 |
|
private final Integer maxSeats; |
58 |
|
|
59 |
|
@XmlElement |
60 |
|
private final Date effectiveDate; |
61 |
|
|
62 |
|
@XmlElement |
63 |
|
private final Date expirationDate; |
64 |
|
|
65 |
|
@XmlAnyElement |
66 |
|
private final List<Element> _futureElements; |
67 |
|
|
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 1 |
Complexity Density: 0.12 |
|
68 |
0
|
private LuiInfo() {... |
69 |
0
|
super (); |
70 |
0
|
luiCode = null; |
71 |
0
|
cluId = null; |
72 |
0
|
atpKey = null; |
73 |
0
|
maxSeats = null; |
74 |
0
|
effectiveDate = null; |
75 |
0
|
expirationDate = null; |
76 |
0
|
_futureElements = null; |
77 |
|
} |
78 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 3 |
Complexity Density: 0.38 |
|
79 |
0
|
private LuiInfo(Lui builder) {... |
80 |
0
|
super(builder); |
81 |
0
|
this.luiCode = builder.getLuiCode(); |
82 |
0
|
this.cluId = builder.getCluId(); |
83 |
0
|
this.atpKey = builder.getAtpKey(); |
84 |
0
|
this.maxSeats =builder.getMaxSeats(); |
85 |
0
|
this.effectiveDate = null != builder.getEffectiveDate()? new Date(builder.getEffectiveDate().getTime()) : null; |
86 |
0
|
this.expirationDate = null != builder.getExpirationDate()? new Date(builder.getExpirationDate().getTime()) : null; |
87 |
0
|
this._futureElements = null; |
88 |
|
} |
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
94 |
0
|
@Override... |
95 |
|
public String getLuiCode() { |
96 |
0
|
return luiCode; |
97 |
|
} |
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
102 |
0
|
@Override... |
103 |
|
public String getCluId() { |
104 |
0
|
return cluId; |
105 |
|
} |
106 |
|
|
107 |
|
|
108 |
|
|
109 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
110 |
0
|
@Override... |
111 |
|
public String getAtpKey() { |
112 |
0
|
return atpKey; |
113 |
|
} |
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
118 |
0
|
@Override... |
119 |
|
public Integer getMaxSeats() { |
120 |
0
|
return maxSeats; |
121 |
|
} |
122 |
|
|
123 |
|
|
124 |
|
|
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
129 |
0
|
@Override... |
130 |
|
public Date getEffectiveDate() { |
131 |
0
|
return effectiveDate; |
132 |
|
} |
133 |
|
|
134 |
|
|
135 |
|
|
136 |
|
|
137 |
|
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
142 |
0
|
@Override... |
143 |
|
public Date getExpirationDate() { |
144 |
0
|
return expirationDate; |
145 |
|
} |
146 |
|
|
147 |
|
|
148 |
|
|
|
|
| 0% |
Uncovered Elements: 35 (35) |
Complexity: 15 |
Complexity Density: 0.75 |
|
149 |
|
public static class Builder extends IdEntityInfo.Builder implements ModelBuilder<LuiInfo>, Lui { |
150 |
|
|
151 |
|
private String luiCode; |
152 |
|
private String cluId; |
153 |
|
private String atpKey; |
154 |
|
private Integer maxSeats; |
155 |
|
private Date effectiveDate; |
156 |
|
private Date expirationDate; |
157 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
158 |
0
|
public Builder() {}... |
159 |
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 1 |
Complexity Density: 0.14 |
|
160 |
0
|
public Builder(Lui luiInfo) {... |
161 |
0
|
super(luiInfo); |
162 |
0
|
this.luiCode = luiInfo.getLuiCode(); |
163 |
0
|
this.cluId = luiInfo.getCluId(); |
164 |
0
|
this.atpKey = luiInfo.getAtpKey(); |
165 |
0
|
this.maxSeats = luiInfo.getMaxSeats(); |
166 |
0
|
this.effectiveDate = luiInfo.getEffectiveDate(); |
167 |
0
|
this.expirationDate = luiInfo.getExpirationDate(); |
168 |
|
} |
169 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
170 |
0
|
@Override... |
171 |
|
public LuiInfo build() { |
172 |
0
|
return new LuiInfo(this); |
173 |
|
} |
174 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
175 |
0
|
@Override... |
176 |
|
public String getLuiCode() { |
177 |
0
|
return luiCode; |
178 |
|
} |
179 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
180 |
0
|
public void setLuiCode(String luiCode) {... |
181 |
0
|
this.luiCode = luiCode; |
182 |
|
} |
183 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
184 |
0
|
@Override... |
185 |
|
public String getCluId() { |
186 |
0
|
return cluId; |
187 |
|
} |
188 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
189 |
0
|
public void setCluId(String cluId) {... |
190 |
0
|
this.cluId = cluId; |
191 |
|
} |
192 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
193 |
0
|
@Override... |
194 |
|
public String getAtpKey() { |
195 |
0
|
return atpKey; |
196 |
|
} |
197 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
198 |
0
|
public void setAtpKey(String atpKey) {... |
199 |
0
|
this.atpKey = atpKey; |
200 |
|
} |
201 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
202 |
0
|
@Override... |
203 |
|
public Integer getMaxSeats() { |
204 |
0
|
return maxSeats; |
205 |
|
} |
206 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
207 |
0
|
public void setMaxSeats(Integer maxSeats) {... |
208 |
0
|
this.maxSeats = maxSeats; |
209 |
|
} |
210 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
211 |
0
|
@Override... |
212 |
|
public Date getEffectiveDate() { |
213 |
0
|
return effectiveDate; |
214 |
|
} |
215 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
216 |
0
|
public void setEffectiveDate(Date effectiveDate) {... |
217 |
0
|
this.effectiveDate = effectiveDate; |
218 |
|
} |
219 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
220 |
0
|
@Override... |
221 |
|
public Date getExpirationDate() { |
222 |
0
|
return expirationDate; |
223 |
|
} |
224 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
225 |
0
|
public void setExpirationDate(Date expirationDate) {... |
226 |
0
|
this.expirationDate = expirationDate; |
227 |
|
} |
228 |
|
} |
229 |
|
} |