Coverage Report - org.kuali.student.enrollment.grading.service.GradingServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
GradingServiceDecorator
0%
0/27
0%
0/2
1.087
 
 1  
 package org.kuali.student.enrollment.grading.service;
 2  
 
 3  
 import java.util.List;
 4  
 
 5  
 import org.kuali.student.enrollment.grading.dto.GradeRosterEntryInfo;
 6  
 import org.kuali.student.enrollment.grading.dto.GradeRosterInfo;
 7  
 import org.kuali.student.enrollment.grading.dto.GradeValuesGroupInfo;
 8  
 import org.kuali.student.r2.common.dto.ContextInfo;
 9  
 import org.kuali.student.r2.common.dto.StatusInfo;
 10  
 import org.kuali.student.r2.common.dto.ValidationResultInfo;
 11  
 import org.kuali.student.r2.common.exceptions.*;
 12  
 import org.kuali.student.r2.core.type.dto.TypeInfo;
 13  
 
 14  0
 public abstract class GradingServiceDecorator implements GradingService {
 15  
     private GradingService nextDecorator;
 16  
 
 17  
     public GradingService getNextDecorator() throws OperationFailedException {
 18  0
         if (null == nextDecorator) {
 19  0
             throw new OperationFailedException("Misconfigured application: nextDecorator is null");
 20  
         }
 21  0
         return nextDecorator;
 22  
     }
 23  
 
 24  
     public void setNextDecorator(GradingService nextDecorator) {
 25  0
         this.nextDecorator = nextDecorator;
 26  0
     }
 27  
 
 28  
     @Override
 29  
     public TypeInfo getGradeRosterType(String gradeRosterTypeKey, ContextInfo context) throws DoesNotExistException,
 30  
             InvalidParameterException, MissingParameterException, OperationFailedException {
 31  0
         return getNextDecorator().getGradeRosterType(gradeRosterTypeKey, context);
 32  
     }
 33  
 
 34  
     @Override
 35  
     public GradeRosterInfo getGradeRoster(String gradeRosterId, ContextInfo context) throws DoesNotExistException,
 36  
             InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 37  0
         return getNextDecorator().getGradeRoster(gradeRosterId, context);
 38  
     }
 39  
 
 40  
     @Override
 41  
     public List<GradeRosterInfo> getGradeRostersByGraderAndTerm(String graderId, String termId, ContextInfo context)
 42  
             throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 43  
             OperationFailedException, PermissionDeniedException {
 44  0
         return getNextDecorator().getGradeRostersByGraderAndTerm(graderId, termId, context);
 45  
     }
 46  
 
 47  
     @Override
 48  
     public List<GradeRosterInfo> getFinalGradeRostersForCourseOffering(String courseOfferingId, ContextInfo context)
 49  
             throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 50  
             OperationFailedException, PermissionDeniedException {
 51  0
         return getNextDecorator().getGradeRostersForActivityOffering(courseOfferingId, context);
 52  
     }
 53  
 
 54  
     @Override
 55  
     public List<GradeRosterInfo> getFinalGradeRostersForActivityOffering(String activityOfferingId, ContextInfo context)
 56  
             throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 57  
             OperationFailedException, PermissionDeniedException {
 58  0
         return getNextDecorator().getFinalGradeRostersForActivityOffering(activityOfferingId, context);
 59  
     }
 60  
 
 61  
     @Override
 62  
     public List<GradeRosterInfo> getGradeRostersForActivityOffering(String activityOfferingId, ContextInfo context)
 63  
             throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 64  
             OperationFailedException, PermissionDeniedException {
 65  0
         return getNextDecorator().getGradeRostersForActivityOffering(activityOfferingId, context);
 66  
     }
 67  
 
 68  
     @Override
 69  
     public GradeRosterInfo buildInterimGradeRosterByType(String courseOfferingId, List<String> activityOfferingIds,
 70  
             String rosterTypeKey, ContextInfo context) throws AlreadyExistsException, InvalidParameterException,
 71  
             MissingParameterException, OperationFailedException, PermissionDeniedException {
 72  0
         return getNextDecorator().buildInterimGradeRosterByType(courseOfferingId, activityOfferingIds,
 73  
                 rosterTypeKey, context);
 74  
     }
 75  
 
 76  
     @Override
 77  
     public GradeRosterInfo updateInterimGradeRoster(GradeRosterInfo gradeRoster, ContextInfo context)
 78  
             throws DataValidationErrorException, DoesNotExistException, InvalidParameterException,
 79  
             MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException {
 80  0
         return getNextDecorator().updateInterimGradeRoster(gradeRoster, context);
 81  
     }
 82  
 
 83  
     @Override
 84  
     public StatusInfo deleteInterimGradeRoster(String gradeRosterId, ContextInfo context) throws DoesNotExistException,
 85  
             InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 86  0
         return getNextDecorator().deleteInterimGradeRoster(gradeRosterId, context);
 87  
     }
 88  
 
 89  
     @Override
 90  
     public GradeRosterInfo updateFinalGradeRosterState(String gradeRosterId, String stateKey, ContextInfo context)
 91  
             throws DataValidationErrorException, DoesNotExistException, InvalidParameterException,
 92  
             MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException {
 93  0
         return getNextDecorator().updateFinalGradeRosterState(gradeRosterId, stateKey, context);
 94  
 
 95  
     }
 96  
 
 97  
     @Override
 98  
     public List<ValidationResultInfo> validateGradeRoster(GradeRosterInfo gradeRoster, ContextInfo context)
 99  
             throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 100  
             OperationFailedException {
 101  0
         return getNextDecorator().validateGradeRoster(gradeRoster, context);
 102  
     }
 103  
 
 104  
     @Override
 105  
     public GradeRosterEntryInfo getGradeRosterEntry(String gradeRosterEntryId, ContextInfo context)
 106  
             throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 107  
             OperationFailedException, PermissionDeniedException {
 108  0
         return getNextDecorator().getGradeRosterEntry(gradeRosterEntryId, context);
 109  
     }
 110  
 
 111  
     @Override
 112  
     public List<GradeRosterEntryInfo> getGradeRosterEntriesByIds(List<String> gradeRosterEntryIds,
 113  
             ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 114  
             OperationFailedException, PermissionDeniedException {
 115  0
         return getNextDecorator().getGradeRosterEntriesByIds(gradeRosterEntryIds, context);
 116  
     }
 117  
 
 118  
     @Override
 119  
     public List<GradeRosterEntryInfo> getGradeRosterEntriesByRosterId(String gradeRosterId, ContextInfo context)
 120  
             throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 121  
             OperationFailedException, PermissionDeniedException {
 122  0
         return getNextDecorator().getGradeRosterEntriesByRosterId(gradeRosterId, context);
 123  
     }
 124  
 
 125  
     @Override
 126  
     public GradeRosterEntryInfo getFinalGradeForStudentInCourseOffering(String studentId, String courseOfferingId,
 127  
             ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 128  
             OperationFailedException, PermissionDeniedException, DisabledIdentifierException {
 129  0
         return getNextDecorator().getFinalGradeForStudentInCourseOffering(studentId, courseOfferingId, context);
 130  
     }
 131  
 
 132  
     @Override
 133  
     public GradeRosterEntryInfo addEntrytoInterimRoster(GradeRosterEntryInfo gradeRosterEntry, String gradeRosterId,
 134  
             ContextInfo context) throws AlreadyExistsException, InvalidParameterException, MissingParameterException,
 135  
             OperationFailedException, PermissionDeniedException {
 136  
 
 137  0
         return getNextDecorator().addEntrytoInterimRoster(gradeRosterEntry, gradeRosterId, context);
 138  
     }
 139  
 
 140  
     @Override
 141  
     public StatusInfo removeEntryFromInterimRoster(String gradeRosterEntryId, String gradeRosterId, ContextInfo context)
 142  
             throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 143  
             OperationFailedException, PermissionDeniedException {
 144  0
         return getNextDecorator().removeEntryFromInterimRoster(gradeRosterEntryId, gradeRosterId, context);
 145  
     }
 146  
 
 147  
     @Override
 148  
     public boolean updateGrade(String gradeRosterEntryId, String assignedGradeId, ContextInfo context)
 149  
             throws DataValidationErrorException, DoesNotExistException, InvalidParameterException,
 150  
             MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException {
 151  
 
 152  0
         return getNextDecorator().updateGrade(gradeRosterEntryId, assignedGradeId, context);
 153  
     }
 154  
 
 155  
     @Override
 156  
     public boolean updateCredit(String gradeRosterEntryId, String creditId, ContextInfo context)
 157  
             throws DataValidationErrorException, DoesNotExistException, InvalidParameterException,
 158  
             MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException {
 159  0
         return getNextDecorator().updateCredit(gradeRosterEntryId, creditId, context);
 160  
     }
 161  
 
 162  
         @Override
 163  
         public List<GradeValuesGroupInfo> getGradeGroupsByKeyList(
 164  
                         List<String> gradeGroupKeyList, ContextInfo context)
 165  
                         throws DoesNotExistException, InvalidParameterException,
 166  
                         MissingParameterException, OperationFailedException,
 167  
                         PermissionDeniedException {
 168  0
                 return getNextDecorator().getGradeGroupsByKeyList(gradeGroupKeyList, context);
 169  
         }
 170  
 
 171  
         @Override
 172  
         public boolean updateNumberGrade(String gradeRosterEntryId,
 173  
                         String numberGradeValue, ContextInfo context)
 174  
                         throws DataValidationErrorException, DoesNotExistException,
 175  
                         InvalidParameterException, MissingParameterException,
 176  
                         OperationFailedException, PermissionDeniedException,
 177  
                         VersionMismatchException {
 178  0
                 return getNextDecorator().updateNumberGrade(gradeRosterEntryId, numberGradeValue, context);
 179  
         }
 180  
 
 181  
 }