1 package org.kuali.ole.batch.document;
2
3 import org.kuali.ole.batch.bo.*;
4 import org.kuali.ole.batch.form.OLEBatchProcessDefinitionForm;
5 import org.kuali.rice.krad.document.TransactionalDocumentBase;
6 import org.kuali.rice.krad.service.KRADServiceLocator;
7 import org.springframework.web.multipart.MultipartFile;
8 import java.util.ArrayList;
9 import java.util.HashMap;
10 import java.util.List;
11 import java.util.Map;
12
13
14
15
16
17
18
19
20 public class OLEBatchProcessDefinitionDocument extends TransactionalDocumentBase {
21
22 private String batchProcessId;
23 private String batchProcessName;
24 private String batchProcessProfileName;
25 private String batchProcessType;
26 private String batchProcessKRMSProfile;
27 private String batchProcessProfileId;
28 private OLEBatchProcessProfileBo oleBatchProcessProfileBo;
29 private MultipartFile ingestedFile;
30 private List<OLEBatchProcessIngestFile> oleBatchProcessIngestFiles = new ArrayList<OLEBatchProcessIngestFile>();
31 private String outputFormat="marcxml";
32 private String outputFile;
33 private boolean scheduleCheck;
34 private boolean oneTimeCheck;
35
36
37 private boolean recurringCheck;
38 private boolean scheduleTypeDailyCheck;
39 private boolean scheduleTypeWeeklyCheck;
40 private boolean scheduleTypeMonthlyCheck;
41
42 private OLEBatchProcessDefinitionForm form;
43 private String sourceFilePath;
44 private String sourceDirectoryPath;
45 private String sourceFileMask;
46 private String fileFormatId;
47 private String destinationDirectoryPath;
48 private boolean scheduleFlag;
49 private String message;
50 private int chunkSize;
51 private String scheduleType;
52 private String exportType;
53 private boolean linkToJob;
54 private String enteredCronExp;
55 private String user;
56 private String cronOrSchedule;
57 private String emailIds;
58 private String uploadFileName;
59 private boolean rescheduleFlag = true;
60 private boolean fileFlag=false;
61 private boolean continueImportFlag=false;
62 private int maxRecordsInFile;
63 private int maxNumberOfThreads;
64 private boolean runNowFlag = false;
65 private String runNowOrSchedule;
66 private boolean afterSubmitFlag;
67 private String loadIdFromFile = "false";
68
69 public boolean isAfterSubmitFlag() {
70 return afterSubmitFlag;
71 }
72
73 public void setAfterSubmitFlag(boolean afterSubmitFlag) {
74 this.afterSubmitFlag = afterSubmitFlag;
75 }
76
77 public String getRunNowOrSchedule() {
78 return runNowOrSchedule;
79 }
80
81 public void setRunNowOrSchedule(String runNowOrSchedule) {
82 this.runNowOrSchedule = runNowOrSchedule;
83 }
84
85 public int getMaxNumberOfThreads() {
86 return maxNumberOfThreads;
87 }
88
89 public void setMaxNumberOfThreads(int maxNumberOfThreads) {
90 this.maxNumberOfThreads = maxNumberOfThreads;
91 }
92
93 public int getMaxRecordsInFile() {
94 return maxRecordsInFile;
95 }
96
97 public void setMaxRecordsInFile(int maxRecordsInFile) {
98 this.maxRecordsInFile = maxRecordsInFile;
99 }
100
101 public boolean isContinueImportFlag() {
102 return continueImportFlag;
103 }
104
105 public void setContinueImportFlag(boolean continueImportFlag) {
106 this.continueImportFlag = continueImportFlag;
107 }
108
109
110 public boolean isFileFlag() {
111 return fileFlag;
112 }
113
114 public void setFileFlag(boolean fileFlag) {
115 this.fileFlag = fileFlag;
116 }
117 private boolean addUnmatchedPatron;
118
119 public boolean isRescheduleFlag() {
120 return rescheduleFlag;
121 }
122
123 public void setRescheduleFlag(boolean rescheduleFlag) {
124 this.rescheduleFlag = rescheduleFlag;
125 }
126
127 public String getUploadFileName() {
128 return uploadFileName;
129 }
130
131 public void setUploadFileName(String uploadFileName) {
132 this.uploadFileName = uploadFileName;
133 }
134
135 public String getCronOrSchedule() {
136 return cronOrSchedule;
137 }
138
139 public void setCronOrSchedule(String cronOrSchedule) {
140 this.cronOrSchedule = cronOrSchedule;
141 }
142
143 public String getExportType() {
144 return exportType;
145 }
146
147 public void setExportType(String exportType) {
148 this.exportType = exportType;
149 }
150
151 public int getChunkSize() {
152 return chunkSize;
153 }
154
155 public void setChunkSize(int chunkSize) {
156 this.chunkSize = chunkSize;
157 }
158
159
160
161
162
163
164 private MultipartFile marcFile;
165 private MultipartFile ediFile;
166 private String inputFormat;
167 private MultipartFile serialRecordDocumentFile;
168 private MultipartFile serialRecordHistoryFile;
169 private MultipartFile serialRecordTypeFile;
170 private String serialRecordDocumentFileName;
171 private String serialRecordHistoryFileName;
172 private String serialRecordTypeFileName;
173 private String marcFileName;
174 private String ediFileName;
175 private String oneTimeOrRecurring;
176 private OLEBatchProcessScheduleBo oleBatchProcessScheduleBo;
177 private List<OLEBatchProcessScheduleBo> oleBatchProcessScheduleBoList;
178
179 private List<OLEBatchProcessJobDetailsBo> oleBatchProcessJobDetailsBoList;
180 private OLEBatchProcessProfileBo batchProcessProfileBo;
181
182 private Boolean marcOnly;
183
184 public Boolean getMarcOnly() {
185 return marcOnly;
186 }
187
188 public void setMarcOnly(Boolean marcOnly) {
189 this.marcOnly = marcOnly;
190 }
191
192 public String getMarcFileName() {
193 return marcFileName;
194 }
195
196 public void setMarcFileName(String marcFileName) {
197 this.marcFileName = marcFileName;
198 }
199
200 public String getEdiFileName() {
201 return ediFileName;
202 }
203
204 public void setEdiFileName(String ediFileName) {
205 this.ediFileName = ediFileName;
206 }
207
208 public MultipartFile getIngestedFile() {
209 return ingestedFile;
210 }
211
212 public void setIngestedFile(MultipartFile ingestedFile) {
213 this.ingestedFile = ingestedFile;
214 }
215
216 public String getSourceFilePath() {
217 return sourceFilePath;
218 }
219
220 public void setSourceFilePath(String sourceFilePath) {
221 this.sourceFilePath = sourceFilePath;
222 }
223
224 public String getSourceDirectoryPath() {
225 return sourceDirectoryPath;
226 }
227
228 public void setSourceDirectoryPath(String sourceDirectoryPath) {
229 this.sourceDirectoryPath = sourceDirectoryPath;
230 }
231
232 public String getSourceFileMask() {
233 return sourceFileMask;
234 }
235
236 public void setSourceFileMask(String sourceFileMask) {
237 this.sourceFileMask = sourceFileMask;
238 }
239
240 public String getFileFormatId() {
241 return fileFormatId;
242 }
243
244 public void setFileFormatId(String fileFormatId) {
245 this.fileFormatId = fileFormatId;
246 }
247
248 public String getDestinationDirectoryPath() {
249 return destinationDirectoryPath;
250 }
251
252 public void setDestinationDirectoryPath(String destinationDirectoryPath) {
253 this.destinationDirectoryPath = destinationDirectoryPath;
254 }
255
256 public String getBatchProcessId() {
257 return batchProcessId;
258 }
259
260 public void setBatchProcessId(String batchProcessId) {
261 this.batchProcessId = batchProcessId;
262 }
263
264 public String getBatchProcessProfileId() {
265 return batchProcessProfileId;
266 }
267
268 public void setBatchProcessProfileId(String batchProcessProfileId) {
269 this.batchProcessProfileId = batchProcessProfileId;
270 }
271
272 public OLEBatchProcessDefinitionForm getForm() {
273 return form;
274 }
275
276 public void setForm(OLEBatchProcessDefinitionForm form) {
277 this.form = form;
278 }
279
280 public String getBatchProcessName() {
281 return batchProcessName;
282 }
283
284 public void setBatchProcessName(String batchProcessName) {
285 this.batchProcessName = batchProcessName;
286 }
287
288 public String getBatchProcessProfileName() {
289 return batchProcessProfileName;
290 }
291
292 public void setBatchProcessProfileName(String batchProcessProfileName) {
293 this.batchProcessProfileName = batchProcessProfileName;
294 }
295
296 public String getBatchProcessType() {
297 return batchProcessType;
298 }
299
300 public void setBatchProcessType(String batchProcessType) {
301 this.batchProcessType = batchProcessType;
302 }
303
304 public String getBatchProcessKRMSProfile() {
305 return batchProcessKRMSProfile;
306 }
307
308 public void setBatchProcessKRMSProfile(String batchProcessKRMSProfile) {
309 this.batchProcessKRMSProfile = batchProcessKRMSProfile;
310 }
311
312 public OLEBatchProcessProfileBo getOleBatchProcessProfileBo() {
313 return oleBatchProcessProfileBo;
314 }
315
316 public void setOleBatchProcessProfileBo(OLEBatchProcessProfileBo oleBatchProcessProfileBo) {
317 this.oleBatchProcessProfileBo = oleBatchProcessProfileBo;
318 }
319
320 public List<OLEBatchProcessIngestFile> getOleBatchProcessIngestFiles() {
321 return oleBatchProcessIngestFiles;
322 }
323
324 public void setOleBatchProcessIngestFiles(List<OLEBatchProcessIngestFile> oleBatchProcessIngestFiles) {
325 this.oleBatchProcessIngestFiles = oleBatchProcessIngestFiles;
326 }
327
328 public String getOutputFormat() {
329 return outputFormat;
330 }
331
332 public void setOutputFormat(String outputFormat) {
333 this.outputFormat = outputFormat;
334 }
335
336 public String getOutputFile() {
337 return outputFile;
338 }
339
340 public void setOutputFile(String outputFile) {
341 this.outputFile = outputFile;
342 }
343
344 public boolean isScheduleCheck() {
345 return scheduleCheck;
346 }
347
348 public void setScheduleCheck(boolean scheduleCheck) {
349 this.scheduleCheck = scheduleCheck;
350 }
351
352 public boolean isOneTimeCheck() {
353 return oneTimeCheck;
354 }
355
356 public void setOneTimeCheck(boolean oneTimeCheck) {
357 this.oneTimeCheck = oneTimeCheck;
358 }
359
360 public boolean isRecurringCheck() {
361 return recurringCheck;
362 }
363
364 public void setRecurringCheck(boolean recurringCheck) {
365 this.recurringCheck = recurringCheck;
366 }
367
368 public boolean isScheduleTypeDailyCheck() {
369 return scheduleTypeDailyCheck;
370 }
371
372 public void setScheduleTypeDailyCheck(boolean scheduleTypeDailyCheck) {
373 this.scheduleTypeDailyCheck = scheduleTypeDailyCheck;
374 }
375
376 public boolean isScheduleTypeWeeklyCheck() {
377 return scheduleTypeWeeklyCheck;
378 }
379
380 public void setScheduleTypeWeeklyCheck(boolean scheduleTypeWeeklyCheck) {
381 this.scheduleTypeWeeklyCheck = scheduleTypeWeeklyCheck;
382 }
383
384 public boolean isScheduleTypeMonthlyCheck() {
385 return scheduleTypeMonthlyCheck;
386 }
387
388 public void setScheduleTypeMonthlyCheck(boolean scheduleTypeMonthlyCheck) {
389 this.scheduleTypeMonthlyCheck = scheduleTypeMonthlyCheck;
390 }
391
392 public boolean isScheduleFlag() {
393 return scheduleFlag;
394 }
395
396 public void setScheduleFlag(boolean scheduleFlag) {
397 this.scheduleFlag = scheduleFlag;
398 }
399
400 public String getMessage() {
401 return message;
402 }
403
404 public void setMessage(String message) {
405 this.message = message;
406 }
407
408 public MultipartFile getMarcFile() {
409 return marcFile;
410 }
411
412 public void setMarcFile(MultipartFile marcFile) {
413 this.marcFile = marcFile;
414 }
415
416 public MultipartFile getEdiFile() {
417 return ediFile;
418 }
419
420 public void setEdiFile(MultipartFile ediFile) {
421 this.ediFile = ediFile;
422 }
423
424 public OLEBatchProcessScheduleBo getOleBatchProcessScheduleBo() {
425 return oleBatchProcessScheduleBo;
426 }
427
428 public void setOleBatchProcessScheduleBo(OLEBatchProcessScheduleBo oleBatchProcessScheduleBo) {
429 this.oleBatchProcessScheduleBo = oleBatchProcessScheduleBo;
430 }
431
432 public List<OLEBatchProcessScheduleBo> getOleBatchProcessScheduleBoList() {
433 return oleBatchProcessScheduleBoList;
434 }
435
436 public void setOleBatchProcessScheduleBoList(List<OLEBatchProcessScheduleBo> oleBatchProcessScheduleBoList) {
437 this.oleBatchProcessScheduleBoList = oleBatchProcessScheduleBoList;
438 }
439
440 public OLEBatchProcessProfileBo getBatchProcessProfileBo() {
441 return batchProcessProfileBo;
442 }
443
444 public void setBatchProcessProfileBo(OLEBatchProcessProfileBo batchProcessProfileBo) {
445 this.batchProcessProfileBo = batchProcessProfileBo;
446 }
447
448 public String getScheduleType() {
449 return scheduleType;
450 }
451
452 public void setScheduleType(String scheduleType) {
453 this.scheduleType = scheduleType;
454 }
455
456 public String getOneTimeOrRecurring() {
457 return oneTimeOrRecurring;
458 }
459
460 public void setOneTimeOrRecurring(String oneTimeOrRecurring) {
461 this.oneTimeOrRecurring = oneTimeOrRecurring;
462 }
463
464 public List<OLEBatchProcessJobDetailsBo> getOleBatchProcessJobDetailsBoList() {
465 return oleBatchProcessJobDetailsBoList;
466 }
467
468 public void setOleBatchProcessJobDetailsBoList(List<OLEBatchProcessJobDetailsBo> oleBatchProcessJobDetailsBoList) {
469 this.oleBatchProcessJobDetailsBoList = oleBatchProcessJobDetailsBoList;
470 }
471
472 public boolean isLinkToJob() {
473 return linkToJob;
474 }
475
476 public void setLinkToJob(boolean linkToJob) {
477 this.linkToJob = linkToJob;
478 }
479
480 public String getEnteredCronExp() {
481 return enteredCronExp;
482 }
483
484 public void setEnteredCronExp(String enteredCronExp) {
485 this.enteredCronExp = enteredCronExp;
486 }
487
488 public String getUser() {
489 return user;
490 }
491
492 public void setUser(String user) {
493 this.user = user;
494 }
495
496 public String getEmailIds() {
497 return emailIds;
498 }
499
500 public void setEmailIds(String emailIds) {
501 this.emailIds = emailIds;
502 }
503
504 public MultipartFile getSerialRecordDocumentFile() {
505 return serialRecordDocumentFile;
506 }
507
508 public void setSerialRecordDocumentFile(MultipartFile serialRecordDocumentFile) {
509 this.serialRecordDocumentFile = serialRecordDocumentFile;
510 }
511
512 public MultipartFile getSerialRecordHistoryFile() {
513 return serialRecordHistoryFile;
514 }
515
516 public void setSerialRecordHistoryFile(MultipartFile serialRecordHistoryFile) {
517 this.serialRecordHistoryFile = serialRecordHistoryFile;
518 }
519
520 public MultipartFile getSerialRecordTypeFile() {
521 return serialRecordTypeFile;
522 }
523
524 public void setSerialRecordTypeFile(MultipartFile serialRecordTypeFile) {
525 this.serialRecordTypeFile = serialRecordTypeFile;
526 }
527
528 public String getInputFormat() {
529 return inputFormat;
530 }
531
532 public void setInputFormat(String inputFormat) {
533 this.inputFormat = inputFormat;
534 }
535
536 public String getSerialRecordDocumentFileName() {
537 return serialRecordDocumentFileName;
538 }
539
540 public void setSerialRecordDocumentFileName(String serialRecordDocumentFileName) {
541 this.serialRecordDocumentFileName = serialRecordDocumentFileName;
542 }
543
544 public String getSerialRecordHistoryFileName() {
545 return serialRecordHistoryFileName;
546 }
547
548 public void setSerialRecordHistoryFileName(String serialRecordHistoryFileName) {
549 this.serialRecordHistoryFileName = serialRecordHistoryFileName;
550 }
551
552 public String getSerialRecordTypeFileName() {
553 return serialRecordTypeFileName;
554 }
555
556 public void setSerialRecordTypeFileName(String serialRecordTypeFileName) {
557 this.serialRecordTypeFileName = serialRecordTypeFileName;
558 }
559
560 public boolean isAddUnmatchedPatron() {
561 return addUnmatchedPatron;
562 }
563
564 public void setAddUnmatchedPatron(boolean addUnmatchedPatron) {
565 this.addUnmatchedPatron = addUnmatchedPatron;
566 }
567
568 public boolean isRunNowFlag() {
569 return runNowFlag;
570 }
571
572 public void setRunNowFlag(boolean runNowFlag) {
573 this.runNowFlag = runNowFlag;
574 }
575
576 public String getLoadIdFromFile() {
577 if (batchProcessProfileId != null) {
578 Map ids = new HashMap();
579 ids.put("batchProcessProfileId", batchProcessProfileId);
580 OLEBatchProcessProfileFilterCriteriaBo oleBatchProcessProfileFilterCriteriaBo = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(OLEBatchProcessProfileFilterCriteriaBo.class, ids);
581 if (oleBatchProcessProfileFilterCriteriaBo != null) {
582 if (("LocalId_display").equalsIgnoreCase(oleBatchProcessProfileFilterCriteriaBo.getFilterFieldName())) {
583 loadIdFromFile = "true";
584 }
585 } else {
586 loadIdFromFile = "false";
587 }
588 }
589 return loadIdFromFile;
590 }
591
592 public void setLoadIdFromFile(String loadIdFromFile) {
593 this.loadIdFromFile = loadIdFromFile;
594 }
595 }