Coverage Report - org.kuali.student.enrollment.academicrecord.service.AcademicRecordServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
AcademicRecordServiceDecorator
0%
0/15
0%
0/2
1.182
 
 1  
 package org.kuali.student.enrollment.academicrecord.service;
 2  
 
 3  
 import java.util.List;
 4  
 
 5  
 import org.kuali.student.enrollment.academicrecord.dto.StudentCourseRecordInfo;
 6  
 import org.kuali.student.enrollment.academicrecord.dto.GPAInfo;
 7  
 
 8  
 import org.kuali.student.r2.common.dto.ContextInfo;
 9  
 
 10  
 import org.kuali.student.r2.common.exceptions.AlreadyExistsException;
 11  
 import org.kuali.student.r2.common.exceptions.DataValidationErrorException;
 12  
 import org.kuali.student.r2.common.exceptions.DoesNotExistException;
 13  
 import org.kuali.student.r2.common.exceptions.InvalidParameterException;
 14  
 import org.kuali.student.r2.common.exceptions.MissingParameterException;
 15  
 import org.kuali.student.r2.common.exceptions.OperationFailedException;
 16  
 import org.kuali.student.r2.common.exceptions.PermissionDeniedException;
 17  
 import org.kuali.student.r2.common.exceptions.VersionMismatchException;
 18  
 
 19  
 
 20  0
 public abstract class AcademicRecordServiceDecorator 
 21  
     implements AcademicRecordService {
 22  
 
 23  
     private AcademicRecordService nextDecorator;        
 24  
 
 25  
     public AcademicRecordService getNextDecorator()
 26  
         throws OperationFailedException {
 27  
 
 28  0
         if (null == nextDecorator) {
 29  0
             throw new OperationFailedException("Misconfigured application: nextDecorator is null");
 30  
         }
 31  
 
 32  0
         return nextDecorator;
 33  
     }
 34  
 
 35  
     public void setNextDecorator(AcademicRecordService nextDecorator) {
 36  0
         this.nextDecorator = nextDecorator;
 37  0
     }
 38  
 
 39  
     @Override
 40  
     public List<StudentCourseRecordInfo> getAttemptedCourseRecordsForTerm(String personId, String termId, ContextInfo context) 
 41  
         throws DoesNotExistException, InvalidParameterException, 
 42  
                MissingParameterException, OperationFailedException {
 43  
 
 44  0
         return getNextDecorator().getAttemptedCourseRecordsForTerm(personId, termId, context);
 45  
     }
 46  
 
 47  
     @Override
 48  
     public List<StudentCourseRecordInfo> getCompletedCourseRecords(String personId, ContextInfo context) 
 49  
         throws DoesNotExistException, InvalidParameterException, 
 50  
                MissingParameterException, OperationFailedException {
 51  
 
 52  0
         return getNextDecorator().getCompletedCourseRecords(personId, context);
 53  
     }
 54  
 
 55  
     @Override
 56  
     public List<StudentCourseRecordInfo> getCompletedCourseRecordsForTerm(String personId, String termId, ContextInfo context) 
 57  
         throws DoesNotExistException, InvalidParameterException, 
 58  
                MissingParameterException, OperationFailedException {
 59  
 
 60  0
         return getNextDecorator().getCompletedCourseRecordsForTerm(personId, termId, context);
 61  
     }
 62  
 
 63  
     @Override
 64  
     public GPAInfo getGPAForTerm(String personId, String termId, String calculationTypeKey, ContextInfo context) 
 65  
          throws DoesNotExistException, InvalidParameterException, 
 66  
                 MissingParameterException, OperationFailedException {
 67  
 
 68  0
         return getNextDecorator().getGPAForTerm(personId, termId, calculationTypeKey, context);
 69  
     }
 70  
 
 71  
     @Override
 72  
     public GPAInfo getGPAForAcademicCalendar(String personId, String academicCalendarKey, String calculationTypeKey, ContextInfo context) 
 73  
         throws DoesNotExistException, InvalidParameterException, 
 74  
                MissingParameterException, OperationFailedException {
 75  
 
 76  0
         return getNextDecorator().getGPAForAcademicCalendar(personId, academicCalendarKey, calculationTypeKey, context);
 77  
     }
 78  
 
 79  
     @Override
 80  
     public GPAInfo getCumulativeGPA(String personId, String calculationTypeKey, ContextInfo context) 
 81  
         throws DoesNotExistException, InvalidParameterException, 
 82  
                MissingParameterException, OperationFailedException {
 83  
 
 84  0
         return getNextDecorator().getCumulativeGPA(personId, calculationTypeKey, context);
 85  
     }
 86  
 
 87  
     @Override
 88  
     public String getEarnedCreditsForTerm(String personId, String termId, String calculationTypeKey, ContextInfo context) 
 89  
         throws DoesNotExistException, InvalidParameterException, 
 90  
                MissingParameterException, OperationFailedException {
 91  
 
 92  0
         return getNextDecorator().getEarnedCreditsForTerm(personId, termId, calculationTypeKey, context);
 93  
     }
 94  
 
 95  
     @Override
 96  
     public String getEarnedCreditsForAcademicCalendar(String personId, String academicCalendarKey, String calculationTypeKey, ContextInfo context) 
 97  
         throws DoesNotExistException, InvalidParameterException, 
 98  
                MissingParameterException, OperationFailedException {
 99  
 
 100  0
         return getNextDecorator().getEarnedCreditsForAcademicCalendar(personId, academicCalendarKey, calculationTypeKey, context);
 101  
     }
 102  
 
 103  
     @Override
 104  
     public String getEarnedCredits(String personId, String calculationTypeKey, ContextInfo context) 
 105  
         throws DoesNotExistException, InvalidParameterException, 
 106  
                MissingParameterException, OperationFailedException {
 107  
 
 108  0
         return getNextDecorator().getEarnedCredits(personId, calculationTypeKey, context);
 109  
     }
 110  
 }