1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.enrollment.lpr.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.ArrayList; |
20 | |
import java.util.List; |
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 | |
|
28 | |
import org.kuali.student.enrollment.lpr.infc.LprTransactionItemResult; |
29 | |
import org.w3c.dom.Element; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
@XmlAccessorType(XmlAccessType.FIELD) |
39 | |
@XmlType(name = "LuiPersonRelationTransactionItemResultInfo", propOrder = {"resultingLprId", "messages", "status", "_futureElements"}) |
40 | |
public class LprTransactionItemResultInfo implements LprTransactionItemResult, Serializable { |
41 | |
|
42 | |
private static final long serialVersionUID = 1L; |
43 | |
|
44 | |
@XmlElement |
45 | |
private String resultingLprId; |
46 | |
|
47 | |
@XmlElement |
48 | |
private List<String> messages; |
49 | |
|
50 | |
@XmlElement |
51 | |
private String status; |
52 | |
|
53 | |
@XmlAnyElement |
54 | |
private List<Element> _futureElements; |
55 | |
|
56 | |
|
57 | 0 | public LprTransactionItemResultInfo() { |
58 | 0 | this.resultingLprId = null; |
59 | 0 | this.messages = new ArrayList<String>(); |
60 | 0 | this.status = null; |
61 | 0 | this._futureElements = null; |
62 | 0 | } |
63 | |
|
64 | |
|
65 | 0 | public LprTransactionItemResultInfo(LprTransactionItemResult result) { |
66 | |
|
67 | 0 | if(null == result) return; |
68 | |
|
69 | 0 | this.resultingLprId = result.getResultingLprId(); |
70 | 0 | this.status = result.getStatus(); |
71 | 0 | this.messages = (null != result.getMessages()) ? new ArrayList<String>(result.getMessages()) : new ArrayList<String>(); |
72 | 0 | this._futureElements = null; |
73 | 0 | } |
74 | |
|
75 | |
public void setResultingLprId(String resultingLprId) { |
76 | 0 | this.resultingLprId = resultingLprId; |
77 | 0 | } |
78 | |
|
79 | |
public void setMessages(List<String> messages) { |
80 | 0 | this.messages = messages; |
81 | 0 | } |
82 | |
|
83 | |
public void setStatus(String status) { |
84 | 0 | this.status = status; |
85 | 0 | } |
86 | |
|
87 | |
@Override |
88 | |
public String getResultingLprId() { |
89 | 0 | return resultingLprId; |
90 | |
} |
91 | |
|
92 | |
@Override |
93 | |
public List<String> getMessages() { |
94 | 0 | return messages; |
95 | |
} |
96 | |
|
97 | |
@Override |
98 | |
public String getStatus() { |
99 | 0 | return status; |
100 | |
} |
101 | |
|
102 | |
} |