1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.core.scheduling.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.common.dto.IdNamelessEntityInfo; |
19 | |
import org.kuali.student.r2.common.dto.StatusInfo; |
20 | |
import org.kuali.student.r2.core.scheduling.infc.ScheduleBatchResp; |
21 | |
import org.w3c.dom.Element; |
22 | |
|
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAnyElement; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.XmlType; |
28 | |
import java.io.Serializable; |
29 | |
import java.util.Date; |
30 | |
import java.util.List; |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
37 | |
@XmlType(name = "ScheduleBatchRespInfo", propOrder = {"id", "typeKey", "stateKey", |
38 | |
"submittedDate", "statusMessage", "finalStatus", |
39 | |
"meta", "attributes", "_futureElements"}) |
40 | |
public class ScheduleBatchRespInfo extends IdNamelessEntityInfo implements ScheduleBatchResp, Serializable { |
41 | |
|
42 | |
@XmlElement |
43 | |
private Date submittedDate; |
44 | |
@XmlElement |
45 | |
private String statusMessage; |
46 | |
@XmlElement |
47 | |
private StatusInfo finalStatus; |
48 | |
@XmlAnyElement |
49 | |
private List<Element> _futureElements; |
50 | |
|
51 | 0 | public ScheduleBatchRespInfo() { |
52 | |
|
53 | 0 | } |
54 | |
|
55 | |
public ScheduleBatchRespInfo(ScheduleBatchResp scheduleBatchResp) { |
56 | 0 | super (scheduleBatchResp); |
57 | 0 | if (null != scheduleBatchResp) { |
58 | 0 | this.submittedDate = scheduleBatchResp.getSubmittedDate(); |
59 | 0 | this.statusMessage = scheduleBatchResp.getStatusMessage(); |
60 | 0 | this.finalStatus = new StatusInfo(scheduleBatchResp.getFinalStatus()); |
61 | |
} |
62 | 0 | } |
63 | |
|
64 | |
@Override |
65 | |
public Date getSubmittedDate() { |
66 | 0 | return this.submittedDate; |
67 | |
} |
68 | |
|
69 | |
public void setSubmittedDate(Date submittedDate) { |
70 | 0 | this.submittedDate = submittedDate; |
71 | 0 | } |
72 | |
|
73 | |
@Override |
74 | |
public String getStatusMessage() { |
75 | 0 | return this.statusMessage; |
76 | |
} |
77 | |
|
78 | |
public void setStatusMessage(String statusMessage) { |
79 | 0 | this.statusMessage = statusMessage; |
80 | 0 | } |
81 | |
|
82 | |
@Override |
83 | |
public StatusInfo getFinalStatus() { |
84 | 0 | return this.finalStatus; |
85 | |
} |
86 | |
|
87 | |
public void setFinalStatus(StatusInfo finalStatus) { |
88 | 0 | this.finalStatus = finalStatus; |
89 | 0 | } |
90 | |
|
91 | |
} |