Coverage Report - org.kuali.student.enrollment.lrr.service.LearningResultRecordServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
LearningResultRecordServiceDecorator
0%
0/22
0%
0/2
1.111
 
 1  
 package org.kuali.student.enrollment.lrr.service;
 2  
 
 3  
 import java.util.List;
 4  
 
 5  
 import org.kuali.student.enrollment.lrr.dto.LearningResultRecordInfo;
 6  
 import org.kuali.student.enrollment.lrr.dto.ResultSourceInfo;
 7  
 import org.kuali.student.r2.common.dto.ContextInfo;
 8  
 import org.kuali.student.r2.common.dto.StatusInfo;
 9  
 import org.kuali.student.r2.common.dto.ValidationResultInfo;
 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 LearningResultRecordServiceDecorator implements LearningResultRecordService
 21  
 {
 22  
         private LearningResultRecordService nextDecorator;
 23  
         
 24  
         public LearningResultRecordService getNextDecorator()
 25  
                         throws OperationFailedException {
 26  0
                 if (null == nextDecorator) {
 27  0
                         throw new OperationFailedException("Misconfigured application: nextDecorator is null");
 28  
                 }
 29  0
                 return nextDecorator;
 30  
         }
 31  
         public void setNextDecorator(LearningResultRecordService nextDecorator) {
 32  0
                 this.nextDecorator = nextDecorator;
 33  0
         }
 34  
         
 35  
         
 36  
         @Override
 37  
         public LearningResultRecordInfo getLearningResultRecord(
 38  
                         String learningResultRecordId, ContextInfo context)
 39  
                         throws DoesNotExistException, InvalidParameterException,
 40  
                         MissingParameterException, OperationFailedException,
 41  
                         PermissionDeniedException {
 42  0
                 return getNextDecorator().getLearningResultRecord(learningResultRecordId, context);
 43  
         }
 44  
 
 45  
         @Override
 46  
         public List<LearningResultRecordInfo> getLearningResultRecordsForLpr(
 47  
                         String lprId) throws DoesNotExistException,
 48  
                         InvalidParameterException, MissingParameterException,
 49  
                         OperationFailedException {
 50  0
                 return getNextDecorator().getLearningResultRecordsForLpr(lprId);
 51  
         }
 52  
 
 53  
         @Override
 54  
         public List<LearningResultRecordInfo> getLearningResultRecordsForLprIds(
 55  
                         List<String> lprIds, ContextInfo context)
 56  
                         throws DoesNotExistException, InvalidParameterException,
 57  
                         MissingParameterException, OperationFailedException {
 58  0
                 return getNextDecorator().getLearningResultRecordsForLprIds(lprIds, context);
 59  
         }
 60  
 
 61  
         @Override
 62  
         public List<LearningResultRecordInfo> getLearningResultRecordsBySourceId(
 63  
                         List<String> lprIds, ContextInfo context)
 64  
                         throws DoesNotExistException, InvalidParameterException,
 65  
                         MissingParameterException, OperationFailedException {
 66  0
                 return getNextDecorator().getLearningResultRecordsBySourceId(lprIds, context);
 67  
         }
 68  
 
 69  
         @Override
 70  
         public LearningResultRecordInfo createLearningResultRecord(
 71  
                         LearningResultRecordInfo learningResultRecord, ContextInfo context)
 72  
                         throws AlreadyExistsException, DataValidationErrorException,
 73  
                         InvalidParameterException, MissingParameterException,
 74  
                         OperationFailedException, PermissionDeniedException {
 75  0
                 return getNextDecorator().createLearningResultRecord(learningResultRecord, context);
 76  
         }
 77  
 
 78  
         @Override
 79  
         public LearningResultRecordInfo updateLearningResultRecord(
 80  
                         String learningResultRecordId,
 81  
                         LearningResultRecordInfo learningResultRecordInfo,
 82  
                         ContextInfo context) throws DataValidationErrorException,
 83  
                         DoesNotExistException, InvalidParameterException,
 84  
                         MissingParameterException, OperationFailedException,
 85  
                         PermissionDeniedException, VersionMismatchException {
 86  0
                 return getNextDecorator().updateLearningResultRecord(learningResultRecordId, learningResultRecordInfo, context);
 87  
         }
 88  
 
 89  
         @Override
 90  
         public StatusInfo deleteLearningResultRecord(String learningResultRecordId,
 91  
                         ContextInfo context) throws DoesNotExistException,
 92  
                         InvalidParameterException, MissingParameterException,
 93  
                         OperationFailedException, PermissionDeniedException {
 94  0
                 return getNextDecorator().deleteLearningResultRecord(learningResultRecordId, context);
 95  
         }
 96  
 
 97  
         @Override
 98  
         public List<ValidationResultInfo> validateLearningResultRecord(
 99  
                         String validationType,
 100  
                         LearningResultRecordInfo learningResultRecordInfo,
 101  
                         ContextInfo context) throws DoesNotExistException,
 102  
                         InvalidParameterException, MissingParameterException,
 103  
                         OperationFailedException {
 104  0
                 return getNextDecorator().validateLearningResultRecord(validationType, learningResultRecordInfo, context);
 105  
         }
 106  
 
 107  
         @Override
 108  
         public ResultSourceInfo getResultSource(String resultSourceId,
 109  
                         ContextInfo context) throws DoesNotExistException,
 110  
                         InvalidParameterException, MissingParameterException,
 111  
                         OperationFailedException, PermissionDeniedException {
 112  0
                 return getNextDecorator().getResultSource(resultSourceId, context);
 113  
         }
 114  
 
 115  
         @Override
 116  
         public List<ResultSourceInfo> getResultSourcesByIds(
 117  
                         List<String> resultSourceIds, ContextInfo context)
 118  
                         throws DoesNotExistException, InvalidParameterException,
 119  
                         MissingParameterException, OperationFailedException,
 120  
                         PermissionDeniedException {
 121  0
                 return getNextDecorator().getResultSourcesByIds(resultSourceIds, context);
 122  
         }
 123  
 
 124  
         @Override
 125  
         public List<ResultSourceInfo> getResultSourcesByType(
 126  
                         String resultSourceTypeKey, ContextInfo context)
 127  
                         throws DoesNotExistException, InvalidParameterException,
 128  
                         MissingParameterException, OperationFailedException,
 129  
                         PermissionDeniedException {
 130  0
                 return getNextDecorator().getResultSourcesByType(resultSourceTypeKey, context);
 131  
         }
 132  
 
 133  
         @Override
 134  
         public ResultSourceInfo createResultSource(ResultSourceInfo sourceInfo,
 135  
                         ContextInfo context) throws AlreadyExistsException,
 136  
                         DataValidationErrorException, InvalidParameterException,
 137  
                         MissingParameterException, OperationFailedException,
 138  
                         PermissionDeniedException {
 139  0
                 return getNextDecorator().createResultSource(sourceInfo, context);
 140  
         }
 141  
 
 142  
         @Override
 143  
         public ResultSourceInfo updateResultSource(String resultSourceId,
 144  
                         ResultSourceInfo resultSourceInfo, ContextInfo context)
 145  
                         throws DataValidationErrorException, DoesNotExistException,
 146  
                         InvalidParameterException, MissingParameterException,
 147  
                         OperationFailedException, PermissionDeniedException,
 148  
                         VersionMismatchException {
 149  0
                 return getNextDecorator().updateResultSource(resultSourceId, resultSourceInfo, context);
 150  
         }
 151  
 
 152  
         @Override
 153  
         public StatusInfo deleteResultSource(String resultSourceId,
 154  
                         ContextInfo context) throws DoesNotExistException,
 155  
                         InvalidParameterException, MissingParameterException,
 156  
                         OperationFailedException, PermissionDeniedException {
 157  0
                 return getNextDecorator().deleteResultSource(resultSourceId, context);
 158  
         }
 159  
 
 160  
         @Override
 161  
         public List<ValidationResultInfo> validateResultSource(
 162  
                         String validationType, ResultSourceInfo resultSourceInfo,
 163  
                         ContextInfo context) throws DoesNotExistException,
 164  
                         InvalidParameterException, MissingParameterException,
 165  
                         OperationFailedException {
 166  0
                 return getNextDecorator().validateResultSource(validationType, resultSourceInfo, context);
 167  
         }
 168  
     @Override
 169  
     public List<LearningResultRecordInfo> getLearningResultRecordsForLprAndType(
 170  
             String lprId, String lrrType) throws DoesNotExistException, 
 171  
             InvalidParameterException, MissingParameterException,
 172  
             OperationFailedException {
 173  0
         return getNextDecorator().getLearningResultRecordsForLprAndType(lprId, lrrType) ;
 174  
     }
 175  
 
 176  
 }