1 | |
package org.kuali.student.enrollment.lpr.dto; |
2 | |
|
3 | |
import java.io.Serializable; |
4 | |
import java.util.ArrayList; |
5 | |
import java.util.List; |
6 | |
|
7 | |
import javax.xml.bind.annotation.XmlAccessType; |
8 | |
import javax.xml.bind.annotation.XmlAccessorType; |
9 | |
import javax.xml.bind.annotation.XmlAnyElement; |
10 | |
import javax.xml.bind.annotation.XmlElement; |
11 | |
import javax.xml.bind.annotation.XmlType; |
12 | |
|
13 | |
import org.kuali.student.enrollment.lpr.infc.LPRTransactionItem; |
14 | |
import org.kuali.student.enrollment.lpr.infc.RequestOption; |
15 | |
import org.kuali.student.lum.lu.dto.ResultOptionInfo; |
16 | |
import org.kuali.student.r2.common.dto.EntityInfo; |
17 | |
import org.w3c.dom.Element; |
18 | |
|
19 | 0 | @XmlAccessorType(XmlAccessType.FIELD) |
20 | |
@XmlType(name = "LPRTransactionItemInfo", propOrder = {"personId", "newLuiId", "existingLuiId", "resultOptions", |
21 | |
"requestOptions", "lprTransactionItemResult", "name", "descr", "typeKey", "stateKey", "meta", "attributes", |
22 | |
"_futureElements"}) |
23 | |
public class LPRTransactionItemInfo extends EntityInfo implements LPRTransactionItem, Serializable { |
24 | |
|
25 | |
private static final long serialVersionUID = 1L; |
26 | |
|
27 | |
@XmlElement |
28 | |
private String personId; |
29 | |
|
30 | |
@XmlElement |
31 | |
private String newLuiId; |
32 | |
|
33 | |
@XmlElement |
34 | |
private String existingLuiId; |
35 | |
|
36 | |
@XmlElement |
37 | |
private List<ResultOptionInfo> resultOptions; |
38 | |
|
39 | |
@XmlElement |
40 | |
private List<RequestOptionInfo> requestOptions; |
41 | |
|
42 | |
@XmlElement |
43 | |
private LprTransactionItemResultInfo lprTransactionItemResult; |
44 | |
|
45 | |
@XmlAnyElement |
46 | |
private List<Element> _futureElements; |
47 | |
|
48 | |
public LPRTransactionItemInfo() { |
49 | 0 | super(); |
50 | 0 | this.personId = null; |
51 | 0 | this.newLuiId = null; |
52 | 0 | this.existingLuiId = null; |
53 | 0 | this.requestOptions = null; |
54 | 0 | this._futureElements = null; |
55 | 0 | } |
56 | |
|
57 | |
public LPRTransactionItemInfo(LPRTransactionItem lprTransactionItem) { |
58 | |
|
59 | 0 | super(lprTransactionItem); |
60 | 0 | if (null != lprTransactionItem) { |
61 | 0 | this.personId = lprTransactionItem.getPersonId(); |
62 | 0 | this.newLuiId = lprTransactionItem.getNewLuiId(); |
63 | 0 | this.existingLuiId = lprTransactionItem.getExistingLuiId(); |
64 | |
|
65 | 0 | this.requestOptions = new ArrayList<RequestOptionInfo>(); |
66 | 0 | if (null != lprTransactionItem.getRequestOptions()) { |
67 | 0 | for (RequestOption reqOp : lprTransactionItem.getRequestOptions()) { |
68 | 0 | this.requestOptions.add(new RequestOptionInfo(reqOp)); |
69 | |
} |
70 | |
} |
71 | |
|
72 | 0 | this.resultOptions = new ArrayList<ResultOptionInfo>(); |
73 | 0 | if (null != lprTransactionItem.getResultOptions()) { |
74 | 0 | resultOptions.addAll(lprTransactionItem.getResultOptions()); |
75 | |
} |
76 | |
|
77 | |
|
78 | 0 | this.lprTransactionItemResult = new LprTransactionItemResultInfo( |
79 | |
lprTransactionItem.getLprTransactionItemResult()); |
80 | |
|
81 | 0 | this._futureElements = null; |
82 | |
} |
83 | 0 | } |
84 | |
|
85 | |
@Override |
86 | |
public LprTransactionItemResultInfo getLprTransactionItemResult() { |
87 | 0 | return lprTransactionItemResult; |
88 | |
} |
89 | |
|
90 | |
public void setLprTransactionResult(LprTransactionItemResultInfo lprTransactionResult) { |
91 | 0 | this.lprTransactionItemResult = lprTransactionResult; |
92 | 0 | } |
93 | |
|
94 | |
@Override |
95 | |
public List<RequestOptionInfo> getRequestOptions() { |
96 | 0 | return requestOptions; |
97 | |
} |
98 | |
|
99 | |
public void setRequestOptions(List<RequestOptionInfo> requestOptions) { |
100 | 0 | this.requestOptions = requestOptions; |
101 | 0 | } |
102 | |
|
103 | |
public void setNewLuiId(String newLuiId) { |
104 | 0 | this.newLuiId = newLuiId; |
105 | 0 | } |
106 | |
|
107 | |
public void setExistingLuiId(String existingLuiId) { |
108 | 0 | this.existingLuiId = existingLuiId; |
109 | 0 | } |
110 | |
|
111 | |
@Override |
112 | |
public String getNewLuiId() { |
113 | 0 | return newLuiId; |
114 | |
} |
115 | |
|
116 | |
@Override |
117 | |
public String getExistingLuiId() { |
118 | 0 | return existingLuiId; |
119 | |
} |
120 | |
|
121 | |
@Override |
122 | |
public String getPersonId() { |
123 | 0 | return personId; |
124 | |
} |
125 | |
|
126 | |
public void setPersonId(String personId) { |
127 | 0 | this.personId = personId; |
128 | 0 | } |
129 | |
|
130 | |
@Override |
131 | |
public List<ResultOptionInfo> getResultOptions() { |
132 | 0 | return resultOptions; |
133 | |
} |
134 | |
|
135 | |
public void setResultOptions(List<ResultOptionInfo> resultOptions) { |
136 | 0 | this.resultOptions = resultOptions; |
137 | 0 | } |
138 | |
|
139 | |
public void setLprTransactionItemResult(LprTransactionItemResultInfo lprTransactionItemResult) { |
140 | 0 | this.lprTransactionItemResult = lprTransactionItemResult; |
141 | 0 | } |
142 | |
} |