1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.enrollment.roster.dto; |
18 | |
|
19 | |
import java.io.Serializable; |
20 | |
import java.util.ArrayList; |
21 | |
import java.util.List; |
22 | |
|
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAnyElement; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.XmlType; |
28 | |
|
29 | |
import org.kuali.student.enrollment.roster.infc.LprRoster; |
30 | |
import org.kuali.student.r2.common.dto.IdEntityInfo; |
31 | |
import org.kuali.student.r2.common.dto.TimeAmountInfo; |
32 | |
import org.w3c.dom.Element; |
33 | |
|
34 | |
@XmlAccessorType(XmlAccessType.FIELD) |
35 | |
@XmlType(name = "LprRosterInfo", propOrder = { |
36 | |
"id", "typeKey", "stateKey", "name", "descr", |
37 | |
"associatedLuiIds", "maximumCapacity", "checkInRequired", |
38 | |
"checkInFrequency", "meta", "attributes", "_futureElements"}) |
39 | |
|
40 | |
public class LprRosterInfo |
41 | |
extends IdEntityInfo |
42 | |
implements LprRoster, Serializable { |
43 | |
|
44 | |
private static final long serialVersionUID = 1L; |
45 | |
|
46 | |
@XmlElement |
47 | |
private List<String> associatedLuiIds; |
48 | |
|
49 | |
@XmlElement |
50 | |
private Integer maximumCapacity; |
51 | |
|
52 | |
@XmlElement |
53 | |
private Boolean checkInRequired; |
54 | |
|
55 | |
@XmlElement |
56 | |
private TimeAmountInfo checkInFrequency; |
57 | |
|
58 | |
@XmlAnyElement |
59 | |
private List<Element> _futureElements; |
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
|
65 | 0 | public LprRosterInfo() { |
66 | 0 | } |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | 0 | public LprRosterInfo(LprRoster lprRoster) { |
74 | 0 | if (lprRoster != null) { |
75 | 0 | this.associatedLuiIds = new ArrayList<String>(lprRoster.getAssociatedLuiIds()); |
76 | 0 | this.maximumCapacity = lprRoster.getMaximumCapacity(); |
77 | 0 | this.checkInRequired = lprRoster.getCheckInRequired(); |
78 | 0 | this.checkInFrequency = lprRoster.getCheckInFrequency(); |
79 | |
} |
80 | 0 | } |
81 | |
|
82 | |
@Override |
83 | |
public List<String> getAssociatedLuiIds() { |
84 | 0 | if (this.associatedLuiIds == null) { |
85 | 0 | this.associatedLuiIds = new ArrayList<String>(); |
86 | |
} |
87 | |
|
88 | 0 | return this.associatedLuiIds; |
89 | |
} |
90 | |
|
91 | |
public void setAssociatedLuiIds(List<String> associatedLuiIds) { |
92 | 0 | this.associatedLuiIds = associatedLuiIds; |
93 | 0 | } |
94 | |
|
95 | |
@Override |
96 | |
public Integer getMaximumCapacity() { |
97 | 0 | return maximumCapacity; |
98 | |
} |
99 | |
|
100 | |
public void setMaximumCapacity(Integer maximumCapacity) { |
101 | 0 | this.maximumCapacity = maximumCapacity; |
102 | 0 | } |
103 | |
|
104 | |
@Override |
105 | |
public Boolean getCheckInRequired() { |
106 | 0 | return checkInRequired; |
107 | |
} |
108 | |
|
109 | |
public void setCheckInRequired(Boolean checkInRequired) { |
110 | 0 | this.checkInRequired = checkInRequired; |
111 | 0 | } |
112 | |
|
113 | |
@Override |
114 | |
public TimeAmountInfo getCheckInFrequency() { |
115 | 0 | return checkInFrequency; |
116 | |
} |
117 | |
|
118 | |
public void setCheckInFrequency(TimeAmountInfo checkInFrequency) { |
119 | 0 | this.checkInFrequency = checkInFrequency; |
120 | 0 | } |
121 | |
} |