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