1 package org.kuali.ole.batch.bo;
2
3 import org.apache.commons.collections.CollectionUtils;
4 import org.kuali.ole.batch.document.OLEBatchProcessDefinitionDocument;
5 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
6
7 import java.sql.Timestamp;
8 import java.util.Date;
9 import java.util.List;
10
11
12
13
14
15
16
17
18 public class OLEBatchProcessScheduleBo extends PersistableBusinessObjectBase {
19 private String scheduleId;
20 private String batchProcessId;
21 private String batchProcessType;
22 private String userName;
23 private String uploadFileName;
24 private Timestamp createTime = new Timestamp(new Date().getTime());
25 private Date oneTimeDate;
26 private String oneTimeStartDate;
27 private String oneTimeStartTime;
28 private String scheduleType;
29 private String startTime;
30 private List<String> weekDaysList;
31 private String weekDays;
32 private String dayNumber;
33 private String monthNumber;
34 private String oneTimeOrRecurring;
35 private String cronExpression;
36 private String documentNumber;
37 private Timestamp nextRunTime;
38 private String uploadOPFileName;
39 private String batchProfileName;
40
41 private OLEBatchProcessJobDetailsBo oleBatchProcessJobDetailsBo;
42 private OLEBatchProcessDefinitionDocument oleBatchProcessDefinitionDocument;
43 private List<OLEBatchProcessJobDetailsBo> oleBatchProcessJobDetailsBoList;
44
45
46 public Timestamp getNextRunTime() {
47 return nextRunTime;
48 }
49
50 public void setNextRunTime(Timestamp nextRunTime) {
51 this.nextRunTime = nextRunTime;
52 }
53
54 public String getUploadOPFileName() {
55 return uploadOPFileName;
56 }
57
58 public void setUploadOPFileName(String uploadOPFileName) {
59 this.uploadOPFileName = uploadOPFileName;
60 }
61
62 public String getUserName() {
63 return userName;
64 }
65
66 public void setUserName(String userName) {
67 this.userName = userName;
68 }
69
70 public String getUploadFileName() {
71 return uploadFileName;
72 }
73
74 public void setUploadFileName(String uploadFileName) {
75 this.uploadFileName = uploadFileName;
76 }
77
78 public Timestamp getCreateTime() {
79 return createTime;
80 }
81
82 public void setCreateTime(Timestamp createTime) {
83 this.createTime = createTime;
84 }
85
86 public String getScheduleId() {
87 return scheduleId;
88 }
89
90 public void setScheduleId(String scheduleId) {
91 this.scheduleId = scheduleId;
92 }
93
94 public Date getOneTimeDate() {
95 return oneTimeDate;
96 }
97
98 public void setOneTimeDate(Date oneTimeDate) {
99 this.oneTimeDate = oneTimeDate;
100 }
101
102 public String getOneTimeStartTime() {
103 return oneTimeStartTime;
104 }
105
106 public void setOneTimeStartTime(String oneTimeStartTime) {
107 this.oneTimeStartTime = oneTimeStartTime;
108 }
109
110 public String getScheduleType() {
111 return scheduleType;
112 }
113
114 public void setScheduleType(String scheduleType) {
115 this.scheduleType = scheduleType;
116 }
117
118 public String getStartTime() {
119 return startTime;
120 }
121
122 public void setStartTime(String startTime) {
123 this.startTime = startTime;
124 }
125
126 public List<String> getWeekDaysList() {
127 return weekDaysList;
128 }
129
130 public void setWeekDaysList(List<String> weekDaysList) {
131 this.weekDaysList = weekDaysList;
132 }
133
134 public String getWeekDays() {
135 if(!CollectionUtils.isEmpty(weekDaysList)){
136 StringBuilder weekdaysBuffer = new StringBuilder(500);
137 for(int i=0;i<weekDaysList.size();i++){
138 weekdaysBuffer.append(weekDaysList.get(i));
139 if(i!=weekDaysList.size()-1){
140 weekdaysBuffer.append(",");
141 }
142 }
143 return weekdaysBuffer.toString();
144 }
145 else{
146 return null;
147 }
148 }
149
150 public void setWeekDays(String weekDays) {
151 this.weekDays = weekDays;
152 }
153
154 public String getMonthNumber() {
155 return monthNumber;
156 }
157
158 public void setMonthNumber(String monthNumber) {
159 this.monthNumber = monthNumber;
160 }
161
162 public String getOneTimeOrRecurring() {
163 return oneTimeOrRecurring;
164 }
165
166 public void setOneTimeOrRecurring(String oneTimeOrRecurring) {
167 this.oneTimeOrRecurring = oneTimeOrRecurring;
168 }
169
170 public String getBatchProcessType() {
171 return batchProcessType;
172 }
173
174 public void setBatchProcessType(String batchProcessType) {
175 this.batchProcessType = batchProcessType;
176 }
177
178 public String getCronExpression() {
179 return cronExpression;
180 }
181
182 public void setCronExpression(String cronExpression) {
183 this.cronExpression = cronExpression;
184 }
185
186 public String getBatchProcessId() {
187 return batchProcessId;
188 }
189
190 public void setBatchProcessId(String batchProcessId) {
191 this.batchProcessId = batchProcessId;
192 }
193
194 public OLEBatchProcessDefinitionDocument getOleBatchProcessDefinitionDocument() {
195 return oleBatchProcessDefinitionDocument;
196 }
197
198 public void setOleBatchProcessDefinitionDocument(OLEBatchProcessDefinitionDocument oleBatchProcessDefinitionDocument) {
199 this.oleBatchProcessDefinitionDocument = oleBatchProcessDefinitionDocument;
200 }
201
202 public String getDocumentNumber() {
203 return documentNumber;
204 }
205
206 public void setDocumentNumber(String documentNumber) {
207 this.documentNumber = documentNumber;
208 }
209
210 public List<OLEBatchProcessJobDetailsBo> getOleBatchProcessJobDetailsBoList() {
211 return oleBatchProcessJobDetailsBoList;
212 }
213
214 public void setOleBatchProcessJobDetailsBoList(List<OLEBatchProcessJobDetailsBo> oleBatchProcessJobDetailsBoList) {
215 this.oleBatchProcessJobDetailsBoList = oleBatchProcessJobDetailsBoList;
216 }
217
218 public OLEBatchProcessJobDetailsBo getOleBatchProcessJobDetailsBo() {
219 return oleBatchProcessJobDetailsBo;
220 }
221
222 public void setOleBatchProcessJobDetailsBo(OLEBatchProcessJobDetailsBo oleBatchProcessJobDetailsBo) {
223 this.oleBatchProcessJobDetailsBo = oleBatchProcessJobDetailsBo;
224 }
225
226 public String getDayNumber() {
227 return dayNumber;
228 }
229
230 public void setDayNumber(String dayNumber) {
231 this.dayNumber = dayNumber;
232 }
233
234 public String getBatchProfileName() {
235 return batchProfileName;
236 }
237
238 public void setBatchProfileName(String batchProfileName) {
239 this.batchProfileName = batchProfileName;
240 }
241
242 public String getOneTimeStartDate() {
243 return oneTimeStartDate;
244 }
245
246 public void setOneTimeStartDate(String oneTimeStartDate) {
247 this.oneTimeStartDate = oneTimeStartDate;
248 }
249 }