Coverage Report - org.kuali.student.r2.core.class1.enumerationmanagement.service.decorators.EnumerationManagementServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
EnumerationManagementServiceDecorator
0%
0/13
0%
0/2
1.222
 
 1  
 package org.kuali.student.r2.core.class1.enumerationmanagement.service.decorators;
 2  
 
 3  
 import java.util.Date;
 4  
 import java.util.List;
 5  
 
 6  
 import org.kuali.student.r2.common.dto.ContextInfo;
 7  
 import org.kuali.student.r2.common.dto.StatusInfo;
 8  
 import org.kuali.student.r2.common.dto.ValidationResultInfo;
 9  
 import org.kuali.student.r2.common.exceptions.AlreadyExistsException;
 10  
 import org.kuali.student.r2.common.exceptions.DataValidationErrorException;
 11  
 import org.kuali.student.r2.common.exceptions.DoesNotExistException;
 12  
 import org.kuali.student.r2.common.exceptions.InvalidParameterException;
 13  
 import org.kuali.student.r2.common.exceptions.MissingParameterException;
 14  
 import org.kuali.student.r2.common.exceptions.OperationFailedException;
 15  
 import org.kuali.student.r2.common.exceptions.PermissionDeniedException;
 16  
 import org.kuali.student.r2.common.exceptions.ReadOnlyException;
 17  
 import org.kuali.student.r2.common.exceptions.VersionMismatchException;
 18  
 import org.kuali.student.r2.core.enumerationmanagement.dto.EnumeratedValueInfo;
 19  
 import org.kuali.student.r2.core.enumerationmanagement.dto.EnumerationInfo;
 20  
 import org.kuali.student.r2.core.enumerationmanagement.service.EnumerationManagementService;
 21  
 
 22  0
 public class EnumerationManagementServiceDecorator implements EnumerationManagementService{
 23  
     
 24  
     private EnumerationManagementService nextDecorator;
 25  
 
 26  
     public EnumerationManagementService getNextDecorator() throws OperationFailedException {
 27  0
         if (null == nextDecorator) {
 28  0
             throw new OperationFailedException("Misconfigured application: nextDecorator is null");
 29  
         }
 30  
 
 31  0
         return nextDecorator;
 32  
     }
 33  
 
 34  
     public void setNextDecorator(EnumerationManagementService nextDecorator) {
 35  0
         this.nextDecorator = nextDecorator;
 36  0
     }
 37  
 
 38  
     @Override
 39  
     public List<EnumerationInfo> getEnumerations(ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 40  
         
 41  0
         return getNextDecorator().getEnumerations(contextInfo);
 42  
     }
 43  
 
 44  
     @Override
 45  
     public EnumerationInfo getEnumeration(String enumerationKey, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 46  
         
 47  0
         return getNextDecorator().getEnumeration(enumerationKey, contextInfo);
 48  
     }
 49  
 
 50  
     @Override
 51  
     public List<EnumeratedValueInfo> getEnumeratedValues(String enumerationKey, String contextTypeKey, String contextValue, Date contextDate, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 52  
         
 53  0
         return getNextDecorator().getEnumeratedValues(enumerationKey, contextTypeKey, contextValue, contextDate, contextInfo);
 54  
     }
 55  
 
 56  
     @Override
 57  
     public List<ValidationResultInfo> validateEnumeratedValue(String validationTypeKey, String enumerationKey, String code, EnumeratedValueInfo enumeratedValueInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 58  
 
 59  0
         return getNextDecorator().validateEnumeratedValue(validationTypeKey, enumerationKey, code, enumeratedValueInfo, contextInfo);
 60  
     }
 61  
 
 62  
     @Override
 63  
     public EnumeratedValueInfo updateEnumeratedValue(String enumerationKey, String code, EnumeratedValueInfo enumeratedValueInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
 64  
 
 65  0
         return getNextDecorator().updateEnumeratedValue(enumerationKey, code, enumeratedValueInfo, contextInfo);
 66  
     }
 67  
 
 68  
     @Override
 69  
     public StatusInfo deleteEnumeratedValue(String enumerationKey, String code, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 70  
 
 71  0
         return getNextDecorator().deleteEnumeratedValue(enumerationKey, code, contextInfo);
 72  
     }
 73  
 
 74  
     @Override
 75  
     public EnumeratedValueInfo addEnumeratedValue(String enumerationKey, String code, EnumeratedValueInfo enumeratedValueInfo, ContextInfo contextInfo) throws AlreadyExistsException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 76  
 
 77  0
         return getNextDecorator().addEnumeratedValue(enumerationKey, code, enumeratedValueInfo, contextInfo);
 78  
     }
 79  
 
 80  
 }