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.Lpr;
24 import org.kuali.student.r2.common.dto.RelationshipInfo;
25 import org.w3c.dom.Element;
26
27 @XmlAccessorType(XmlAccessType.FIELD)
28 @XmlType(name = "LprInfo", propOrder = {"id", "typeKey", "stateKey", "luiId", "personId",
29 "resultValuesGroupKeys", "commitmentPercent", "effectiveDate", "expirationDate", "meta", "attributes",
30 "_futureElements"})
31 public class LprInfo extends RelationshipInfo implements Lpr, 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 String commitmentPercent;
46
47 @XmlAnyElement
48 private List<Element> _futureElements;
49
50 public LprInfo() {
51 }
52
53 public LprInfo(Lpr lpr) {
54 super(lpr);
55 if (lpr != null) {
56 this.luiId = lpr.getLuiId();
57 this.personId = lpr.getPersonId();
58 this.commitmentPercent = lpr.getCommitmentPercent();
59 if (lpr.getResultValuesGroupKeys() != null) {
60 this.resultValuesGroupKeys = new ArrayList<String>(lpr.getResultValuesGroupKeys());
61 }
62 }
63 }
64
65 @Override
66 public String getLuiId() {
67 return luiId;
68 }
69
70 public void setLuiId(String luiId) {
71 this.luiId = luiId;
72 }
73
74 @Override
75 public String getPersonId() {
76 return personId;
77 }
78
79 public void setPersonId(String personId) {
80 this.personId = personId;
81 }
82
83 @Override
84 public String getCommitmentPercent() {
85 return commitmentPercent;
86 }
87
88 public void setCommitmentPercent(String commitmentPercent) {
89 this.commitmentPercent = commitmentPercent;
90 }
91
92 @Override
93 public List<String> getResultValuesGroupKeys() {
94 if (this.resultValuesGroupKeys == null) {
95 this.resultValuesGroupKeys = new ArrayList<String>();
96 }
97 return resultValuesGroupKeys;
98 }
99
100 public void setResultValuesGroupKeys(List<String> resultValuesGroupKeys) {
101 this.resultValuesGroupKeys = resultValuesGroupKeys;
102 }
103
104 @Override
105 public String toString() {
106 StringBuilder builder = new StringBuilder();
107 builder.append("LprInfo [id=");
108 builder.append(getId());
109 builder.append(", type=");
110 builder.append(getTypeKey());
111 builder.append(", state=");
112 builder.append(getStateKey());
113 builder.append(", luiId=");
114 builder.append(luiId);
115 builder.append(", personId=");
116 builder.append(personId);
117 builder.append(", commitmentPercent=");
118 builder.append(commitmentPercent);
119 builder.append("]");
120 return builder.toString();
121 }
122
123
124 }