| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.student.enrollment.courseoffering.dto; |
| 17 | |
|
| 18 | |
import java.util.ArrayList; |
| 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 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
|
| 36 | |
@XmlAccessorType(XmlAccessType.FIELD) |
| 37 | |
@XmlType(name = "SeatPoolDefinitionInfo", propOrder = {"registrationGroupIds", "courseOfferingId", |
| 38 | |
"maximumSeatCount", "processingPriority", "capacityRestrictionStatementId", |
| 39 | |
"id", "typeKey", "stateKey", "name", "descr", "meta", "attributes", "_futureElements"}) |
| 40 | |
public class SeatPoolDefinitionInfo extends IdEntityInfo implements SeatPoolDefinition { |
| 41 | |
|
| 42 | |
private static final long serialVersionUID = 1L; |
| 43 | |
|
| 44 | |
@XmlElement |
| 45 | |
private String courseOfferingId; |
| 46 | |
|
| 47 | |
@XmlElement |
| 48 | |
private List<String> registrationGroupIds; |
| 49 | |
|
| 50 | |
@XmlElement |
| 51 | |
private Integer maximumSeatCount; |
| 52 | |
|
| 53 | |
@XmlElement |
| 54 | |
private Integer processingPriority; |
| 55 | |
|
| 56 | |
@XmlElement |
| 57 | |
private String capacityRestrictionStatementId; |
| 58 | |
|
| 59 | |
@XmlAnyElement |
| 60 | |
private List<Element> _futureElements; |
| 61 | |
|
| 62 | |
|
| 63 | 0 | public SeatPoolDefinitionInfo() { |
| 64 | 0 | } |
| 65 | |
|
| 66 | |
public SeatPoolDefinitionInfo(SeatPoolDefinition seatpool) { |
| 67 | 0 | super(seatpool); |
| 68 | |
|
| 69 | 0 | if(null == seatpool) return; |
| 70 | |
|
| 71 | 0 | this.courseOfferingId = seatpool.getCourseOfferingId(); |
| 72 | 0 | this.maximumSeatCount = (null != seatpool.getMaximumSeatCount()) ? new Integer(seatpool.getMaximumSeatCount()) : null; |
| 73 | 0 | this.registrationGroupIds = (null != seatpool.getRegistrationGroupIds()) ? new ArrayList<String>(seatpool.getRegistrationGroupIds()) : null; |
| 74 | 0 | this.processingPriority = (null != seatpool.getProcessingPriority()) ? new Integer(seatpool.getProcessingPriority()) : null; |
| 75 | 0 | this.capacityRestrictionStatementId = seatpool.getCapacityRestrictionStatementId(); |
| 76 | 0 | } |
| 77 | |
|
| 78 | |
|
| 79 | |
@Override |
| 80 | |
public String getCourseOfferingId() { |
| 81 | 0 | return this.courseOfferingId; |
| 82 | |
} |
| 83 | |
|
| 84 | |
@Override |
| 85 | |
public List<String> getRegistrationGroupIds() { |
| 86 | 0 | if(null == this.registrationGroupIds) { |
| 87 | 0 | this.registrationGroupIds = new ArrayList<String>(); |
| 88 | |
} |
| 89 | 0 | return this.registrationGroupIds; |
| 90 | |
} |
| 91 | |
|
| 92 | |
@Override |
| 93 | |
public Integer getMaximumSeatCount() { |
| 94 | 0 | return this.maximumSeatCount; |
| 95 | |
} |
| 96 | |
|
| 97 | |
@Override |
| 98 | |
public Integer getProcessingPriority() { |
| 99 | 0 | return this.processingPriority; |
| 100 | |
} |
| 101 | |
|
| 102 | |
@Override |
| 103 | |
public String getCapacityRestrictionStatementId() { |
| 104 | 0 | return this.capacityRestrictionStatementId; |
| 105 | |
} |
| 106 | |
|
| 107 | |
public void setRegistrationGroupIds(List<String> registrationGroupIds) { |
| 108 | 0 | this.registrationGroupIds = registrationGroupIds; |
| 109 | 0 | } |
| 110 | |
|
| 111 | |
public void setMaximumSeatCount(Integer maximumSeatCount) { |
| 112 | 0 | this.maximumSeatCount = maximumSeatCount; |
| 113 | 0 | } |
| 114 | |
|
| 115 | |
public void setProcessingPriority(Integer processingPriority) { |
| 116 | 0 | this.processingPriority = processingPriority; |
| 117 | 0 | } |
| 118 | |
|
| 119 | |
public void setCapacityRestrictionStatementId(String capacityRestrictionStatementId) { |
| 120 | 0 | this.capacityRestrictionStatementId = capacityRestrictionStatementId; |
| 121 | 0 | } |
| 122 | |
} |