forked from IntuitDeveloper/SampleApp-CRUD-Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJob.java
More file actions
29 lines (22 loc) · 672 Bytes
/
Copy pathJob.java
File metadata and controls
29 lines (22 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.intuit.developer.sampleapp.crud.helper;
import java.text.ParseException;
import com.intuit.ipp.data.JobInfo;
import com.intuit.ipp.data.JobStatusEnum;
import com.intuit.ipp.util.DateUtils;
/**
* @author dderose
*
*/
public final class Job {
private Job() {
}
public static JobInfo getJobInfo() throws ParseException {
JobInfo jobInfo = new JobInfo();
jobInfo.setDescription("In Progress");
jobInfo.setStatus(JobStatusEnum.IN_PROGRESS);
jobInfo.setStartDate(DateUtils.getDateWithPrevDays(2));
jobInfo.setEndDate(DateUtils.getDateWithNextDays(5));
jobInfo.setProjectedEndDate(DateUtils.getDateWithNextDays(5));
return jobInfo;
}
}