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