| 1 | |
package org.kuali.student.enrollment.class2.appointment.dto; |
| 2 | |
|
| 3 | |
import org.apache.commons.lang.StringUtils; |
| 4 | |
import org.kuali.student.enrollment.class2.acal.dto.TimeSetWrapper; |
| 5 | |
import org.kuali.student.r2.core.appointment.dto.AppointmentWindowInfo; |
| 6 | |
|
| 7 | |
import java.text.SimpleDateFormat; |
| 8 | |
import java.util.Date; |
| 9 | |
|
| 10 | |
public class AppointmentWindowWrapper extends TimeSetWrapper { |
| 11 | |
AppointmentWindowInfo appointmentWindowInfo; |
| 12 | |
|
| 13 | |
String termType; |
| 14 | |
String termYear; |
| 15 | |
|
| 16 | |
String id; |
| 17 | |
String windowName; |
| 18 | |
String periodName; |
| 19 | |
String periodKey; |
| 20 | |
String assignedPopulationName; |
| 21 | |
String windowTypeKey; |
| 22 | |
String windowTypeName; |
| 23 | |
|
| 24 | |
|
| 25 | |
Integer numberOfStudents; |
| 26 | |
Integer numberOfSlots; |
| 27 | |
Float meanStudentsPerSlot; |
| 28 | |
|
| 29 | |
String firstSlotPopulated; |
| 30 | |
String lastSlotPopulated; |
| 31 | |
|
| 32 | |
Date assignmentsCreated; |
| 33 | |
|
| 34 | |
|
| 35 | |
String slotRuleEnumType; |
| 36 | |
|
| 37 | |
public String getTermType() { |
| 38 | 0 | return termType; |
| 39 | |
} |
| 40 | |
|
| 41 | |
public void setTermType(String termType) { |
| 42 | 0 | this.termType = termType; |
| 43 | 0 | } |
| 44 | |
|
| 45 | |
public String getTermYear() { |
| 46 | 0 | return termYear; |
| 47 | |
} |
| 48 | |
|
| 49 | |
public void setTermYear(String termYear) { |
| 50 | 0 | this.termYear = termYear; |
| 51 | 0 | } |
| 52 | |
|
| 53 | |
public String getId() { |
| 54 | 0 | return id; |
| 55 | |
} |
| 56 | |
|
| 57 | |
public void setId(String id) { |
| 58 | 0 | this.id = id; |
| 59 | 0 | } |
| 60 | |
|
| 61 | |
public String getWindowName() { |
| 62 | 0 | return windowName; |
| 63 | |
} |
| 64 | |
|
| 65 | |
public void setWindowName(String windowName) { |
| 66 | 0 | this.windowName = windowName; |
| 67 | 0 | } |
| 68 | |
|
| 69 | 0 | public AppointmentWindowWrapper() { |
| 70 | 0 | appointmentWindowInfo = new AppointmentWindowInfo(); |
| 71 | 0 | } |
| 72 | |
|
| 73 | |
public AppointmentWindowInfo getAppointmentWindowInfo() { |
| 74 | 0 | return appointmentWindowInfo; |
| 75 | |
} |
| 76 | |
|
| 77 | |
public void setAppointmentWindowInfo(AppointmentWindowInfo appointmentWindowInfo) { |
| 78 | 0 | this.appointmentWindowInfo = appointmentWindowInfo; |
| 79 | 0 | } |
| 80 | |
|
| 81 | |
public String getPeriodName() { |
| 82 | 0 | return periodName; |
| 83 | |
} |
| 84 | |
|
| 85 | |
public void setPeriodName(String periodName) { |
| 86 | 0 | this.periodName = periodName; |
| 87 | 0 | } |
| 88 | |
|
| 89 | |
public String getPeriodKey() { |
| 90 | 0 | return periodKey; |
| 91 | |
} |
| 92 | |
|
| 93 | |
public void setPeriodKey(String periodKey) { |
| 94 | 0 | this.periodKey = periodKey; |
| 95 | 0 | } |
| 96 | |
|
| 97 | |
public String getAssignedPopulationName() { |
| 98 | 0 | return assignedPopulationName; |
| 99 | |
} |
| 100 | |
|
| 101 | |
public void setAssignedPopulationName(String assignedPopulationName) { |
| 102 | 0 | this.assignedPopulationName = assignedPopulationName; |
| 103 | 0 | } |
| 104 | |
|
| 105 | |
public String getWindowTypeKey() { |
| 106 | 0 | return windowTypeKey; |
| 107 | |
} |
| 108 | |
|
| 109 | |
public void setWindowTypeKey(String windowTypeKey) { |
| 110 | 0 | this.windowTypeKey = windowTypeKey; |
| 111 | 0 | } |
| 112 | |
|
| 113 | |
public String getWindowTypeName() { |
| 114 | 0 | return windowTypeName; |
| 115 | |
} |
| 116 | |
|
| 117 | |
public void setWindowTypeName(String windowTypeName) { |
| 118 | 0 | this.windowTypeName = windowTypeName; |
| 119 | 0 | } |
| 120 | |
|
| 121 | |
public Integer getNumberOfStudents() { |
| 122 | 0 | return numberOfStudents; |
| 123 | |
} |
| 124 | |
|
| 125 | |
public void setNumberOfStudents(Integer numberOfStudents) { |
| 126 | 0 | this.numberOfStudents = numberOfStudents; |
| 127 | 0 | } |
| 128 | |
|
| 129 | |
public Integer getNumberOfSlots() { |
| 130 | 0 | return numberOfSlots; |
| 131 | |
} |
| 132 | |
|
| 133 | |
public void setNumberOfSlots(Integer numberOfSlots) { |
| 134 | 0 | this.numberOfSlots = numberOfSlots; |
| 135 | 0 | } |
| 136 | |
|
| 137 | |
public Float getMeanStudentsPerSlot() { |
| 138 | 0 | return meanStudentsPerSlot; |
| 139 | |
} |
| 140 | |
|
| 141 | |
public void setMeanStudentsPerSlot(Float meanStudentsPerSlot) { |
| 142 | 0 | this.meanStudentsPerSlot = meanStudentsPerSlot; |
| 143 | 0 | } |
| 144 | |
|
| 145 | |
public String getLastSlotPopulated() { |
| 146 | 0 | return lastSlotPopulated; |
| 147 | |
} |
| 148 | |
|
| 149 | |
public void setLastSlotPopulated(String lastSlotPopulated) { |
| 150 | 0 | this.lastSlotPopulated = lastSlotPopulated; |
| 151 | 0 | } |
| 152 | |
|
| 153 | |
public Date getAssignmentsCreated() { |
| 154 | 0 | return assignmentsCreated; |
| 155 | |
} |
| 156 | |
|
| 157 | |
public void setAssignmentsCreated(Date assignmentsCreated) { |
| 158 | 0 | this.assignmentsCreated = assignmentsCreated; |
| 159 | 0 | } |
| 160 | |
|
| 161 | |
public void setSlotRuleEnumType(String slotRuleEnumType){ |
| 162 | 0 | this.slotRuleEnumType = slotRuleEnumType; |
| 163 | 0 | } |
| 164 | |
|
| 165 | |
public String getSlotRuleEnumType() { |
| 166 | 0 | return slotRuleEnumType; |
| 167 | |
} |
| 168 | |
|
| 169 | |
public String getFirstSlotPopulated() { |
| 170 | 0 | return firstSlotPopulated; |
| 171 | |
} |
| 172 | |
|
| 173 | |
public void setFirstSlotPopulated(String firstSlotPopulated) { |
| 174 | 0 | this.firstSlotPopulated = firstSlotPopulated; |
| 175 | 0 | } |
| 176 | |
|
| 177 | |
|
| 178 | |
public String getStartDateUI(){ |
| 179 | 0 | if (getStartDate() != null) { |
| 180 | 0 | SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy"); |
| 181 | 0 | return formatter.format(getStartDate()); |
| 182 | |
|
| 183 | |
}else{ |
| 184 | 0 | return StringUtils.EMPTY; |
| 185 | |
} |
| 186 | |
|
| 187 | |
} |
| 188 | |
|
| 189 | |
|
| 190 | |
public String getEndDateUI(){ |
| 191 | 0 | if (endDateUI != null) { |
| 192 | 0 | SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy"); |
| 193 | 0 | return formatter.format(endDateUI); |
| 194 | |
}else{ |
| 195 | 0 | return StringUtils.EMPTY; |
| 196 | |
} |
| 197 | |
|
| 198 | |
} |
| 199 | |
|
| 200 | |
} |