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.common.infc.Status; |
21 | |
import org.kuali.student.r2.core.scheduling.infc.ScheduleResponse; |
22 | |
import org.w3c.dom.Element; |
23 | |
|
24 | |
import javax.xml.bind.annotation.XmlAccessType; |
25 | |
import javax.xml.bind.annotation.XmlAccessorType; |
26 | |
import javax.xml.bind.annotation.XmlAnyElement; |
27 | |
import javax.xml.bind.annotation.XmlElement; |
28 | |
import javax.xml.bind.annotation.XmlType; |
29 | |
import java.io.Serializable; |
30 | |
import java.util.List; |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
@XmlAccessorType(XmlAccessType.FIELD) |
37 | |
@XmlType(name = "ScheduleResponseInfo", propOrder = {"id", "typeKey", "stateKey", |
38 | |
"batchResponseId", "scheduleRequestId", "scheduleId", "statusMessage", |
39 | |
"meta", "attributes", "_futureElements"}) |
40 | |
public class ScheduleResponseInfo extends IdNamelessEntityInfo implements ScheduleResponse, Serializable { |
41 | |
|
42 | |
@XmlElement |
43 | |
private String batchResponseId; |
44 | |
@XmlElement |
45 | |
private String scheduleRequestId; |
46 | |
@XmlElement |
47 | |
private String scheduleId; |
48 | |
@XmlElement |
49 | |
private String statusMessage; |
50 | |
@XmlAnyElement |
51 | |
private List<Element> _futureElements; |
52 | |
|
53 | 0 | public ScheduleResponseInfo() { |
54 | 0 | } |
55 | |
|
56 | 0 | public ScheduleResponseInfo(ScheduleResponse scheduleResponse) { |
57 | 0 | if (null != scheduleResponse) { |
58 | 0 | this.batchResponseId = scheduleResponse.getBatchResponseId(); |
59 | 0 | this.scheduleRequestId = scheduleResponse.getScheduleRequestId(); |
60 | 0 | this.scheduleId = scheduleResponse.getScheduleId(); |
61 | 0 | this.statusMessage = scheduleResponse.getStatusMessage(); |
62 | |
} |
63 | 0 | } |
64 | |
|
65 | |
@Override |
66 | |
public String getBatchResponseId() { |
67 | 0 | return this.batchResponseId; |
68 | |
} |
69 | |
|
70 | |
public void setBatchResponseId(String batchResponseId) { |
71 | 0 | this.batchResponseId = batchResponseId; |
72 | 0 | } |
73 | |
|
74 | |
@Override |
75 | |
public String getScheduleRequestId() { |
76 | 0 | return scheduleRequestId; |
77 | |
} |
78 | |
|
79 | |
public void setScheduleRequestId(String scheduleRequestId) { |
80 | 0 | this.scheduleRequestId = scheduleRequestId; |
81 | 0 | } |
82 | |
|
83 | |
@Override |
84 | |
public String getScheduleId() { |
85 | 0 | return this.scheduleId; |
86 | |
} |
87 | |
|
88 | |
public void setScheduleId(String scheduleId) { |
89 | 0 | this.scheduleId = scheduleId; |
90 | 0 | } |
91 | |
|
92 | |
@Override |
93 | |
public String getStatusMessage() { |
94 | 0 | return this.statusMessage; |
95 | |
} |
96 | |
|
97 | |
public void setStatusMessage(String statusMessage) { |
98 | 0 | this.statusMessage = statusMessage; |
99 | 0 | } |
100 | |
} |