001package com.thed.model;
002
003import java.lang.Long;
004import java.util.Date;
005
006public class AutomationJobDetail {
007
008        private Long id;
009        private int projectId;
010        private int releaseId;
011        private String automationFramework;
012        private String zbotAgentMachine;
013        private String agentToken;
014        private String scriptPath;
015        private boolean invokeScript;
016        private String resultPath;
017        private boolean manualRun;
018        private Long scheduleId;
019        private Integer cycleDuration;
020        private Boolean createPackage = false;
021        private String cycleName;
022        private String phaseName;
023        private String cyclePhaseName;
024        private Long cycleId;
025        private Long cyclePhaseId;
026        // Fields for FileWatcher
027        private String status;
028        private String folderPath;
029        private Long delay;
030        private Boolean createPhase = true;
031        private Boolean fromFileWatcher = false;
032        private Boolean isTimeStamp = false;
033        private Long jobIntiatedBy;
034        private Long assignResultsTo;
035        private Date cycleStartDate;
036        private Date cycleEndDate;
037        // -- Added for schedule --
038        private String jobName;
039        private String jobType;
040        private String cronExperssion;
041        private Date startDate;
042        private Date endDate;
043        private Boolean daily;
044        private Long resultsAssignedTo;
045        private Long tcrCatalogTreeId;
046        private boolean isReuse=false;
047    private Long jobDetailTcrCatalogTreeId;
048        private String parserTemplate;
049
050
051        public boolean getIsReuse() {
052                return isReuse;
053        }
054
055        public void setIsReuse(boolean reuse) {
056                isReuse = reuse;
057        }
058
059        public Long getTcrCatalogTreeId() {
060                return tcrCatalogTreeId;
061        }
062
063        public void setTcrCatalogTreeId(Long tcrCatalogTreeId) {
064                this.tcrCatalogTreeId = tcrCatalogTreeId;
065        }
066
067        public String getCyclePhaseName() {
068                return cyclePhaseName;
069        }
070
071        public void setCyclePhaseName(String cyclePhaseName) {
072                this.cyclePhaseName = cyclePhaseName;
073        }
074
075        public Long getCycleId() {
076                return cycleId;
077        }
078
079        public void setCycleId(Long cycleId) {
080                this.cycleId = cycleId;
081        }
082
083        public Long getCyclePhaseId() {
084                return cyclePhaseId;
085        }
086
087        public void setCyclePhaseId(Long cyclePhaseId) {
088                this.cyclePhaseId = cyclePhaseId;
089        }
090
091        public Boolean getTimeStamp() {
092                return isTimeStamp;
093        }
094
095        public void setTimeStamp(Boolean timeStamp) {
096                isTimeStamp = timeStamp;
097        }
098
099        public Long getJobIntiatedBy() {
100                return jobIntiatedBy;
101        }
102
103        public void setJobIntiatedBy(Long jobIntiatedBy) {
104                this.jobIntiatedBy = jobIntiatedBy;
105        }
106
107        public Long getAssignResultsTo() {
108                return assignResultsTo;
109        }
110
111        public void setAssignResultsTo(Long assignResultsTo) {
112                this.assignResultsTo = assignResultsTo;
113        }
114
115        public AutomationJobDetail() {
116                super();
117        }
118
119        public AutomationJobDetail(int projectId, int releaseId, String automationFramework, String zbotAgentMachine,
120                        String agentToken, String scriptPath, boolean invokeScript, String resultPath, boolean manualRun) {
121                super();
122                this.projectId = projectId;
123                this.releaseId = releaseId;
124                this.automationFramework = automationFramework;
125                this.zbotAgentMachine = zbotAgentMachine;
126                this.agentToken = agentToken;
127                this.scriptPath = scriptPath;
128                this.invokeScript = invokeScript;
129                this.resultPath = resultPath;
130                this.manualRun = manualRun;
131        }
132
133        public Long getId() {
134                return id;
135        }
136
137        public void setId(Long id) {
138                this.id = id;
139        }
140
141        public int getProjectId() {
142                return projectId;
143        }
144
145        public void setProjectId(int projectId) {
146                this.projectId = projectId;
147        }
148
149        public int getReleaseId() {
150                return releaseId;
151        }
152
153        public void setReleaseId(int releaseId) {
154                this.releaseId = releaseId;
155        }
156
157        public String getAutomationFramework() {
158                return automationFramework;
159        }
160
161        public void setAutomationFramework(String automationFramework) {
162                this.automationFramework = automationFramework;
163        }
164
165        public String getZbotAgentMachine() {
166                return zbotAgentMachine;
167        }
168
169        public void setZbotAgentMachine(String zbotAgentMachine) {
170                this.zbotAgentMachine = zbotAgentMachine;
171        }
172
173        public String getAgentToken() {
174                return agentToken;
175        }
176
177        public void setAgentToken(String agentToken) {
178                this.agentToken = agentToken;
179        }
180
181        public String getScriptPath() {
182                return scriptPath;
183        }
184
185        public void setScriptPath(String scriptPath) {
186                this.scriptPath = scriptPath;
187        }
188
189        public boolean isInvokeScript() {
190                return invokeScript;
191        }
192
193        public void setInvokeScript(boolean invokeScript) {
194                this.invokeScript = invokeScript;
195        }
196
197        public String getResultPath() {
198                return resultPath;
199        }
200
201        public void setResultPath(String resultPath) {
202                this.resultPath = resultPath;
203        }
204
205        public boolean isManualRun() {
206                return manualRun;
207        }
208
209        public void setManualRun(boolean manualRun) {
210                this.manualRun = manualRun;
211        }
212
213        public Long getScheduleId() {
214                return scheduleId;
215        }
216
217        public void setScheduleId(Long scheduleId) {
218                this.scheduleId = scheduleId;
219        }
220
221        public Integer getCycleDuration() {
222                return cycleDuration;
223        }
224
225        public void setCycleDuration(Integer cycleDuration) {
226                this.cycleDuration = cycleDuration;
227        }
228
229        public Boolean getCreatePackage() {
230                return createPackage;
231        }
232
233        public void setCreatePackage(Boolean createPackage) {
234                this.createPackage = createPackage;
235        }
236
237        public String getStatus() {
238                return status;
239        }
240
241        public void setStatus(String status) {
242                this.status = status;
243        }
244
245        public String getFolderPath() {
246                return folderPath;
247        }
248
249        public void setFolderPath(String folderPath) {
250                this.folderPath = folderPath;
251        }
252
253        public Long getDelay() {
254                return delay;
255        }
256
257        public void setDelay(Long delay) {
258                this.delay = delay;
259        }
260
261        public String getPhaseName() {
262                return phaseName;
263        }
264
265        public void setPhaseName(String phaseName) {
266                this.phaseName = phaseName;
267        }
268
269        public Boolean getCreatePhase() {
270                return createPhase;
271        }
272
273        public void setCreatePhase(Boolean createPhase) {
274                this.createPhase = createPhase;
275        }
276
277        public Boolean getFromFileWatcher() {
278                return fromFileWatcher;
279        }
280
281        public void setFromFileWatcher(Boolean fromFileWatcher) {
282                this.fromFileWatcher = fromFileWatcher;
283        }
284
285        public String getCycleName() {
286                return cycleName;
287        }
288
289        public void setCycleName(String cycleName) {
290                this.cycleName = cycleName;
291        }
292
293        public Boolean getIsTimeStamp() {
294                return isTimeStamp;
295        }
296
297        public void setIsTimeStamp(Boolean isTimeStamp) {
298                this.isTimeStamp = isTimeStamp;
299        }
300
301        public Date getCycleStartDate() {
302                return cycleStartDate;
303        }
304
305        public void setCycleStartDate(Date cycleStartDate) {
306                this.cycleStartDate = cycleStartDate;
307        }
308
309        public Date getCycleEndDate() {
310                return cycleEndDate;
311        }
312
313        public void setCycleEndDate(Date cycleEndDate) {
314                this.cycleEndDate = cycleEndDate;
315        }
316
317        public String getJobName() {
318                return jobName;
319        }
320
321        public void setJobName(String jobName) {
322                this.jobName = jobName;
323        }
324
325        public String getJobType() {
326                return jobType;
327        }
328
329        public void setJobType(String jobType) {
330                this.jobType = jobType;
331        }
332
333        public String getCronExperssion() {
334                return cronExperssion;
335        }
336
337        public void setCronExperssion(String cronExperssion) {
338                this.cronExperssion = cronExperssion;
339        }
340
341        public Date getStartDate() {
342                return startDate;
343        }
344
345        public void setStartDate(Date startDate) {
346                this.startDate = startDate;
347        }
348
349        public Date getEndDate() {
350                return endDate;
351        }
352
353        public void setEndDate(Date endDate) {
354                this.endDate = endDate;
355        }
356
357        public Boolean getDaily() {
358                return daily;
359        }
360
361        public void setDaily(Boolean daily) {
362                this.daily = daily;
363        }
364
365        public Long getResultsAssignedTo() {
366                return resultsAssignedTo;
367        }
368
369        public void setResultsAssignedTo(Long resultsAssignedTo) {
370                this.resultsAssignedTo = resultsAssignedTo;
371        }
372
373    public Long getJobDetailTcrCatalogTreeId() {
374        return jobDetailTcrCatalogTreeId;
375    }
376
377    public void setJobDetailTcrCatalogTreeId(Long jobDetailTcrCatalogTreeId) {
378        this.jobDetailTcrCatalogTreeId = jobDetailTcrCatalogTreeId;
379    }
380
381        public String getParserTemplate() {
382                return parserTemplate;
383        }
384
385        public void setParserTemplate(String parserTemplate) {
386                this.parserTemplate = parserTemplate;
387        }
388
389        @Override
390        public String toString() {
391                return """
392                                AutomationJobDetail [id=%s, projectId=%s, releaseId=%s, automationFramework=%s, zbotAgentMachine=%s, agentToken=%s, scriptPath=%s, invokeScript=%s, resultPath=%s, manualRun=%s, scheduleId=%s, cycleName=%s, cycleDuration=%s, createPackage=%s, status=%s, folderPath=%s, delay=%s, phaseName=%s, createPhase=%s, fromFileWatcher=%s, isTimeStamp=%s, jobIntiatedBy=%s, assignResultsTo=%s, cycleStartDate=%s, cycleEndDate=%s, jobName=%s, jobType=%s, cronExperssion=%s, startDate=%s, endDate=%s, daily=%s, resultsAssignedTo=%s]
393                                """.formatted(id, projectId, releaseId, automationFramework, zbotAgentMachine, agentToken, scriptPath, invokeScript, resultPath, manualRun, scheduleId, cycleName, cycleDuration, createPackage, status, folderPath, delay, phaseName, createPhase, fromFileWatcher, isTimeStamp, jobIntiatedBy, assignResultsTo, cycleStartDate, cycleEndDate, jobName, jobType, cronExperssion, startDate, endDate, daily, resultsAssignedTo);
394        }
395
396}