Coverage Report - org.kuali.student.r2.core.enumerationmanagement.service.EnumerationManagementServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
EnumerationManagementServiceDecorator
0%
0/11
N/A
1
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.r2.core.enumerationmanagement.service;
 17  
 
 18  
 import org.kuali.student.r2.common.dto.ContextInfo;
 19  
 import org.kuali.student.r2.common.dto.StatusInfo;
 20  
 import org.kuali.student.r2.common.dto.ValidationResultInfo;
 21  
 import org.kuali.student.r2.common.exceptions.AlreadyExistsException;
 22  
 import org.kuali.student.r2.common.exceptions.DataValidationErrorException;
 23  
 import org.kuali.student.r2.common.exceptions.DoesNotExistException;
 24  
 import org.kuali.student.r2.common.exceptions.InvalidParameterException;
 25  
 import org.kuali.student.r2.common.exceptions.MissingParameterException;
 26  
 import org.kuali.student.r2.common.exceptions.OperationFailedException;
 27  
 import org.kuali.student.r2.common.exceptions.PermissionDeniedException;
 28  
 import org.kuali.student.r2.common.exceptions.ReadOnlyException;
 29  
 import org.kuali.student.r2.common.exceptions.VersionMismatchException;
 30  
 import org.kuali.student.r2.core.enumerationmanagement.dto.EnumeratedValueInfo;
 31  
 import org.kuali.student.r2.core.enumerationmanagement.dto.EnumerationInfo;
 32  
 
 33  
 import java.util.Date;
 34  
 import java.util.List;
 35  
 
 36  
 /**
 37  
  * @Version 2.0
 38  
  * @Author Sri komandur@uw.edu
 39  
  */
 40  0
 public class EnumerationManagementServiceDecorator implements EnumerationManagementService {
 41  
 
 42  
     private EnumerationManagementService nextDecorator;
 43  
 
 44  
     public EnumerationManagementService getNextDecorator() {
 45  0
         return nextDecorator;
 46  
     }
 47  
 
 48  
     public void setNextDecorator(EnumerationManagementService nextDecorator) {
 49  0
         this.nextDecorator = nextDecorator;
 50  0
     }
 51  
 
 52  
     @Override
 53  
     public List<EnumerationInfo> getEnumerations(ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 54  0
         return getNextDecorator().getEnumerations(contextInfo);
 55  
     }
 56  
 
 57  
     @Override
 58  
     public EnumerationInfo getEnumeration(String enumerationKey, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 59  0
         return getNextDecorator().getEnumeration(enumerationKey, contextInfo);
 60  
     }
 61  
 
 62  
     @Override
 63  
     public List<EnumeratedValueInfo> getEnumeratedValues(String enumerationKey, String contextTypeKey, String contextValue, Date contextDate, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 64  0
         return getNextDecorator().getEnumeratedValues(enumerationKey, contextTypeKey, contextValue, contextDate, contextInfo);
 65  
     }
 66  
 
 67  
     @Override
 68  
     public List<ValidationResultInfo> validateEnumeratedValue(String validationTypeKey, String enumerationKey, String code, EnumeratedValueInfo enumeratedValueInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 69  0
         return getNextDecorator().validateEnumeratedValue(validationTypeKey, enumerationKey, code, enumeratedValueInfo, contextInfo);
 70  
     }
 71  
 
 72  
     @Override
 73  
     public EnumeratedValueInfo updateEnumeratedValue(String enumerationKey, String code, EnumeratedValueInfo enumeratedValueInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
 74  0
         return getNextDecorator().updateEnumeratedValue(enumerationKey, code, enumeratedValueInfo, contextInfo);
 75  
     }
 76  
 
 77  
     @Override
 78  
     public StatusInfo deleteEnumeratedValue(String enumerationKey, String code, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 79  0
         return getNextDecorator().deleteEnumeratedValue(enumerationKey, code, contextInfo);
 80  
     }
 81  
 
 82  
     @Override
 83  
     public EnumeratedValueInfo addEnumeratedValue(String enumerationKey, String code, EnumeratedValueInfo enumeratedValueInfo, ContextInfo contextInfo) throws AlreadyExistsException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 84  0
         return getNextDecorator().addEnumeratedValue(enumerationKey, code, enumeratedValueInfo, contextInfo);
 85  
     }
 86  
 }