1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.kuali.student.enrollment.lpr.dto; |
12 | |
|
13 | |
import java.io.Serializable; |
14 | |
import java.util.ArrayList; |
15 | |
import java.util.List; |
16 | |
|
17 | |
import javax.xml.bind.annotation.XmlAccessType; |
18 | |
import javax.xml.bind.annotation.XmlAccessorType; |
19 | |
import javax.xml.bind.annotation.XmlAnyElement; |
20 | |
import javax.xml.bind.annotation.XmlElement; |
21 | |
import javax.xml.bind.annotation.XmlType; |
22 | |
|
23 | |
import org.kuali.student.enrollment.lpr.infc.LuiPersonRelation; |
24 | |
import org.kuali.student.r2.common.dto.RelationshipInfo; |
25 | |
import org.w3c.dom.Element; |
26 | |
|
27 | |
@XmlAccessorType(XmlAccessType.FIELD) |
28 | |
@XmlType(name = "LuiPersonRelationInfo", propOrder = {"id", "typeKey", "stateKey", "luiId", "personId", |
29 | |
"resultValuesGroupKeys", "commitmentPercent", "effectiveDate", "expirationDate", "meta", "attributes", |
30 | |
"_futureElements"}) |
31 | |
public class LuiPersonRelationInfo extends RelationshipInfo implements LuiPersonRelation, Serializable { |
32 | |
|
33 | |
private static final long serialVersionUID = 1L; |
34 | |
|
35 | |
@XmlElement |
36 | |
private String luiId; |
37 | |
|
38 | |
@XmlElement |
39 | |
private String personId; |
40 | |
|
41 | |
@XmlElement |
42 | |
private List<String> resultValuesGroupKeys; |
43 | |
|
44 | |
@XmlElement |
45 | |
private Float commitmentPercent; |
46 | |
|
47 | |
@XmlAnyElement |
48 | |
private List<Element> _futureElements; |
49 | |
|
50 | 0 | public LuiPersonRelationInfo() { |
51 | 0 | luiId = null; |
52 | 0 | personId = null; |
53 | 0 | _futureElements = null; |
54 | 0 | } |
55 | |
|
56 | |
public LuiPersonRelationInfo(LuiPersonRelation lpr) { |
57 | 0 | super(lpr); |
58 | 0 | if (lpr != null) { |
59 | 0 | this.luiId = lpr.getLuiId(); |
60 | 0 | this.personId = lpr.getPersonId(); |
61 | 0 | if (lpr.getResultValuesGroupKeys() != null) { |
62 | 0 | this.resultValuesGroupKeys = new ArrayList<String>(lpr.getResultValuesGroupKeys()); |
63 | |
} |
64 | 0 | _futureElements = null; |
65 | |
} |
66 | 0 | } |
67 | |
|
68 | |
@Override |
69 | |
public String getLuiId() { |
70 | 0 | return luiId; |
71 | |
} |
72 | |
|
73 | |
public void setLuiId(String luiId) { |
74 | 0 | this.luiId = luiId; |
75 | 0 | } |
76 | |
|
77 | |
@Override |
78 | |
public String getPersonId() { |
79 | 0 | return personId; |
80 | |
} |
81 | |
|
82 | |
public void setPersonId(String personId) { |
83 | 0 | this.personId = personId; |
84 | 0 | } |
85 | |
|
86 | |
@Override |
87 | |
public Float getCommitmentPercent() { |
88 | 0 | return commitmentPercent; |
89 | |
} |
90 | |
|
91 | |
public void setCommitmentPercent(Float commitmentPercent) { |
92 | 0 | this.commitmentPercent = commitmentPercent; |
93 | 0 | } |
94 | |
|
95 | |
@Override |
96 | |
public List<String> getResultValuesGroupKeys() { |
97 | 0 | return resultValuesGroupKeys; |
98 | |
} |
99 | |
|
100 | |
public void setResultValuesGroupKeys(List<String> resultValuesGroupKeys) { |
101 | 0 | this.resultValuesGroupKeys = resultValuesGroupKeys; |
102 | 0 | } |
103 | |
} |