| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
package org.kuali.student.enrollment.class2.courseofferingset.service.decorators; |
| 6 | |
|
| 7 | |
import java.util.List; |
| 8 | |
import org.kuali.student.enrollment.courseofferingset.dto.SocInfo; |
| 9 | |
import org.kuali.student.enrollment.courseofferingset.dto.SocRolloverResultInfo; |
| 10 | |
import org.kuali.student.enrollment.courseofferingset.dto.SocRolloverResultItemInfo; |
| 11 | |
import org.kuali.student.enrollment.courseofferingset.service.CourseOfferingSetService; |
| 12 | |
import org.kuali.student.r2.common.dto.ContextInfo; |
| 13 | |
import org.kuali.student.r2.common.dto.StatusInfo; |
| 14 | |
import org.kuali.student.r2.common.dto.ValidationResultInfo; |
| 15 | |
import org.kuali.student.r2.common.exceptions.DataValidationErrorException; |
| 16 | |
import org.kuali.student.r2.common.exceptions.DependentObjectsExistException; |
| 17 | |
import org.kuali.student.r2.common.exceptions.DoesNotExistException; |
| 18 | |
import org.kuali.student.r2.common.exceptions.InvalidParameterException; |
| 19 | |
import org.kuali.student.r2.common.exceptions.MissingParameterException; |
| 20 | |
import org.kuali.student.r2.common.exceptions.OperationFailedException; |
| 21 | |
import org.kuali.student.r2.common.exceptions.PermissionDeniedException; |
| 22 | |
import org.kuali.student.r2.common.exceptions.ReadOnlyException; |
| 23 | |
import org.kuali.student.r2.common.exceptions.VersionMismatchException; |
| 24 | |
|
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | 0 | public class CourseOfferingSetServiceDecorator implements CourseOfferingSetService { |
| 30 | |
|
| 31 | |
private CourseOfferingSetService nextDecorator; |
| 32 | |
|
| 33 | |
public CourseOfferingSetService getNextDecorator() { |
| 34 | 0 | return nextDecorator; |
| 35 | |
} |
| 36 | |
|
| 37 | |
public void setNextDecorator(CourseOfferingSetService nextDecorator) { |
| 38 | 0 | this.nextDecorator = nextDecorator; |
| 39 | 0 | } |
| 40 | |
|
| 41 | |
@Override |
| 42 | |
public List<ValidationResultInfo> validateSocRolloverResultItem(String validationType, SocRolloverResultItemInfo socRolloverResultItemInfo, ContextInfo context) throws |
| 43 | |
DoesNotExistException, |
| 44 | |
InvalidParameterException, MissingParameterException, OperationFailedException { |
| 45 | 0 | return getNextDecorator().validateSocRolloverResultItem(validationType, socRolloverResultItemInfo, context); |
| 46 | |
} |
| 47 | |
|
| 48 | |
@Override |
| 49 | |
public List<ValidationResultInfo> validateSocRolloverResult(String validationType, SocRolloverResultInfo socRolloverResultInfo, ContextInfo context) throws |
| 50 | |
DoesNotExistException, |
| 51 | |
InvalidParameterException, MissingParameterException, OperationFailedException { |
| 52 | 0 | return getNextDecorator().validateSocRolloverResult(validationType, socRolloverResultInfo, context); |
| 53 | |
} |
| 54 | |
|
| 55 | |
@Override |
| 56 | |
public List<ValidationResultInfo> validateSoc(String validationType, SocInfo socInfo, ContextInfo context) throws |
| 57 | |
DoesNotExistException, |
| 58 | |
InvalidParameterException, MissingParameterException, OperationFailedException { |
| 59 | 0 | return getNextDecorator().validateSoc(validationType, socInfo, context); |
| 60 | |
} |
| 61 | |
|
| 62 | |
@Override |
| 63 | |
public SocRolloverResultItemInfo updateSocRolloverResultItem(String socRolloverResultItemId, SocRolloverResultItemInfo socRolloverResultItemInfo, ContextInfo context) throws |
| 64 | |
DataValidationErrorException, |
| 65 | |
DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, |
| 66 | |
PermissionDeniedException, ReadOnlyException, VersionMismatchException { |
| 67 | 0 | return getNextDecorator().updateSocRolloverResultItem(socRolloverResultItemId, socRolloverResultItemInfo, context); |
| 68 | |
} |
| 69 | |
|
| 70 | |
@Override |
| 71 | |
public SocRolloverResultInfo updateSocRolloverResult(String socRolloverResultId, SocRolloverResultInfo socRolloverResultInfo, ContextInfo context) throws |
| 72 | |
DataValidationErrorException, |
| 73 | |
DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, |
| 74 | |
PermissionDeniedException, ReadOnlyException, VersionMismatchException { |
| 75 | 0 | return getNextDecorator().updateSocRolloverResult(socRolloverResultId, socRolloverResultInfo, context); |
| 76 | |
} |
| 77 | |
|
| 78 | |
@Override |
| 79 | |
public SocRolloverResultInfo updateSocRolloverProgress(String socRolloverResultId, Integer itemsProcessed, ContextInfo context) throws |
| 80 | |
DataValidationErrorException, |
| 81 | |
DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, |
| 82 | |
PermissionDeniedException, ReadOnlyException, VersionMismatchException { |
| 83 | 0 | return getNextDecorator().updateSocRolloverProgress(socRolloverResultId, itemsProcessed, context); |
| 84 | |
} |
| 85 | |
|
| 86 | |
@Override |
| 87 | |
public SocInfo updateSoc(String socId, SocInfo socInfo, ContextInfo context) throws DataValidationErrorException, |
| 88 | |
DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, |
| 89 | |
PermissionDeniedException, ReadOnlyException, VersionMismatchException { |
| 90 | 0 | return getNextDecorator().updateSoc(socId, socInfo, context); |
| 91 | |
} |
| 92 | |
|
| 93 | |
@Override |
| 94 | |
public StatusInfo scheduleSoc(String socId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, |
| 95 | |
MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 96 | 0 | return getNextDecorator().scheduleSoc(socId, context); |
| 97 | |
} |
| 98 | |
|
| 99 | |
@Override |
| 100 | |
public SocInfo rolloverSoc(String sourceSocId, String targetTermId, List<String> optionKeys, ContextInfo context) throws |
| 101 | |
DoesNotExistException, |
| 102 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 103 | 0 | return getNextDecorator().rolloverSoc(sourceSocId, targetTermId, optionKeys, context); |
| 104 | |
} |
| 105 | |
|
| 106 | |
@Override |
| 107 | |
public SocRolloverResultInfo reverseRollover(String rolloverResultId, List<String> optionKeys, ContextInfo context) throws |
| 108 | |
DoesNotExistException, |
| 109 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 110 | 0 | return getNextDecorator().reverseRollover(rolloverResultId, optionKeys, context); |
| 111 | |
} |
| 112 | |
|
| 113 | |
@Override |
| 114 | |
public Boolean isCourseOfferingInSoc(String socId, String courseOfferingId, ContextInfo context) throws DoesNotExistException, |
| 115 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 116 | 0 | return getNextDecorator().isCourseOfferingInSoc(socId, courseOfferingId, context); |
| 117 | |
} |
| 118 | |
|
| 119 | |
@Override |
| 120 | |
public List<String> getUnscheduledActivityOfferingIdsBySoc(String socId, ContextInfo context) throws DoesNotExistException, |
| 121 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 122 | 0 | return getNextDecorator().getUnscheduledActivityOfferingIdsBySoc(socId, context); |
| 123 | |
} |
| 124 | |
|
| 125 | |
@Override |
| 126 | |
public List<String> getUnpublishedCourseOfferingIdsBySoc(String socId, ContextInfo context) throws DoesNotExistException, |
| 127 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 128 | 0 | return getNextDecorator().getUnpublishedCourseOfferingIdsBySoc(socId, context); |
| 129 | |
} |
| 130 | |
|
| 131 | |
@Override |
| 132 | |
public List<String> getUnpublishedActivityOfferingIdsBySoc(String socId, ContextInfo context) throws DoesNotExistException, |
| 133 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 134 | 0 | return getNextDecorator().getUnpublishedActivityOfferingIdsBySoc(socId, context); |
| 135 | |
} |
| 136 | |
|
| 137 | |
@Override |
| 138 | |
public List<SocInfo> getSocsByIds(List<String> socIds, ContextInfo context) throws DoesNotExistException, |
| 139 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 140 | 0 | return getNextDecorator().getSocsByIds(socIds, context); |
| 141 | |
} |
| 142 | |
|
| 143 | |
@Override |
| 144 | |
public List<SocRolloverResultInfo> getSocRolloverResultsByIds(List<String> rolloverResultIds, ContextInfo context) throws |
| 145 | |
DoesNotExistException, |
| 146 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 147 | 0 | return getNextDecorator().getSocRolloverResultsByIds(rolloverResultIds, context); |
| 148 | |
} |
| 149 | |
|
| 150 | |
@Override |
| 151 | |
public SocRolloverResultItemInfo getSocRolloverResultItem(String socRolloverResultItemId, ContextInfo context) throws |
| 152 | |
DoesNotExistException, |
| 153 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 154 | 0 | return getNextDecorator().getSocRolloverResultItem(socRolloverResultItemId, context); |
| 155 | |
} |
| 156 | |
|
| 157 | |
@Override |
| 158 | |
public List<String> getSocRolloverResultIdsByTargetSoc(String targetSocId, ContextInfo context) throws DoesNotExistException, |
| 159 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 160 | 0 | return getNextDecorator().getSocRolloverResultIdsByTargetSoc(targetSocId, context); |
| 161 | |
} |
| 162 | |
|
| 163 | |
@Override |
| 164 | |
public List<String> getSocRolloverResultIdsBySourceSoc(String sourceSocId, ContextInfo context) throws DoesNotExistException, |
| 165 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 166 | 0 | return getNextDecorator().getSocRolloverResultIdsBySourceSoc(sourceSocId, context); |
| 167 | |
} |
| 168 | |
|
| 169 | |
@Override |
| 170 | |
public SocRolloverResultInfo getSocRolloverResult(String rolloverResultId, ContextInfo context) throws DoesNotExistException, |
| 171 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 172 | 0 | return getNextDecorator().getSocRolloverResult(rolloverResultId, context); |
| 173 | |
} |
| 174 | |
|
| 175 | |
@Override |
| 176 | |
public List<String> getSocIdsByType(String typeKey, ContextInfo context) throws DoesNotExistException, |
| 177 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 178 | 0 | return getNextDecorator().getSocIdsByType(typeKey, context); |
| 179 | |
} |
| 180 | |
|
| 181 | |
@Override |
| 182 | |
public List<String> getSocIdsByTermAndUnitsContentOwner(String termId, String unitsContentOwnerId, ContextInfo context) throws |
| 183 | |
DoesNotExistException, |
| 184 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 185 | 0 | return getNextDecorator().getSocIdsByTermAndUnitsContentOwner(termId, unitsContentOwnerId, context); |
| 186 | |
} |
| 187 | |
|
| 188 | |
@Override |
| 189 | |
public List<String> getSocIdsByTermAndSubjectArea(String termId, String subjectArea, ContextInfo context) throws |
| 190 | |
DoesNotExistException, |
| 191 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 192 | 0 | return getNextDecorator().getSocIdsByTermAndSubjectArea(termId, subjectArea, context); |
| 193 | |
} |
| 194 | |
|
| 195 | |
@Override |
| 196 | |
public List<String> getSocIdsByTerm(String termId, ContextInfo context) throws DoesNotExistException, |
| 197 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 198 | 0 | return getNextDecorator().getSocIdsByTerm(termId, context); |
| 199 | |
} |
| 200 | |
|
| 201 | |
@Override |
| 202 | |
public List<String> getSocIdsByCourseOffering(String courseOfferingId, ContextInfo context) throws DoesNotExistException, |
| 203 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 204 | 0 | return getNextDecorator().getSocIdsByCourseOffering(courseOfferingId, context); |
| 205 | |
} |
| 206 | |
|
| 207 | |
@Override |
| 208 | |
public SocInfo getSoc(String socId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, |
| 209 | |
MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 210 | 0 | return getNextDecorator().getSoc(socId, context); |
| 211 | |
} |
| 212 | |
|
| 213 | |
@Override |
| 214 | |
public List<SocRolloverResultItemInfo> getSocRolloverResultItemsByResultId(String rolloverResultId, ContextInfo context) throws |
| 215 | |
DoesNotExistException, |
| 216 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 217 | 0 | return getNextDecorator().getSocRolloverResultItemsByResultId(rolloverResultId, context); |
| 218 | |
} |
| 219 | |
|
| 220 | |
@Override |
| 221 | |
public List<SocRolloverResultItemInfo> getSocRolloverResultItemsByResultIdAndTargetCourseOfferingId(String socRolloverResultId, String targetCourseOfferingId, ContextInfo context) throws |
| 222 | |
DoesNotExistException, |
| 223 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 224 | 0 | return getNextDecorator().getSocRolloverResultItemsByResultIdAndTargetCourseOfferingId(socRolloverResultId, |
| 225 | |
targetCourseOfferingId, context); |
| 226 | |
} |
| 227 | |
|
| 228 | |
@Override |
| 229 | |
public List<SocRolloverResultItemInfo> getSocRolloverResultItemsByResultIdAndSourceCourseOfferingId(String socRolloverResultId, String sourceCourseOfferingId, ContextInfo context) throws |
| 230 | |
DoesNotExistException, |
| 231 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 232 | 0 | return getNextDecorator().getSocRolloverResultItemsByResultIdAndSourceCourseOfferingId(socRolloverResultId, |
| 233 | |
sourceCourseOfferingId, context); |
| 234 | |
} |
| 235 | |
|
| 236 | |
@Override |
| 237 | |
public List<String> getPublishedCourseOfferingIdsBySoc(String socId, ContextInfo context) throws DoesNotExistException, |
| 238 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 239 | 0 | return getNextDecorator().getPublishedCourseOfferingIdsBySoc(socId, context); |
| 240 | |
} |
| 241 | |
|
| 242 | |
@Override |
| 243 | |
public List<String> getCourseOfferingIdsWithUnscheduledFinalExamsBySoc(String socId, ContextInfo context) throws |
| 244 | |
DoesNotExistException, |
| 245 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 246 | 0 | return getNextDecorator().getCourseOfferingIdsWithUnscheduledFinalExamsBySoc(socId, context); |
| 247 | |
} |
| 248 | |
|
| 249 | |
@Override |
| 250 | |
public List<String> getCourseOfferingIdsBySoc(String socId, ContextInfo context) throws DoesNotExistException, |
| 251 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 252 | 0 | return getNextDecorator().getCourseOfferingIdsBySoc(socId, context); |
| 253 | |
} |
| 254 | |
|
| 255 | |
@Override |
| 256 | |
public StatusInfo deleteSocRolloverResultItem(String socRolloverResultItemId, ContextInfo context) throws |
| 257 | |
DoesNotExistException, |
| 258 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 259 | 0 | return getNextDecorator().deleteSocRolloverResultItem(socRolloverResultItemId, context); |
| 260 | |
} |
| 261 | |
|
| 262 | |
@Override |
| 263 | |
public StatusInfo deleteSocRolloverResult(String socRolloverResultId, ContextInfo context) throws DoesNotExistException, |
| 264 | |
DependentObjectsExistException, InvalidParameterException, MissingParameterException, OperationFailedException, |
| 265 | |
PermissionDeniedException { |
| 266 | 0 | return getNextDecorator().deleteSocRolloverResult(socRolloverResultId, context); |
| 267 | |
} |
| 268 | |
|
| 269 | |
@Override |
| 270 | |
public StatusInfo deleteSoc(String socId, ContextInfo context) throws DependentObjectsExistException, DoesNotExistException, |
| 271 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 272 | 0 | return getNextDecorator().deleteSoc(socId, context); |
| 273 | |
} |
| 274 | |
|
| 275 | |
@Override |
| 276 | |
public Integer deleteCourseOfferingsBySoc(String socId, ContextInfo context) throws DoesNotExistException, |
| 277 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 278 | 0 | return getNextDecorator().deleteCourseOfferingsBySoc(socId, context); |
| 279 | |
} |
| 280 | |
|
| 281 | |
@Override |
| 282 | |
public Integer createSocRolloverResultItems(String socRolloverResultId, String rolloverResultItemTypeKey, List<SocRolloverResultItemInfo> socRolloverResultItemInfos, ContextInfo context) throws |
| 283 | |
DoesNotExistException, |
| 284 | |
DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, |
| 285 | |
PermissionDeniedException, ReadOnlyException { |
| 286 | 0 | return getNextDecorator().createSocRolloverResultItems(socRolloverResultId, rolloverResultItemTypeKey, |
| 287 | |
socRolloverResultItemInfos, context); |
| 288 | |
} |
| 289 | |
|
| 290 | |
public SocRolloverResultItemInfo createSocRolloverResultItem(String socRolloverResultId, String socRolloverResultItemTypeKey, SocRolloverResultItemInfo socRolloverResultItemInfo, ContextInfo context) throws |
| 291 | |
DoesNotExistException, |
| 292 | |
DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, |
| 293 | |
PermissionDeniedException, ReadOnlyException { |
| 294 | 0 | return getNextDecorator().createSocRolloverResultItem(socRolloverResultId, socRolloverResultItemTypeKey, |
| 295 | |
socRolloverResultItemInfo, context); |
| 296 | |
} |
| 297 | |
|
| 298 | |
@Override |
| 299 | |
public SocRolloverResultInfo createSocRolloverResult(String socRolloverResultTypeKey, SocRolloverResultInfo socRolloverResultInfo, ContextInfo context) throws |
| 300 | |
DoesNotExistException, |
| 301 | |
DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, |
| 302 | |
PermissionDeniedException, ReadOnlyException { |
| 303 | 0 | return getNextDecorator().createSocRolloverResult(socRolloverResultTypeKey, socRolloverResultInfo, context); |
| 304 | |
} |
| 305 | |
|
| 306 | |
@Override |
| 307 | |
public SocInfo createSoc(String termId, String socTypeKey, SocInfo socInfo, ContextInfo context) throws DoesNotExistException, |
| 308 | |
DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, |
| 309 | |
PermissionDeniedException, ReadOnlyException { |
| 310 | 0 | return getNextDecorator().createSoc(termId, socTypeKey, socInfo, context); |
| 311 | |
} |
| 312 | |
|
| 313 | |
@Override |
| 314 | |
public List<SocRolloverResultItemInfo> getSocRolloverResultItemsByIds(List<String> rolloverResultItemIds, ContextInfo context) throws DoesNotExistException, |
| 315 | |
InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
| 316 | 0 | return getNextDecorator().getSocRolloverResultItemsByIds(rolloverResultItemIds, context); |
| 317 | |
} |
| 318 | |
|
| 319 | |
|
| 320 | |
} |