Coverage Report - org.kuali.student.r2.lum.course.service.CourseServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
CourseServiceDecorator
0%
0/22
0%
0/2
1.105
 
 1  
 package org.kuali.student.r2.lum.course.service;
 2  
 
 3  
 import java.util.Date;
 4  
 import java.util.List;
 5  
 
 6  
 import org.kuali.rice.core.api.criteria.QueryByCriteria;
 7  
 import org.kuali.student.common.exceptions.IllegalVersionSequencingException;
 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.AlreadyExistsException;
 12  
 import org.kuali.student.r2.common.exceptions.DataValidationErrorException;
 13  
 import org.kuali.student.r2.common.exceptions.DoesNotExistException;
 14  
 import org.kuali.student.r2.common.exceptions.InvalidParameterException;
 15  
 import org.kuali.student.r2.common.exceptions.MissingParameterException;
 16  
 import org.kuali.student.r2.common.exceptions.OperationFailedException;
 17  
 import org.kuali.student.r2.common.exceptions.PermissionDeniedException;
 18  
 import org.kuali.student.r2.common.exceptions.VersionMismatchException;
 19  
 import org.kuali.student.r2.core.statement.dto.StatementTreeViewInfo;
 20  
 import org.kuali.student.r2.lum.course.dto.ActivityInfo;
 21  
 import org.kuali.student.r2.lum.course.dto.CourseInfo;
 22  
 import org.kuali.student.r2.lum.course.dto.FormatInfo;
 23  
 import org.kuali.student.r2.lum.course.dto.LoDisplayInfo;
 24  
 
 25  0
 public class CourseServiceDecorator implements CourseService {
 26  
     
 27  
     private CourseService nextDecorator;
 28  
 
 29  
     public CourseService getNextDecorator() throws OperationFailedException {
 30  0
         if (null == nextDecorator) {
 31  0
             throw new OperationFailedException("Misconfigured application: nextDecorator is null");
 32  
         }
 33  0
         return nextDecorator;
 34  
     }
 35  
 
 36  
     @Override
 37  
     public List<ValidationResultInfo> validateCourseStatement(String courseId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException {
 38  0
         return getNextDecorator ().validateCourseStatement(courseId, statementTreeViewInfo, contextInfo);
 39  
     }
 40  
 
 41  
     @Override
 42  
     public List<ValidationResultInfo> validateCourse(String validationType, CourseInfo courseInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 43  0
         return getNextDecorator ().validateCourse(validationType, courseInfo, contextInfo);
 44  
     }
 45  
 
 46  
     @Override
 47  
     public StatementTreeViewInfo updateCourseStatement(String courseId, String statementId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DataValidationErrorException, VersionMismatchException {
 48  0
         return getNextDecorator ().updateCourseStatement(courseId, statementId, statementTreeViewInfo, contextInfo);
 49  
     }
 50  
 
 51  
     @Override
 52  
     public CourseInfo updateCourse(String courseId, CourseInfo courseInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException, PermissionDeniedException {
 53  0
         return getNextDecorator ().updateCourse(courseId, courseInfo, contextInfo);
 54  
     }
 55  
 
 56  
     @Override
 57  
     public StatusInfo setCurrentCourseVersion(String courseVersionId, Date currentVersionStart, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, IllegalVersionSequencingException, OperationFailedException, PermissionDeniedException {
 58  0
         return getNextDecorator ().setCurrentCourseVersion(courseVersionId, currentVersionStart, contextInfo);
 59  
     }
 60  
 
 61  
     @Override
 62  
     public List<CourseInfo> searchForCourses(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 63  0
         return getNextDecorator ().searchForCourses(criteria, contextInfo);
 64  
     }
 65  
 
 66  
     @Override
 67  
     public List<String> searchForCourseIds(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 68  0
         return getNextDecorator ().searchForCourseIds(criteria, contextInfo);
 69  
     }
 70  
 
 71  
     @Override
 72  
     public List<CourseInfo> getCoursesByIds(List<String> courseIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 73  0
         return getNextDecorator ().getCoursesByIds(courseIds, contextInfo);
 74  
     }
 75  
 
 76  
     @Override
 77  
     public List<StatementTreeViewInfo> getCourseStatements(String courseId, String nlUsageTypeKey, String language, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 78  0
         return getNextDecorator ().getCourseStatements(courseId, nlUsageTypeKey, language, contextInfo);
 79  
     }
 80  
 
 81  
     @Override
 82  
     public List<LoDisplayInfo> getCourseLearningObjectivesByCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 83  0
         return getNextDecorator ().getCourseLearningObjectivesByCourse(courseId, contextInfo);
 84  
     }
 85  
 
 86  
     @Override
 87  
     public List<FormatInfo> getCourseFormatsByCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 88  0
         return getNextDecorator ().getCourseFormatsByCourse(courseId, contextInfo);
 89  
     }
 90  
 
 91  
     @Override
 92  
     public List<ActivityInfo> getCourseActivitiesByCourseFormat(String formatId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 93  0
         return getNextDecorator ().getCourseActivitiesByCourseFormat(formatId, contextInfo);
 94  
     }
 95  
 
 96  
     @Override
 97  
     public CourseInfo getCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 98  0
         return getNextDecorator ().getCourse(courseId, contextInfo);
 99  
     }
 100  
 
 101  
     @Override
 102  
     public StatusInfo deleteCourseStatement(String courseId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 103  0
         return getNextDecorator ().deleteCourseStatement(courseId, statementTreeViewInfo, contextInfo);
 104  
     }
 105  
 
 106  
     @Override
 107  
     public StatusInfo deleteCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, DataValidationErrorException, AlreadyExistsException {
 108  0
         return getNextDecorator ().deleteCourse(courseId, contextInfo);
 109  
     }
 110  
 
 111  
     @Override
 112  
     public CourseInfo createNewCourseVersion(String courseId, String versionComment, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException {
 113  0
         return getNextDecorator ().createNewCourseVersion(courseId, versionComment, contextInfo);
 114  
     }
 115  
 
 116  
     @Override
 117  
     public StatementTreeViewInfo createCourseStatement(String courseId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DataValidationErrorException {
 118  0
         return getNextDecorator ().createCourseStatement(courseId, statementTreeViewInfo, contextInfo);
 119  
     }
 120  
 
 121  
     @Override
 122  
     public CourseInfo createCourse(CourseInfo courseInfo, ContextInfo contextInfo) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException {
 123  0
         return getNextDecorator ().createCourse(courseInfo, contextInfo);
 124  
     }
 125  
     
 126  
 }