| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
package org.kuali.student.enrollment.courseregistration.service; |
| 6 | |
|
| 7 | |
import java.util.Date; |
| 8 | |
import java.util.HashMap; |
| 9 | |
import java.util.List; |
| 10 | |
import java.util.Map; |
| 11 | |
import org.kuali.rice.core.api.criteria.QueryByCriteria; |
| 12 | |
import org.kuali.student.enrollment.courseoffering.dto.RegistrationGroupInfo; |
| 13 | |
import org.kuali.student.enrollment.courseregistration.dto.ActivityRegistrationInfo; |
| 14 | |
import org.kuali.student.enrollment.courseregistration.dto.CourseRegistrationInfo; |
| 15 | |
import org.kuali.student.enrollment.courseregistration.dto.RegGroupRegistrationInfo; |
| 16 | |
import org.kuali.student.enrollment.courseregistration.dto.RegRequestInfo; |
| 17 | |
import org.kuali.student.enrollment.courseregistration.dto.RegResponseInfo; |
| 18 | |
import org.kuali.student.enrollment.coursewaitlist.dto.CourseWaitlistEntryInfo; |
| 19 | |
import org.kuali.student.enrollment.grading.dto.LoadInfo; |
| 20 | |
import org.kuali.student.r2.common.dto.ContextInfo; |
| 21 | |
import org.kuali.student.r2.common.dto.DateRangeInfo; |
| 22 | |
import org.kuali.student.r2.common.dto.MetaInfo; |
| 23 | |
import org.kuali.student.r2.common.dto.StatusInfo; |
| 24 | |
|
| 25 | |
import org.kuali.student.r2.common.dto.ValidationResultInfo; |
| 26 | |
import org.kuali.student.r2.common.exceptions.AlreadyExistsException; |
| 27 | |
import org.kuali.student.r2.common.exceptions.DataValidationErrorException; |
| 28 | |
import org.kuali.student.r2.common.exceptions.DisabledIdentifierException; |
| 29 | |
import org.kuali.student.r2.common.exceptions.DoesNotExistException; |
| 30 | |
import org.kuali.student.r2.common.exceptions.InvalidParameterException; |
| 31 | |
import org.kuali.student.r2.common.exceptions.MissingParameterException; |
| 32 | |
import org.kuali.student.r2.common.exceptions.OperationFailedException; |
| 33 | |
import org.kuali.student.r2.common.exceptions.PermissionDeniedException; |
| 34 | |
import org.kuali.student.r2.common.exceptions.VersionMismatchException; |
| 35 | |
|
| 36 | |
|
| 37 | |
|
| 38 | |
|
| 39 | |
|
| 40 | 0 | public class CourseRegistrationServiceMockImpl implements CourseRegistrationService { |
| 41 | |
|
| 42 | |
@Override |
| 43 | |
public LoadInfo calculateCreditLoadForRegRequest(String studentId, RegRequestInfo regRequestInfo, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 44 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 45 | |
} |
| 46 | |
|
| 47 | |
@Override |
| 48 | |
public LoadInfo calculateCreditLoadForTerm(String studentId, String termKey, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 49 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 50 | |
} |
| 51 | |
|
| 52 | |
@Override |
| 53 | |
public StatusInfo cancelRegRequest(String regRequestId, ContextInfo context) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 54 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 55 | |
} |
| 56 | |
|
| 57 | |
@Override |
| 58 | |
public List<ValidationResultInfo> checkStudentEligibility(String studentId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 59 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 60 | |
} |
| 61 | |
|
| 62 | |
@Override |
| 63 | |
public List<ValidationResultInfo> checkStudentEligibilityForTerm(String studentId, String termKey, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 64 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 65 | |
} |
| 66 | |
|
| 67 | |
@Override |
| 68 | |
public List<ValidationResultInfo> checkStudentEligibiltyForCourseOffering(String studentId, String courseOfferingId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 69 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 70 | |
} |
| 71 | |
|
| 72 | |
@Override |
| 73 | |
public List<ValidationResultInfo> checkStudentEligibiltyForRegGroup(String studentId, String regGroupId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 74 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 75 | |
} |
| 76 | |
|
| 77 | |
private MetaInfo newMeta(ContextInfo context) { |
| 78 | 0 | MetaInfo meta = new MetaInfo(); |
| 79 | 0 | meta.setCreateId(context.getPrincipalId()); |
| 80 | 0 | meta.setCreateTime(new Date()); |
| 81 | 0 | meta.setUpdateId(context.getPrincipalId()); |
| 82 | 0 | meta.setUpdateTime(meta.getCreateTime()); |
| 83 | 0 | meta.setVersionInd("0"); |
| 84 | 0 | return meta; |
| 85 | |
} |
| 86 | |
|
| 87 | |
private StatusInfo newStatus() { |
| 88 | 0 | StatusInfo status = new StatusInfo(); |
| 89 | 0 | status.setSuccess(Boolean.TRUE); |
| 90 | 0 | return status; |
| 91 | |
} |
| 92 | |
|
| 93 | |
private MetaInfo updateMeta(MetaInfo old, ContextInfo context) { |
| 94 | 0 | MetaInfo meta = new MetaInfo(old); |
| 95 | 0 | meta.setUpdateId(context.getPrincipalId()); |
| 96 | 0 | meta.setUpdateTime(new Date()); |
| 97 | 0 | meta.setVersionInd((Integer.parseInt(meta.getVersionInd()) + 1) + ""); |
| 98 | 0 | return meta; |
| 99 | |
} |
| 100 | 0 | private Map<String, RegRequestInfo> regRequests = new HashMap<String, RegRequestInfo>(); |
| 101 | |
|
| 102 | |
@Override |
| 103 | |
public RegRequestInfo createRegRequest(RegRequestInfo regRequestInfo, ContextInfo context) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 104 | 0 | RegRequestInfo copy = new RegRequestInfo(regRequestInfo); |
| 105 | 0 | copy.setId(regRequests.size() + ""); |
| 106 | 0 | copy.setMeta(newMeta(context)); |
| 107 | 0 | regRequests.put(copy.getId(), copy); |
| 108 | 0 | return new RegRequestInfo(copy); |
| 109 | |
} |
| 110 | |
|
| 111 | |
@Override |
| 112 | |
public RegRequestInfo createRegRequestFromExisting(String existingRegRequestId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DoesNotExistException { |
| 113 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 114 | |
} |
| 115 | |
|
| 116 | |
@Override |
| 117 | |
public StatusInfo deleteCourseWaitlistEntry(String courseWaitlistEntryId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 118 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 119 | |
} |
| 120 | |
|
| 121 | |
@Override |
| 122 | |
public StatusInfo deleteRegRequest(String regRequestId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DoesNotExistException { |
| 123 | 0 | if (this.regRequests.remove(regRequestId) == null) { |
| 124 | 0 | throw new DoesNotExistException(regRequestId); |
| 125 | |
} |
| 126 | 0 | return newStatus(); |
| 127 | |
} |
| 128 | |
|
| 129 | |
@Override |
| 130 | |
public RegResponseInfo dropStudentsFromRegGroups(List<String> regGroupIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 131 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 132 | |
} |
| 133 | |
|
| 134 | |
@Override |
| 135 | |
public CourseRegistrationInfo getActiveCourseRegistrationForStudentByCourseOffering(String studentId, String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DisabledIdentifierException { |
| 136 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 137 | |
} |
| 138 | |
|
| 139 | |
@Override |
| 140 | |
public List<CourseRegistrationInfo> getActiveCourseRegistrationsByCourseOfferingId(String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 141 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 142 | |
} |
| 143 | |
|
| 144 | |
@Override |
| 145 | |
public List<DateRangeInfo> getAppointmentWindows(String studentId, String termKey, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 146 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 147 | |
} |
| 148 | |
|
| 149 | |
@Override |
| 150 | |
public Integer getAvailableSeatsForCourseOffering(String courseOfferingId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 151 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 152 | |
} |
| 153 | |
|
| 154 | |
@Override |
| 155 | |
public Integer getAvailableSeatsForRegGroup(String regGroupId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 156 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 157 | |
} |
| 158 | |
|
| 159 | |
@Override |
| 160 | |
public Integer getAvailableSeatsForStudentInRegGroup(String studentId, String regGroupId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 161 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 162 | |
} |
| 163 | |
|
| 164 | |
@Override |
| 165 | |
public Integer getAvailableSeatsInSeatpool(String seatpoolId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 166 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 167 | |
} |
| 168 | |
|
| 169 | |
@Override |
| 170 | |
public CourseRegistrationInfo getCourseRegistration(String courseRegistrationId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 171 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 172 | |
} |
| 173 | |
|
| 174 | |
@Override |
| 175 | |
public List<CourseRegistrationInfo> getCourseRegistrationsByIds(List<String> courseRegistrationIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 176 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 177 | |
} |
| 178 | |
|
| 179 | |
@Override |
| 180 | |
public List<CourseRegistrationInfo> getCourseRegistrationsForStudent(String studentId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DisabledIdentifierException { |
| 181 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 182 | |
} |
| 183 | |
|
| 184 | |
@Override |
| 185 | |
public List<CourseRegistrationInfo> getCourseRegistrationsForStudentByCourseOffering(String studentId, String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DisabledIdentifierException { |
| 186 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 187 | |
} |
| 188 | |
|
| 189 | |
@Override |
| 190 | |
public List<CourseRegistrationInfo> getCourseRegistrationsForStudentByTerm(String studentId, String termKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DisabledIdentifierException { |
| 191 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 192 | |
} |
| 193 | |
|
| 194 | |
@Override |
| 195 | |
public List<CourseWaitlistEntryInfo> getCourseWaitlistEntriesForCourseOffering(String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 196 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 197 | |
} |
| 198 | |
|
| 199 | |
@Override |
| 200 | |
public List<CourseWaitlistEntryInfo> getCourseWaitlistEntriesForRegGroup(String regGroupId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 201 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 202 | |
} |
| 203 | |
|
| 204 | |
@Override |
| 205 | |
public List<CourseWaitlistEntryInfo> getCourseWaitlistEntriesForStudentByTerm(String studentId, String termKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 206 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 207 | |
} |
| 208 | |
|
| 209 | |
@Override |
| 210 | |
public List<CourseWaitlistEntryInfo> getCourseWaitlistEntriesForStudentInCourseOffering(String courseOfferingId, String studentId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 211 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 212 | |
} |
| 213 | |
|
| 214 | |
@Override |
| 215 | |
public CourseWaitlistEntryInfo getCourseWaitlistEntry(String courseWaitlistEntryId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 216 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 217 | |
} |
| 218 | |
|
| 219 | |
@Override |
| 220 | |
public CourseWaitlistEntryInfo getCourseWaitlistEntryForStudentInRegGroup(String regGroupId, String studentId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 221 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 222 | |
} |
| 223 | |
|
| 224 | |
@Override |
| 225 | |
public List<CourseRegistrationInfo> getDroppedCourseRegistrationsByCourseOfferingId(String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 226 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 227 | |
} |
| 228 | |
|
| 229 | |
@Override |
| 230 | |
public List<RegistrationGroupInfo> getEligibleRegGroupsForStudentInCourseOffering(String studentId, String courseOfferingId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 231 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 232 | |
} |
| 233 | |
|
| 234 | |
@Override |
| 235 | |
public RegRequestInfo getRegRequest(String regRequestId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 236 | 0 | if (!this.regRequests.containsKey(regRequestId)) { |
| 237 | 0 | throw new DoesNotExistException (regRequestId); |
| 238 | |
} |
| 239 | 0 | return new RegRequestInfo (this.regRequests.get(regRequestId)); |
| 240 | |
} |
| 241 | |
|
| 242 | |
@Override |
| 243 | |
public List<RegRequestInfo> getRegRequestsByIds(List<String> regRequestIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 244 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 245 | |
} |
| 246 | |
|
| 247 | |
@Override |
| 248 | |
public List<RegRequestInfo> getRegRequestsForCourseOffering(String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 249 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 250 | |
} |
| 251 | |
|
| 252 | |
@Override |
| 253 | |
public List<RegRequestInfo> getRegRequestsForCourseOfferingByStudent(String courseOfferingId, String studentId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 254 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 255 | |
} |
| 256 | |
|
| 257 | |
@Override |
| 258 | |
public List<RegRequestInfo> getRegRequestsForCourseRegistration(String courseRegistrationId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 259 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 260 | |
} |
| 261 | |
|
| 262 | |
@Override |
| 263 | |
public List<RegRequestInfo> getRegRequestsForStudentByTerm(String studentId, String termKey, List<String> requestStates, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 264 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 265 | |
} |
| 266 | |
|
| 267 | |
@Override |
| 268 | |
public StatusInfo insertCourseWaitlistEntryAtPosition(String courseWaitlistEntryId, Integer position, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 269 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 270 | |
} |
| 271 | |
|
| 272 | |
@Override |
| 273 | |
public RegResponseInfo moveStudentsBetweenRegGroups(String sourceRegGroupId, String destinationRegGroupId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 274 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 275 | |
} |
| 276 | |
|
| 277 | |
@Override |
| 278 | |
public RegResponseInfo registerStudentFromWaitlist(String courseWaitlistEntryId, ContextInfo context) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 279 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 280 | |
} |
| 281 | |
|
| 282 | |
@Override |
| 283 | |
public StatusInfo removeCourseWaitlistEntry(String courseWaitlistEntryId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 284 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 285 | |
} |
| 286 | |
|
| 287 | |
@Override |
| 288 | |
public StatusInfo reorderCourseWaitlistEntries(List<String> courseWaitlistEntryIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 289 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 290 | |
} |
| 291 | |
|
| 292 | |
@Override |
| 293 | |
public List<String> searchForActivityRegistrationIds(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 294 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 295 | |
} |
| 296 | |
|
| 297 | |
@Override |
| 298 | |
public List<ActivityRegistrationInfo> searchForActivityRegistrations(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 299 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 300 | |
} |
| 301 | |
|
| 302 | |
@Override |
| 303 | |
public List<String> searchForCourseOfferingRegistrationIds(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 304 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 305 | |
} |
| 306 | |
|
| 307 | |
@Override |
| 308 | |
public List<CourseRegistrationInfo> searchForCourseRegistrations(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 309 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 310 | |
} |
| 311 | |
|
| 312 | |
@Override |
| 313 | |
public List<CourseWaitlistEntryInfo> searchForCourseWaitlistEntries(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 314 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 315 | |
} |
| 316 | |
|
| 317 | |
@Override |
| 318 | |
public List<String> searchForCourseWaitlistEntryIds(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 319 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 320 | |
} |
| 321 | |
|
| 322 | |
@Override |
| 323 | |
public List<String> searchForRegGroupRegistrationIds(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 324 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 325 | |
} |
| 326 | |
|
| 327 | |
@Override |
| 328 | |
public List<RegGroupRegistrationInfo> searchForRegGroupRegistrations(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 329 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 330 | |
} |
| 331 | |
|
| 332 | |
@Override |
| 333 | |
public RegResponseInfo submitRegRequest(String regRequestId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DataValidationErrorException, AlreadyExistsException { |
| 334 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 335 | |
} |
| 336 | |
|
| 337 | |
@Override |
| 338 | |
public StatusInfo updateCourseWaitlistEntry(String courseWaitlistEntryId, CourseWaitlistEntryInfo courseWaitlistEntryInfo, ContextInfo context) throws DoesNotExistException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 339 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 340 | |
} |
| 341 | |
|
| 342 | |
@Override |
| 343 | |
public RegRequestInfo updateRegRequest(String regRequestId, RegRequestInfo regRequestInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException { |
| 344 | 0 | RegRequestInfo copy = new RegRequestInfo(regRequestInfo); |
| 345 | 0 | RegRequestInfo old = this.getRegRequest(regRequestId, context); |
| 346 | 0 | if (!old.getMeta().getVersionInd().equals(copy.getMeta().getVersionInd())) { |
| 347 | 0 | throw new VersionMismatchException(old.getMeta().getVersionInd()); |
| 348 | |
} |
| 349 | 0 | copy.setMeta(updateMeta(copy.getMeta(), context)); |
| 350 | 0 | this.regRequests.put(regRequestInfo.getId(), copy); |
| 351 | 0 | return new RegRequestInfo(copy); |
| 352 | |
} |
| 353 | |
|
| 354 | |
@Override |
| 355 | |
public StatusInfo validateCourseWaitlistEntry(String validateTypeKey, CourseWaitlistEntryInfo courseWaitlistEntryInfo, ContextInfo context) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 356 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 357 | |
} |
| 358 | |
|
| 359 | |
@Override |
| 360 | |
public List<ValidationResultInfo> validateRegRequest(RegRequestInfo regRequestInfo, ContextInfo context) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 361 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 362 | |
} |
| 363 | |
|
| 364 | |
@Override |
| 365 | |
public List<ValidationResultInfo> verifyRegRequest(RegRequestInfo regRequestInfo, ContextInfo context) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 366 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 367 | |
} |
| 368 | |
|
| 369 | |
@Override |
| 370 | |
public RegResponseInfo verifySavedReqRequest(String regRequestId, ContextInfo context) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 371 | 0 | throw new UnsupportedOperationException("Not supported yet."); |
| 372 | |
} |
| 373 | |
|
| 374 | |
|
| 375 | |
} |