1 package org.kuali.ole.deliver.bo;
2
3 import org.kuali.ole.deliver.api.OleProxyPatronContract;
4 import org.kuali.ole.deliver.api.OleProxyPatronDefinition;
5 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
6
7 import java.util.Date;
8
9
10
11
12 public class OleProxyPatronDocument extends PersistableBusinessObjectBase implements OleProxyPatronContract {
13
14 private String oleProxyPatronDocumentId;
15 private String proxyPatronId;
16 private String olePatronId;
17 private Date proxyPatronExpirationDate;
18 private Date proxyPatronActivationDate;
19 private boolean active;
20
21 private String proxyPatronBarcode;
22 private String proxyPatronFirstName;
23 private String proxyPatronLastName;
24 private String proxyForPatronFirstName;
25 private String proxyForPatronLastName;
26
27 private OlePatronDocument olePatronDocument;
28
29
30
31
32
33
34 public String getProxyPatronBarcode() {
35 return proxyPatronBarcode;
36 }
37
38
39
40
41
42
43 public void setProxyPatronBarcode(String proxyPatronBarcode) {
44 this.proxyPatronBarcode = proxyPatronBarcode;
45 }
46
47
48
49
50
51
52 public String getProxyPatronFirstName() {
53 return proxyPatronFirstName;
54 }
55
56
57
58
59
60
61 public void setProxyPatronFirstName(String proxyPatronFirstName) {
62 this.proxyPatronFirstName = proxyPatronFirstName;
63 }
64
65
66
67
68
69
70 public String getProxyPatronLastName() {
71 return proxyPatronLastName;
72 }
73
74
75
76
77
78
79 public void setProxyPatronLastName(String proxyPatronLastName) {
80 this.proxyPatronLastName = proxyPatronLastName;
81 }
82
83
84
85
86
87
88 public String getOleProxyPatronDocumentId() {
89 return oleProxyPatronDocumentId;
90 }
91
92
93
94
95
96
97 public void setOleProxyPatronDocumentId(String oleProxyPatronDocumentId) {
98 this.oleProxyPatronDocumentId = oleProxyPatronDocumentId;
99 }
100
101
102
103
104
105
106 public String getProxyPatronId() {
107 return proxyPatronId;
108 }
109
110
111
112
113
114
115 public void setProxyPatronId(String proxyPatronId) {
116 this.proxyPatronId = proxyPatronId;
117 }
118
119
120
121
122
123
124 public String getOlePatronId() {
125 return olePatronId;
126 }
127
128
129
130
131
132
133 public void setOlePatronId(String olePatronId) {
134 this.olePatronId = olePatronId;
135 }
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150 public OlePatronDocument getOlePatronDocument() {
151 return olePatronDocument;
152 }
153
154
155
156
157
158
159 public void setOlePatronDocument(OlePatronDocument olePatronDocument) {
160 this.olePatronDocument = olePatronDocument;
161 }
162
163
164
165
166
167
168 public Date getProxyPatronExpirationDate() {
169 return proxyPatronExpirationDate;
170 }
171
172
173
174
175
176
177 public void setProxyPatronExpirationDate(Date proxyPatronExpirationDate) {
178 this.proxyPatronExpirationDate = proxyPatronExpirationDate;
179 }
180
181
182
183
184
185
186 public Date getProxyPatronActivationDate() {
187 return proxyPatronActivationDate;
188 }
189
190
191
192
193
194
195 public void setProxyPatronActivationDate(Date proxyPatronActivationDate) {
196 this.proxyPatronActivationDate = proxyPatronActivationDate;
197 }
198
199
200
201
202
203
204 public boolean isActive() {
205 return active;
206 }
207
208
209
210
211
212
213 public void setActive(boolean active) {
214 this.active = active;
215 }
216
217
218
219
220
221
222 public String getProxyForPatronFirstName() {
223 return proxyForPatronFirstName;
224 }
225
226
227
228
229
230
231 public void setProxyForPatronFirstName(String proxyForPatronFirstName) {
232 this.proxyForPatronFirstName = proxyForPatronFirstName;
233 }
234
235
236
237
238
239
240 public String getProxyForPatronLastName() {
241 return proxyForPatronLastName;
242 }
243
244
245
246
247
248
249 public void setProxyForPatronLastName(String proxyForPatronLastName) {
250 this.proxyForPatronLastName = proxyForPatronLastName;
251 }
252
253
254
255
256
257
258
259 static OleProxyPatronDefinition to(org.kuali.ole.deliver.bo.OleProxyPatronDocument bo) {
260 if (bo == null) {
261 return null;
262 }
263 return OleProxyPatronDefinition.Builder.create(bo).build();
264 }
265
266
267
268
269
270
271
272 public static org.kuali.ole.deliver.bo.OleProxyPatronDocument from(OleProxyPatronDefinition im) {
273 if (im == null) {
274 return null;
275 }
276
277 org.kuali.ole.deliver.bo.OleProxyPatronDocument bo = new org.kuali.ole.deliver.bo.OleProxyPatronDocument();
278 bo.oleProxyPatronDocumentId = im.getOleProxyPatronDocumentId();
279 bo.olePatronId = im.getOlePatronId();
280 bo.proxyPatronId = im.getProxyPatronId();
281
282
283
284 bo.active = im.isActive();
285 bo.proxyPatronExpirationDate = im.getProxyPatronExpirationDate();
286 bo.proxyPatronActivationDate = im.getProxyPatronActivationDate();
287 bo.versionNumber = im.getVersionNumber();
288
289
290 return bo;
291 }
292
293
294 @Override
295 public String getId() {
296 return this.oleProxyPatronDocumentId;
297 }
298 }