1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.student.enrollment.courseoffering.dto;
18
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.XmlElement;
25 import javax.xml.bind.annotation.XmlType;
26
27 import org.kuali.student.enrollment.courseoffering.infc.SeatPoolDefinition;
28 import org.kuali.student.r2.common.dto.IdEntityInfo;
29 import org.w3c.dom.Element;
30
31
32 @XmlAccessorType(XmlAccessType.FIELD)
33 @XmlType(name = "SeatPoolDefinitionInfo", propOrder = {
34 "id", "typeKey", "stateKey", "name", "descr",
35 "expirationMilestoneTypeKey",
36 "isPercentage", "seatLimit", "processingPriority",
37 "populationId",
38 "meta", "attributes", "_futureElements"})
39
40 public class SeatPoolDefinitionInfo
41 extends IdEntityInfo
42 implements SeatPoolDefinition {
43
44 private static final long serialVersionUID = 1L;
45
46 @XmlElement
47 private String expirationMilestoneTypeKey;
48
49 @XmlElement
50 private Boolean isPercentage;
51
52 @XmlElement
53 private Integer seatLimit;
54
55 @XmlElement
56 private Integer processingPriority;
57
58 @XmlElement
59 private String populationId;
60
61 @XmlAnyElement
62 private List<Element> _futureElements;
63
64
65
66
67
68 public SeatPoolDefinitionInfo() {
69 }
70
71
72
73
74
75
76 public SeatPoolDefinitionInfo(SeatPoolDefinition pool) {
77 super(pool);
78
79 if (pool == null) {
80 return;
81 }
82
83 this.expirationMilestoneTypeKey = pool.getExpirationMilestoneTypeKey();
84 this.isPercentage = pool.getIsPercentage();
85 this.seatLimit = pool.getSeatLimit();
86 this.processingPriority = pool.getProcessingPriority();
87 this.populationId = pool.getPopulationId();
88 }
89
90
91 @Override
92 public String getExpirationMilestoneTypeKey() {
93 return this.expirationMilestoneTypeKey;
94 }
95
96 public void setExpirationMilestoneTypeKey(String expirationMilestoneTypeKey) {
97 this.expirationMilestoneTypeKey = expirationMilestoneTypeKey;
98 }
99
100 @Override
101 public Boolean getIsPercentage() {
102 return this.isPercentage;
103 }
104
105 public void setIsPercentage(Boolean isPercentage) {
106 this.isPercentage = isPercentage;;
107 }
108
109 @Override
110 public Integer getSeatLimit() {
111 return this.seatLimit;
112 }
113
114 public void setSeatLimit(Integer seatLimit) {
115 this.seatLimit = seatLimit;
116 }
117
118 @Override
119 public Integer getProcessingPriority() {
120 return this.processingPriority;
121 }
122
123 public void setProcessingPriority(Integer processingPriority) {
124 this.processingPriority = processingPriority;
125 }
126
127 @Override
128 public String getPopulationId() {
129 return this.populationId;
130 }
131
132 public void setPopulationId(String populationId) {
133 this.populationId = populationId;
134 }
135 }