1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.enrollment.lui.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.List; |
20 | |
|
21 | |
import javax.xml.bind.annotation.XmlAccessType; |
22 | |
import javax.xml.bind.annotation.XmlAccessorType; |
23 | |
import javax.xml.bind.annotation.XmlAnyElement; |
24 | |
import javax.xml.bind.annotation.XmlAttribute; |
25 | |
import javax.xml.bind.annotation.XmlElement; |
26 | |
import javax.xml.bind.annotation.XmlType; |
27 | |
|
28 | |
import org.kuali.student.enrollment.lui.infc.LuiInstructor; |
29 | |
import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo; |
30 | |
import org.w3c.dom.Element; |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
@XmlAccessorType(XmlAccessType.FIELD) |
36 | |
@XmlType(name = "CourseOfferingInfo", propOrder = {"id", "orgId", "personId", "personInfoOverride", |
37 | |
"percentageEffort", "meta", "attributes", "_futureElements"}) |
38 | |
public class LuiInstructorInfo extends HasAttributesAndMetaInfo implements LuiInstructor, Serializable { |
39 | |
|
40 | |
private static final long serialVersionUID = 1L; |
41 | |
|
42 | |
@XmlAttribute |
43 | |
private String id; |
44 | |
|
45 | |
@XmlElement |
46 | |
private String orgId; |
47 | |
|
48 | |
@XmlElement |
49 | |
private String personId; |
50 | |
|
51 | |
@XmlElement |
52 | |
private String personInfoOverride; |
53 | |
|
54 | |
@XmlElement |
55 | |
private Float percentageEffort; |
56 | |
|
57 | |
@XmlAnyElement |
58 | |
private List<Element> _futureElements; |
59 | |
|
60 | 0 | public LuiInstructorInfo() { |
61 | 0 | this.id = null; |
62 | 0 | this.orgId = null; |
63 | 0 | this.personId = null; |
64 | 0 | this.personInfoOverride = null; |
65 | 0 | this.percentageEffort = null; |
66 | 0 | this._futureElements = null; |
67 | 0 | } |
68 | |
|
69 | |
public LuiInstructorInfo(LuiInstructor instructor) { |
70 | |
|
71 | 0 | super(instructor); |
72 | |
|
73 | 0 | if(null == instructor) return; |
74 | 0 | this.id = instructor.getId(); |
75 | 0 | this.orgId = instructor.getOrgId(); |
76 | 0 | this.personId = instructor.getPersonId(); |
77 | 0 | this.personInfoOverride = instructor.getPersonInfoOverride(); |
78 | 0 | this.percentageEffort = instructor.getPercentageEffort(); |
79 | 0 | this._futureElements = null; |
80 | 0 | } |
81 | |
|
82 | |
@Override |
83 | |
public String getId() { |
84 | 0 | return id; |
85 | |
} |
86 | |
|
87 | |
public void setId(String id) { |
88 | 0 | this.id = id; |
89 | 0 | } |
90 | |
|
91 | |
|
92 | |
@Override |
93 | |
public String getOrgId() { |
94 | 0 | return orgId; |
95 | |
} |
96 | |
|
97 | |
public void setOrgId(String orgId) { |
98 | 0 | this.orgId = orgId; |
99 | 0 | } |
100 | |
|
101 | |
@Override |
102 | |
public String getPersonId() { |
103 | 0 | return personId; |
104 | |
} |
105 | |
|
106 | |
public void setPersonId(String personId) { |
107 | 0 | this.personId = personId; |
108 | 0 | } |
109 | |
|
110 | |
@Override |
111 | |
public String getPersonInfoOverride() { |
112 | 0 | return personInfoOverride; |
113 | |
} |
114 | |
|
115 | |
public void setPersonInfoOverride(String personInfoOverride) { |
116 | 0 | this.personInfoOverride = personInfoOverride; |
117 | 0 | } |
118 | |
|
119 | |
@Override |
120 | |
public Float getPercentageEffort() { |
121 | 0 | return percentageEffort; |
122 | |
} |
123 | |
|
124 | |
public void setPercentageEffort(Float percentageEffort) { |
125 | 0 | this.percentageEffort = percentageEffort; |
126 | 0 | } |
127 | |
} |