1 package org.kuali.ole.deliver.bo;
2
3 import org.apache.commons.lang.StringUtils;
4 import org.kuali.ole.deliver.calendar.bo.OleCalendarGroup;
5 import org.kuali.rice.krad.bo.PersistableBusinessObject;
6 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
7
8 import java.util.ArrayList;
9 import java.util.Collection;
10 import java.util.List;
11
12
13
14
15 public class OleCirculationDesk extends PersistableBusinessObjectBase {
16
17 private String circulationDeskId;
18 private String circulationDeskCode;
19 private String circulationDeskPublicName;
20 private String circulationDeskStaffName;
21 private boolean pickUpLocation;
22 private boolean asrPickupLocation;
23 private boolean active;
24 private String onHoldDays;
25 private String requestExpirationDays;
26 private String shelvingLagTime;
27 private List<OleCirculationDeskLocation> oleCirculationDeskLocations = new ArrayList<OleCirculationDeskLocation>();
28 private List<OleCirculationDeskLocation> oleCirculationDeskLocationList = new ArrayList<OleCirculationDeskLocation>();
29 private List<OleCirculationDeskLocation> olePickupCirculationDeskLocations = new ArrayList<OleCirculationDeskLocation>();
30 private List<OleCirculationDeskLocation> deleteoleCirculationDeskLocations = new ArrayList<OleCirculationDeskLocation>();
31 private List<OleCirculationDeskLocation> deleteOlePickupCirculationDeskLocations = new ArrayList<OleCirculationDeskLocation>();
32 private String locationId;
33 private boolean printSlip;
34 private String errorMessage;
35 private OleCalendarGroup oleCalendarGroup;
36 private String calendarGroupId;
37 private String holdFormat;
38 private boolean holdQueue;
39 private String replyToEmail;
40
41 public String getErrorMessage() {
42 return errorMessage;
43 }
44
45 public void setErrorMessage(String errorMessage) {
46 this.errorMessage = errorMessage;
47 }
48
49 public boolean isPrintSlip() {
50 return printSlip;
51 }
52
53 public void setPrintSlip(boolean printSlip) {
54 this.printSlip = printSlip;
55 }
56
57 public String getLocationId() {
58 return locationId;
59 }
60
61 public void setLocationId(String locationId) {
62 this.locationId = locationId;
63 }
64
65
66
67
68
69
70 public String getCirculationDeskId() {
71 return circulationDeskId;
72 }
73
74
75
76
77
78
79 public void setCirculationDeskId(String circulationDeskId) {
80 this.circulationDeskId = circulationDeskId;
81 }
82
83
84
85
86
87
88 public String getCirculationDeskCode() {
89 return circulationDeskCode;
90 }
91
92
93
94
95
96
97 public void setCirculationDeskCode(String circulationDeskCode) {
98 this.circulationDeskCode = circulationDeskCode;
99 }
100
101
102
103
104
105
106 public String getCirculationDeskPublicName() {
107 return circulationDeskPublicName;
108 }
109
110
111
112
113
114
115 public void setCirculationDeskPublicName(String circulationDeskPublicName) {
116 this.circulationDeskPublicName = circulationDeskPublicName;
117 }
118
119
120
121
122
123
124 public String getCirculationDeskStaffName() {
125 return circulationDeskStaffName;
126 }
127
128
129
130
131
132
133 public void setCirculationDeskStaffName(String circulationDeskStaffName) {
134 this.circulationDeskStaffName = circulationDeskStaffName;
135 }
136
137
138
139
140
141
142 public boolean isActive() {
143 return active;
144 }
145
146
147
148
149
150
151 public void setActive(boolean active) {
152 this.active = active;
153 }
154
155
156
157
158
159
160
161 public boolean isPickUpLocation() {
162 return pickUpLocation;
163 }
164
165 public void setPickUpLocation(boolean pickUpLocation) {
166 this.pickUpLocation = pickUpLocation;
167 }
168
169 public String getOnHoldDays() {
170 if(onHoldDays!=null && onHoldDays.equalsIgnoreCase("")){
171 return null;
172 }else{
173 return onHoldDays;
174 }
175 }
176
177 public void setOnHoldDays(String onHoldDays) {
178 this.onHoldDays = onHoldDays;
179 }
180
181 public List<OleCirculationDeskLocation> getOleCirculationDeskLocations() {
182 return oleCirculationDeskLocations;
183 }
184
185 public void setOleCirculationDeskLocations(List<OleCirculationDeskLocation> oleCirculationDeskLocations) {
186 this.oleCirculationDeskLocations = oleCirculationDeskLocations;
187 }
188
189 public String getShelvingLagTime() {
190 return shelvingLagTime;
191 }
192
193 public void setShelvingLagTime(String shelvingLagTime) {
194 this.shelvingLagTime = shelvingLagTime;
195 }
196
197 public OleCalendarGroup getOleCalendarGroup() {
198 return oleCalendarGroup;
199 }
200
201 public void setOleCalendarGroup(OleCalendarGroup oleCalendarGroup) {
202 this.oleCalendarGroup = oleCalendarGroup;
203 }
204
205 public String getCalendarGroupId() {
206 return calendarGroupId;
207 }
208
209 public void setCalendarGroupId(String calendarGroupId) {
210 this.calendarGroupId = calendarGroupId;
211 }
212
213 public List<OleCirculationDeskLocation> getDeleteoleCirculationDeskLocations() {
214 return deleteoleCirculationDeskLocations;
215 }
216
217 public void setDeleteoleCirculationDeskLocations(List<OleCirculationDeskLocation> deleteoleCirculationDeskLocations) {
218 this.deleteoleCirculationDeskLocations = deleteoleCirculationDeskLocations;
219 }
220
221 public boolean isAsrPickupLocation() {
222 return asrPickupLocation;
223 }
224
225 public void setAsrPickupLocation(boolean asrPickupLocation) {
226 this.asrPickupLocation = asrPickupLocation;
227 }
228
229 public String getHoldFormat() {
230 return holdFormat;
231 }
232
233 public void setHoldFormat(String holdFormat) {
234 this.holdFormat = holdFormat;
235 }
236
237 public boolean isHoldQueue() {
238 return holdQueue;
239 }
240
241 public void setHoldQueue(boolean holdQueue) {
242 this.holdQueue = holdQueue;
243 }
244
245 public String getReplyToEmail() {
246 return replyToEmail;
247 }
248
249 public void setReplyToEmail(String replyToEmail) {
250 this.replyToEmail = replyToEmail;
251 }
252
253 public List<OleCirculationDeskLocation> getOlePickupCirculationDeskLocations() {
254 return olePickupCirculationDeskLocations;
255 }
256
257 public void setOlePickupCirculationDeskLocations(List<OleCirculationDeskLocation> olePickupCirculationDeskLocations) {
258 this.olePickupCirculationDeskLocations = olePickupCirculationDeskLocations;
259 }
260
261 public List<OleCirculationDeskLocation> getDeleteOlePickupCirculationDeskLocations() {
262 return deleteOlePickupCirculationDeskLocations;
263 }
264
265 public void setDeleteOlePickupCirculationDeskLocations(List<OleCirculationDeskLocation> deleteOlePickupCirculationDeskLocations) {
266 this.deleteOlePickupCirculationDeskLocations = deleteOlePickupCirculationDeskLocations;
267 }
268
269 public List<OleCirculationDeskLocation> getOleCirculationDeskLocationList() {
270 return oleCirculationDeskLocationList;
271 }
272
273 public void setOleCirculationDeskLocationList(List<OleCirculationDeskLocation> oleCirculationDeskLocationList) {
274 this.oleCirculationDeskLocationList = oleCirculationDeskLocationList;
275 }
276
277 @Override
278 public List<Collection<PersistableBusinessObject>> buildListOfDeletionAwareLists() {
279 List<Collection<PersistableBusinessObject>> collectionList = new ArrayList<>();
280 collectionList.add((Collection)getOleCirculationDeskLocations());
281 collectionList.add((Collection)getDeleteOlePickupCirculationDeskLocations());
282 return collectionList;
283 }
284
285 public String getRequestExpirationDays() {
286 return StringUtils.isBlank(requestExpirationDays)?"0":requestExpirationDays;
287 }
288
289 public void setRequestExpirationDays(String requestExpirationDays) {
290 this.requestExpirationDays = requestExpirationDays;
291 }
292 }