Coverage Report - org.kuali.student.r2.core.process.service.ProcessServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
ProcessServiceDecorator
0%
0/50
0%
0/2
1.043
 
 1  
 package org.kuali.student.r2.core.process.service;
 2  
 
 3  
 import org.kuali.rice.core.api.criteria.QueryByCriteria;
 4  
 import org.kuali.student.r2.common.datadictionary.dto.DictionaryEntryInfo;
 5  
 import org.kuali.student.r2.common.dto.ContextInfo;
 6  
 import org.kuali.student.r2.common.dto.StatusInfo;
 7  
 import org.kuali.student.r2.common.dto.ValidationResultInfo;
 8  
 import org.kuali.student.r2.common.exceptions.AlreadyExistsException;
 9  
 import org.kuali.student.r2.common.exceptions.DependentObjectsExistException;
 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.process.dto.CheckInfo;
 19  
 import org.kuali.student.r2.core.process.dto.InstructionInfo;
 20  
 import org.kuali.student.r2.core.process.dto.ProcessCategoryInfo;
 21  
 import org.kuali.student.r2.core.process.dto.ProcessInfo;
 22  
 
 23  
 import java.util.List;
 24  
 
 25  0
 public abstract class ProcessServiceDecorator implements ProcessService {
 26  
     private ProcessService nextDecorator;
 27  
 
 28  
     public ProcessService getNextDecorator() throws OperationFailedException {
 29  0
         if (null == nextDecorator) {
 30  0
             throw new OperationFailedException("Misconfigured application: nextDecorator is null");
 31  
         }
 32  0
         return nextDecorator;
 33  
     }
 34  
 
 35  
     public void setNextDecorator(ProcessService nextDecorator) {
 36  0
         this.nextDecorator = nextDecorator;
 37  0
     }
 38  
 
 39  
     @Override
 40  
     public ProcessCategoryInfo getProcessCategory(String processCategoryId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 41  0
         return getNextDecorator().getProcessCategory(processCategoryId, contextInfo);
 42  
     }
 43  
 
 44  
     @Override
 45  
     public List<ProcessCategoryInfo> getProcessCategoriesByIds(List<String> processCategoryIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 46  0
         return getNextDecorator().getProcessCategoriesByIds(processCategoryIds, contextInfo);
 47  
     }
 48  
 
 49  
     @Override
 50  
     public List<String> getProcessCategoryIdsByType(String processTypeKey, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 51  0
         return getNextDecorator().getProcessCategoryIdsByType(processTypeKey, contextInfo);
 52  
     }
 53  
 
 54  
     @Override
 55  
     public List<ProcessCategoryInfo> getProcessCategoriesForProcess(String processKey, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 56  0
         return getNextDecorator().getProcessCategoriesForProcess(processKey, contextInfo);
 57  
     }
 58  
 
 59  
     @Override
 60  
     public List<String> searchForProcessCategoryIds(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 61  0
         return getNextDecorator().searchForProcessCategoryIds(criteria, contextInfo);
 62  
     }
 63  
 
 64  
     @Override
 65  
     public List<ProcessCategoryInfo> searchForProcessCategories(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 66  0
         return getNextDecorator().searchForProcessCategories(criteria, contextInfo);
 67  
     }
 68  
 
 69  
     @Override
 70  
     public List<ValidationResultInfo> validateProcessCategory(String validationTypeKey, String processCategoryTypeKey, ProcessCategoryInfo processCategoryInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 71  0
         return getNextDecorator().validateProcessCategory(validationTypeKey, processCategoryTypeKey, processCategoryInfo, contextInfo);
 72  
     }
 73  
 
 74  
     @Override
 75  
     public ProcessCategoryInfo createProcessCategory(String processCategoryTypeKey, ProcessCategoryInfo processCategoryInfo, ContextInfo contextInfo) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 76  0
         return getNextDecorator().createProcessCategory(processCategoryTypeKey, processCategoryInfo, contextInfo);
 77  
     }
 78  
 
 79  
     @Override
 80  
     public ProcessCategoryInfo updateProcessCategory(String processCategoryId, ProcessCategoryInfo processInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
 81  0
         return getNextDecorator().updateProcessCategory(processCategoryId, processInfo, contextInfo);
 82  
     }
 83  
 
 84  
     @Override
 85  
     public StatusInfo deleteProcessCategory(String processCategoryId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 86  0
         return getNextDecorator().deleteProcessCategory(processCategoryId, contextInfo);
 87  
     }
 88  
 
 89  
     @Override
 90  
     public StatusInfo addProcessToProcessCategory(String processKey, String processCategoryId, ContextInfo contextInfo) throws AlreadyExistsException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 91  0
         return getNextDecorator().addProcessToProcessCategory(processKey, processCategoryId, contextInfo);
 92  
     }
 93  
 
 94  
     @Override
 95  
     public StatusInfo removeProcessFromProcessCategory(String processKey, String processCategoryId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 96  0
         return getNextDecorator().removeProcessFromProcessCategory(processKey, processCategoryId, contextInfo);
 97  
     }
 98  
 
 99  
     @Override
 100  
     public ProcessInfo getProcess(String processKey, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 101  0
         return getNextDecorator().getProcess(processKey, contextInfo);
 102  
     }
 103  
 
 104  
     @Override
 105  
     public List<ProcessInfo> getProcessesByKeys(List<String> processKeys, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 106  0
         return getNextDecorator().getProcessesByKeys(processKeys, contextInfo);
 107  
     }
 108  
 
 109  
     @Override
 110  
     public List<String> getProcessKeysByType(String processTypeKey, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 111  0
         return getNextDecorator().getProcessKeysByType(processTypeKey, contextInfo);
 112  
     }
 113  
 
 114  
     @Override
 115  
     public List<ProcessInfo> getProcessesForProcessCategory(String processCategoryId, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 116  0
         return getNextDecorator().getProcessesForProcessCategory(processCategoryId, contextInfo);
 117  
     }
 118  
 
 119  
     @Override
 120  
     public List<String> searchForProcessKeys(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 121  0
         return getNextDecorator().searchForProcessKeys(criteria, contextInfo);
 122  
     }
 123  
 
 124  
     @Override
 125  
     public List<ProcessInfo> searchForProcesss(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 126  0
         return getNextDecorator().searchForProcesss(criteria, contextInfo);
 127  
     }
 128  
 
 129  
     @Override
 130  
     public List<ValidationResultInfo> validateProcess(String validationTypeKey, String processTypeKey, ProcessInfo processInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 131  0
         return getNextDecorator().validateProcess(validationTypeKey, processTypeKey, processInfo, contextInfo);
 132  
     }
 133  
 
 134  
     @Override
 135  
     public ProcessInfo createProcess(String processKey, String processTypeKey, ProcessInfo processInfo, ContextInfo contextInfo) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 136  0
         return getNextDecorator().createProcess(processKey, processTypeKey, processInfo, contextInfo);
 137  
     }
 138  
 
 139  
     @Override
 140  
     public ProcessInfo updateProcess(String processKey, ProcessInfo processInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
 141  0
         return getNextDecorator().updateProcess(processKey, processInfo, contextInfo);
 142  
     }
 143  
 
 144  
     @Override
 145  
     public StatusInfo deleteProcess(String processKey, ContextInfo contextInfo) throws DependentObjectsExistException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 146  0
         return getNextDecorator().deleteProcess(processKey, contextInfo);
 147  
     }
 148  
 
 149  
     @Override
 150  
     public CheckInfo getCheck(String checkId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 151  0
         return getNextDecorator().getCheck(checkId, contextInfo);
 152  
     }
 153  
 
 154  
     @Override
 155  
     public List<CheckInfo> getChecksByIds(List<String> checkIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 156  0
         return getNextDecorator().getChecksByIds(checkIds, contextInfo);
 157  
     }
 158  
 
 159  
     @Override
 160  
     public List<String> getCheckKeysByType(String checkTypeKey, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 161  0
         return getNextDecorator().getCheckKeysByType(checkTypeKey, contextInfo);
 162  
     }
 163  
 
 164  
     @Override
 165  
     public List<String> searchForCheckKeys(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 166  0
         return getNextDecorator().searchForCheckKeys(criteria, contextInfo);
 167  
     }
 168  
 
 169  
     @Override
 170  
     public List<CheckInfo> searchForChecks(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 171  0
         return getNextDecorator().searchForChecks(criteria, contextInfo);
 172  
     }
 173  
 
 174  
     @Override
 175  
     public List<ValidationResultInfo> validateCheck(String validationTypeKey, String checkTypeKey, CheckInfo checkInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 176  0
         return getNextDecorator().validateCheck(validationTypeKey, checkTypeKey, checkInfo, contextInfo);
 177  
     }
 178  
 
 179  
     @Override
 180  
     public CheckInfo createCheck(String checkTypeKey, CheckInfo checkInfo, ContextInfo contextInfo) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 181  0
         return getNextDecorator().createCheck(checkTypeKey, checkInfo, contextInfo);
 182  
     }
 183  
 
 184  
     @Override
 185  
     public CheckInfo updateCheck(String checkId, CheckInfo checkInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
 186  0
         return getNextDecorator().updateCheck(checkId, checkInfo, contextInfo);
 187  
     }
 188  
 
 189  
     @Override
 190  
     public StatusInfo deleteCheck(String checkId, ContextInfo contextInfo) throws DependentObjectsExistException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 191  0
         return getNextDecorator().deleteCheck(checkId, contextInfo);
 192  
     }
 193  
 
 194  
     @Override
 195  
     public InstructionInfo getInstruction(String instructionId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 196  0
         return getNextDecorator().getInstruction(instructionId, contextInfo);
 197  
     }
 198  
 
 199  
     @Override
 200  
     public List<InstructionInfo> getInstructionsByIds(List<String> instructionIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 201  0
         return getNextDecorator().getInstructionsByIds(instructionIds, contextInfo);
 202  
     }
 203  
 
 204  
     @Override
 205  
     public List<String> getInstructionIdsByType(String instructionTypeKey, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 206  0
         return getNextDecorator().getInstructionIdsByType(instructionTypeKey, contextInfo);
 207  
     }
 208  
 
 209  
     @Override
 210  
     public List<InstructionInfo> getInstructionsByProcess(String processKey, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 211  0
         return getNextDecorator().getInstructionsByProcess(processKey, contextInfo);
 212  
     }
 213  
 
 214  
     @Override
 215  
     public List<InstructionInfo> getInstructionsByCheck(String checkId, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 216  0
         return getNextDecorator().getInstructionsByCheck(checkId, contextInfo);
 217  
     }
 218  
 
 219  
     @Override
 220  
     public List<InstructionInfo> getInstructionsByProcessAndCheck(String checkId, String processKey, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 221  0
         return getNextDecorator().getInstructionsByProcessAndCheck(checkId, processKey, contextInfo);
 222  
     }
 223  
 
 224  
     @Override
 225  
     public List<String> searchForInstructionIds(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 226  0
         return getNextDecorator().searchForInstructionIds(criteria, contextInfo);
 227  
     }
 228  
 
 229  
     @Override
 230  
     public List<InstructionInfo> searchForInstructions(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 231  0
         return getNextDecorator().searchForInstructions(criteria, contextInfo);
 232  
     }
 233  
 
 234  
     @Override
 235  
     public List<ValidationResultInfo> validateInstruction(String validationTypeKey, String processKey, String checkId, String instructionTypeKey, InstructionInfo instructionInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 236  0
         return getNextDecorator().validateInstruction(validationTypeKey, processKey, checkId, instructionTypeKey, instructionInfo, contextInfo);
 237  
     }
 238  
 
 239  
     @Override
 240  
     public InstructionInfo createInstruction(String processKey, String checkId, String instructionTypeKey, InstructionInfo instructionInfo, ContextInfo contextInfo) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 241  0
         return getNextDecorator().createInstruction(processKey, checkId, instructionTypeKey, instructionInfo, contextInfo);
 242  
     }
 243  
 
 244  
     @Override
 245  
     public InstructionInfo updateInstruction(String instructionId, InstructionInfo instructionInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
 246  0
         return getNextDecorator().updateInstruction(instructionId, instructionInfo, contextInfo);
 247  
     }
 248  
 
 249  
     @Override
 250  
     public StatusInfo deleteInstruction(String instructionId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 251  0
         return getNextDecorator().deleteInstruction(instructionId, contextInfo);
 252  
     }
 253  
 
 254  
     @Override
 255  
     public List<InstructionInfo> getInstructionsForEvaluation(String processKey, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 256  0
         return getNextDecorator().getInstructionsForEvaluation(processKey, contextInfo);
 257  
     }
 258  
 }