1 package org.kuali.ole.sip2.common;
2
3
4
5
6
7
8
9
10 public class PatronStatus {
11
12 private boolean chargePrivilegesDenied;
13 private boolean renewalPrivilegesDenied;
14 private boolean recallPrivilegesDenied;
15 private boolean holdPrivilegesDenied;
16 private boolean cardReportedLost;
17 private boolean tooManyItemsCharged;
18 private boolean tooManyItemsOverdue;
19 private boolean tooManyRenewals;
20 private boolean tooManyClaimsOfItemsReturned;
21 private boolean tooManyItemsLost;
22 private boolean excessiveOutstandingFines;
23 private boolean excessiveOutstandingFees;
24 private boolean recallOverdue;
25 private boolean tooManyItemsBilled;
26
27
28
29
30
31 public PatronStatus() {
32 this.chargePrivilegesDenied = false;
33 this.renewalPrivilegesDenied = false;
34 this.recallPrivilegesDenied = false;
35 this.holdPrivilegesDenied = false;
36 this.cardReportedLost = false;
37 this.tooManyItemsCharged = false;
38 this.tooManyItemsOverdue = false;
39 this.tooManyRenewals = false;
40 this.tooManyClaimsOfItemsReturned = false;
41 this.tooManyItemsLost = false;
42 this.excessiveOutstandingFines = false;
43 this.excessiveOutstandingFees = false;
44 this.recallOverdue = false;
45 this.tooManyItemsBilled = false;
46 }
47
48
49
50
51
52
53
54 public boolean isChargePrivilegesDenied() {
55 return chargePrivilegesDenied;
56 }
57
58
59
60
61
62
63 public void setChargePrivilegesDenied(boolean chargePrivilegesDenied) {
64 this.chargePrivilegesDenied = chargePrivilegesDenied;
65 }
66
67
68
69
70
71
72
73 public boolean isRenewalPrivilegesDenied() {
74 return renewalPrivilegesDenied;
75 }
76
77
78
79
80
81
82
83 public void setRenewalPrivilegesDenied(boolean renewalPrivilegesDenied) {
84 this.renewalPrivilegesDenied = renewalPrivilegesDenied;
85 }
86
87
88
89
90
91
92
93 public boolean isRecallPrivilegesDenied() {
94 return recallPrivilegesDenied;
95 }
96
97
98
99
100
101
102
103 public void setRecallPrivilegesDenied(boolean recallPrivilegesDenied) {
104 this.recallPrivilegesDenied = recallPrivilegesDenied;
105 }
106
107
108
109
110
111
112
113 public boolean isHoldPrivilegesDenied() {
114 return holdPrivilegesDenied;
115 }
116
117
118
119
120
121
122
123 public void setHoldPrivilegesDenied(boolean holdPrivilegesDenied) {
124 this.holdPrivilegesDenied = holdPrivilegesDenied;
125 }
126
127
128
129
130
131
132 public boolean isCardReportedLost() {
133 return cardReportedLost;
134 }
135
136
137
138
139
140
141 public void setCardReportedLost(boolean cardReportedLost) {
142 this.cardReportedLost = cardReportedLost;
143 }
144
145
146
147
148
149
150 public boolean isTooManyItemsCharged() {
151 return tooManyItemsCharged;
152 }
153
154
155
156
157
158
159 public void setTooManyItemsCharged(boolean tooManyItemsCharged) {
160 this.tooManyItemsCharged = tooManyItemsCharged;
161 }
162
163
164
165
166
167
168 public boolean isTooManyItemsOverdue() {
169 return tooManyItemsOverdue;
170 }
171
172
173
174
175
176
177 public void setTooManyItemsOverdue(boolean tooManyItemsOverdue) {
178 this.tooManyItemsOverdue = tooManyItemsOverdue;
179 }
180
181
182
183
184
185
186 public boolean isTooManyRenewals() {
187 return tooManyRenewals;
188 }
189
190
191
192
193
194
195 public void setTooManyRenewals(boolean tooManyRenewals) {
196 this.tooManyRenewals = tooManyRenewals;
197 }
198
199
200
201
202
203
204
205
206 public boolean isTooManyClaimsOfItemsReturned() {
207 return tooManyClaimsOfItemsReturned;
208 }
209
210
211
212
213
214
215
216 public void setTooManyClaimsOfItemsReturned(boolean tooManyClaimsOfItemsReturned) {
217 this.tooManyClaimsOfItemsReturned = tooManyClaimsOfItemsReturned;
218 }
219
220
221
222
223
224
225 public boolean isTooManyItemsLost() {
226 return tooManyItemsLost;
227 }
228
229
230
231
232
233
234 public void setTooManyItemsLost(boolean tooManyItemsLost) {
235 this.tooManyItemsLost = tooManyItemsLost;
236 }
237
238
239
240
241
242
243 public boolean isExcessiveOutstandingFines() {
244 return excessiveOutstandingFines;
245 }
246
247
248
249
250
251
252 public void setExcessiveOutstandingFines(boolean excessiveOutstandingFines) {
253 this.excessiveOutstandingFines = excessiveOutstandingFines;
254 }
255
256
257
258
259
260
261 public boolean isExcessiveOutstandingFees() {
262 return excessiveOutstandingFees;
263 }
264
265
266
267
268
269
270 public void setExcessiveOutstandingFees(boolean excessiveOutstandingFees) {
271 this.excessiveOutstandingFees = excessiveOutstandingFees;
272 }
273
274
275
276
277
278
279 public boolean isRecallOverdue() {
280 return recallOverdue;
281 }
282
283
284
285
286
287
288 public void setRecallOverdue(boolean recallOverdue) {
289 this.recallOverdue = recallOverdue;
290 }
291
292
293
294
295
296
297 public boolean isTooManyItemsBilled() {
298 return tooManyItemsBilled;
299 }
300
301
302
303
304
305
306 public void setTooManyItemsBilled(boolean tooManyItemsBilled) {
307 this.tooManyItemsBilled = tooManyItemsBilled;
308 }
309
310
311
312
313
314
315 @Override
316 public String toString() {
317 StringBuilder builder = new StringBuilder();
318 builder.append(OLESIP2Util.bool2CharEmpty(chargePrivilegesDenied));
319 builder.append(OLESIP2Util.bool2CharEmpty(renewalPrivilegesDenied));
320 builder.append(OLESIP2Util.bool2CharEmpty(recallPrivilegesDenied));
321 builder.append(OLESIP2Util.bool2CharEmpty(holdPrivilegesDenied));
322 builder.append(OLESIP2Util.bool2CharEmpty(cardReportedLost));
323 builder.append(OLESIP2Util.bool2CharEmpty(tooManyItemsCharged));
324 builder.append(OLESIP2Util.bool2CharEmpty(tooManyItemsOverdue));
325 builder.append(OLESIP2Util.bool2CharEmpty(tooManyRenewals));
326 builder.append(OLESIP2Util.bool2CharEmpty(tooManyClaimsOfItemsReturned));
327 builder.append(OLESIP2Util.bool2CharEmpty(tooManyItemsLost));
328 builder.append(OLESIP2Util.bool2CharEmpty(excessiveOutstandingFines));
329 builder.append(OLESIP2Util.bool2CharEmpty(excessiveOutstandingFees));
330 builder.append(OLESIP2Util.bool2CharEmpty(recallOverdue));
331 builder.append(OLESIP2Util.bool2CharEmpty(tooManyItemsBilled));
332 return builder.toString();
333 }
334 }