1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.enrollment.batchjobresults.dto; |
17 | |
|
18 | |
import java.util.List; |
19 | |
|
20 | |
import javax.xml.bind.annotation.XmlAccessType; |
21 | |
import javax.xml.bind.annotation.XmlAccessorType; |
22 | |
import javax.xml.bind.annotation.XmlAnyElement; |
23 | |
import javax.xml.bind.annotation.XmlElement; |
24 | |
import javax.xml.bind.annotation.XmlType; |
25 | |
|
26 | |
import org.kuali.student.enrollment.batchjobresults.infc.BatchJobResultItem; |
27 | |
import org.kuali.student.r2.common.dto.IdNamelessEntityInfo; |
28 | |
import org.kuali.student.r2.common.dto.RichTextInfo; |
29 | |
import org.w3c.dom.Element; |
30 | |
|
31 | |
|
32 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
33 | |
@XmlType(name = "SocInfo", propOrder = {"id", |
34 | |
"typeKey", |
35 | |
"stateKey", |
36 | |
"batchJobResultId", |
37 | |
"sourceId", |
38 | |
"targetId", |
39 | |
"message", |
40 | |
"meta", |
41 | |
"attributes", |
42 | |
"_futureElements"}) |
43 | |
public class BatchJobResultItemInfo |
44 | |
extends IdNamelessEntityInfo |
45 | |
implements BatchJobResultItem { |
46 | |
|
47 | |
private static final long serialVersionUID = 1L; |
48 | |
@XmlElement |
49 | |
private String batchJobResultId; |
50 | |
@XmlElement |
51 | |
private String sourceId; |
52 | |
@XmlElement |
53 | |
private String targetId; |
54 | |
@XmlElement |
55 | |
private RichTextInfo message; |
56 | |
@XmlAnyElement |
57 | |
private List<Element> _futureElements; |
58 | |
|
59 | |
|
60 | 0 | public BatchJobResultItemInfo() { |
61 | 0 | } |
62 | |
|
63 | |
|
64 | |
public BatchJobResultItemInfo(BatchJobResultItem orig) { |
65 | |
|
66 | 0 | super(orig); |
67 | |
|
68 | 0 | if (orig == null) { |
69 | 0 | return; |
70 | |
} |
71 | |
|
72 | 0 | this.batchJobResultId = orig.getBatchJobResultId(); |
73 | 0 | this.targetId = orig.getTargetId(); |
74 | 0 | this.sourceId = orig.getSourceId(); |
75 | 0 | if (orig.getMessage() != null) { |
76 | 0 | this.message = new RichTextInfo (orig.getMessage()); |
77 | |
} |
78 | 0 | } |
79 | |
|
80 | |
@Override |
81 | |
public RichTextInfo getMessage() { |
82 | 0 | return message; |
83 | |
} |
84 | |
|
85 | |
public void setMessage(RichTextInfo message) { |
86 | 0 | this.message = message; |
87 | 0 | } |
88 | |
|
89 | |
@Override |
90 | |
public String getSourceId() { |
91 | 0 | return sourceId; |
92 | |
} |
93 | |
|
94 | |
public void setSourceId(String sourceId) { |
95 | 0 | this.sourceId = sourceId; |
96 | 0 | } |
97 | |
|
98 | |
@Override |
99 | |
public String getTargetId() { |
100 | 0 | return targetId; |
101 | |
} |
102 | |
|
103 | |
public void setTargetId(String targetId) { |
104 | 0 | this.targetId = targetId; |
105 | 0 | } |
106 | |
|
107 | |
@Override |
108 | |
public String getBatchJobResultId() { |
109 | 0 | return batchJobResultId; |
110 | |
} |
111 | |
|
112 | |
public void setBatchJobResultId(String batchJobResultId) { |
113 | 0 | this.batchJobResultId = batchJobResultId; |
114 | 0 | } |
115 | |
|
116 | |
|
117 | |
|
118 | |
} |