1 package org.kuali.ole.deliver.batch;
2
3 import org.apache.log4j.Logger;
4 import org.kuali.ole.deliver.service.OleDeliverRequestDocumentHelperServiceImpl;
5
6
7
8
9
10
11
12
13 public class OleOverDueNotice {
14
15 private static final Logger LOG = Logger.getLogger(OleOverDueNotice.class);
16 private OleDeliverRequestDocumentHelperServiceImpl oleDeliverRequestDocumentHelperService;
17 private OleShelvingLagTime oleShelvingLagTime;
18
19 public OleShelvingLagTime getOleShelvingLagTime() {
20 if (oleShelvingLagTime == null) {
21 oleShelvingLagTime = new OleShelvingLagTime();
22 }
23 return oleShelvingLagTime;
24 }
25
26 public void setOleShelvingLagTime(OleShelvingLagTime oleShelvingLagTime) {
27 this.oleShelvingLagTime = oleShelvingLagTime;
28 }
29
30 public OleDeliverRequestDocumentHelperServiceImpl getOleDeliverRequestDocumentHelperService() {
31 if (oleDeliverRequestDocumentHelperService == null) {
32 oleDeliverRequestDocumentHelperService = new OleDeliverRequestDocumentHelperServiceImpl();
33 }
34 return oleDeliverRequestDocumentHelperService;
35 }
36
37 public void setOleDeliverRequestDocumentHelperService(OleDeliverRequestDocumentHelperServiceImpl oleDeliverRequestDocumentHelperService) {
38 this.oleDeliverRequestDocumentHelperService = oleDeliverRequestDocumentHelperService;
39 }
40
41 public void generateNotices() {
42 LOG.debug("Start of scheduled job to execute generateNotices.");
43 try {
44 oleDeliverRequestDocumentHelperService = getOleDeliverRequestDocumentHelperService();
45 oleDeliverRequestDocumentHelperService.generateNotices();
46 } catch (Exception ex) {
47 LOG.error("Exception occurred while performing generateNotices", ex);
48 }
49
50 }
51
52 public void generateHoldCourtesyNotice() {
53 LOG.debug("Start of scheduled job to execute generateHoldCourtesyNotice.");
54 try {
55 oleDeliverRequestDocumentHelperService = getOleDeliverRequestDocumentHelperService();
56 oleDeliverRequestDocumentHelperService.generateHoldCourtesyNotice();
57
58 } catch (Exception ex) {
59 LOG.error("Exception occurred while performing generateHoldCourtesyNotice", ex);
60 }
61
62 }
63
64 public void deleteTemporaryHistoryRecord() {
65 LOG.debug("Start of scheduled job to execute deleteTemporaryHistoryRecord.");
66 try {
67 oleDeliverRequestDocumentHelperService = getOleDeliverRequestDocumentHelperService();
68 oleDeliverRequestDocumentHelperService.deleteTemporaryHistoryRecord();
69
70 } catch (Exception ex) {
71 LOG.error("Exception occurred while performing deleteTemporaryHistoryRecord", ex);
72 }
73
74 }
75
76 public void generateRequestExpirationNotice() {
77 LOG.debug("Start of scheduled job to execute generateRequestExpirationNotice.");
78 try {
79 oleDeliverRequestDocumentHelperService = getOleDeliverRequestDocumentHelperService();
80 oleDeliverRequestDocumentHelperService.generateRequestExpirationNotice();
81
82 } catch (Exception ex) {
83 LOG.error("Exception occurred while performing generateRequestExpirationNotice", ex);
84 }
85
86 }
87
88 public void deletingExpiredRequests() {
89 LOG.debug("Start of scheduled job to execute deletingExpiredRequests.");
90 try {
91 oleDeliverRequestDocumentHelperService = getOleDeliverRequestDocumentHelperService();
92 oleDeliverRequestDocumentHelperService.deletingExpiredRequests();
93 } catch (Exception ex) {
94 LOG.error("Exception occurred while performing deletingExpiredRequests", ex);
95 }
96
97 }
98
99 public void generateOnHoldNotice() {
100 LOG.debug("Start of scheduled job to execute generateOnHoldNotice.");
101 try {
102 oleDeliverRequestDocumentHelperService = getOleDeliverRequestDocumentHelperService();
103 oleDeliverRequestDocumentHelperService.generateOnHoldNotice();
104
105 } catch (Exception ex) {
106 LOG.error("Exception occurred while performing generateOnHoldNotice", ex);
107 }
108
109 }
110
111 public void updateStatusIntoAvailableAfterReShelving() {
112 LOG.debug("Start of scheduled job to execute updateStatusIntoAvailableAfterReShelving.");
113 try {
114 oleShelvingLagTime = getOleShelvingLagTime();
115 oleShelvingLagTime.updateStatusIntoAvailableAfterReShelving();
116
117 } catch (Exception ex) {
118 LOG.error("Exception occurred while performing updateStatusIntoAvailableAfterReShelving", ex);
119 }
120
121 }
122
123 public void generateCourtesyNotices(){
124 LOG.debug("Start of scheduled job to execute generateCourtesyNotices.");
125 try {
126 oleDeliverRequestDocumentHelperService = getOleDeliverRequestDocumentHelperService();
127 oleDeliverRequestDocumentHelperService.generateCourtesyNotice();
128
129 } catch (Exception ex) {
130 LOG.error("Exception occurred while performing generateCourtesyNotices", ex);
131 }
132 }
133
134
135 public void generateOverdueNotices(){
136 LOG.debug("Start of scheduled job to execute generateOverdueNotices.");
137 try {
138 oleDeliverRequestDocumentHelperService = getOleDeliverRequestDocumentHelperService();
139 oleDeliverRequestDocumentHelperService.generateOverdueNotice();
140
141 } catch (Exception ex) {
142 LOG.error("Exception occurred while performing generateOverdueNotices", ex);
143 }
144 }
145
146 public void generateLostNotices(){
147 LOG.debug("Start of scheduled job to execute generateLostNotices.");
148 try {
149 oleDeliverRequestDocumentHelperService = getOleDeliverRequestDocumentHelperService();
150 oleDeliverRequestDocumentHelperService.generateLostNotice();
151
152 } catch (Exception ex) {
153 LOG.error("Exception occurred while performing generateLostNotices", ex);
154 }
155 }
156
157
158
159
160
161
162
163 }