Coverage Report - org.kuali.student.r2.lum.program.service.ProgramServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
ProgramServiceDecorator
0%
0/49
0%
0/2
1.043
 
 1  
 package org.kuali.student.r2.lum.program.service;
 2  
 
 3  
 import java.util.Date;
 4  
 import java.util.List;
 5  
 
 6  
 
 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.IllegalVersionSequencingException;
 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.lum.program.dto.CoreProgramInfo;
 20  
 import org.kuali.student.r2.lum.program.dto.CredentialProgramInfo;
 21  
 import org.kuali.student.r2.lum.program.dto.HonorsProgramInfo;
 22  
 import org.kuali.student.r2.lum.program.dto.MajorDisciplineInfo;
 23  
 import org.kuali.student.r2.lum.program.dto.MinorDisciplineInfo;
 24  
 import org.kuali.student.r2.lum.program.dto.ProgramRequirementInfo;
 25  
 import org.kuali.student.r2.lum.program.dto.ProgramVariationInfo;
 26  
 
 27  0
 public class ProgramServiceDecorator implements ProgramService {
 28  
     private ProgramService nextDecorator;
 29  
 
 30  
     public ProgramService getNextDecorator() throws OperationFailedException {
 31  0
         if (null == nextDecorator) {
 32  0
             throw new OperationFailedException("Misconfigured application: nextDecorator is null");
 33  
         }
 34  0
         return nextDecorator;
 35  
     }
 36  
 
 37  
 
 38  
     @Override
 39  
     public CredentialProgramInfo getCredentialProgram(String credentialProgramId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 40  
             OperationFailedException, PermissionDeniedException {
 41  0
         return this.getNextDecorator().getCredentialProgram(credentialProgramId, contextInfo);
 42  
     }
 43  
 
 44  
     @Override
 45  
     public List<CredentialProgramInfo> getCredentialProgramsByIds(List<String> credentialProgramId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException,
 46  
             MissingParameterException, OperationFailedException, PermissionDeniedException {
 47  0
         return this.getNextDecorator().getCredentialProgramsByIds(credentialProgramId, contextInfo);
 48  
     }
 49  
 
 50  
     @Override
 51  
     public List<ValidationResultInfo> validateCredentialProgram(String validationType, CredentialProgramInfo credentialProgramInfo, ContextInfo contextInfo) throws InvalidParameterException,
 52  
             MissingParameterException, OperationFailedException {
 53  0
         return this.getNextDecorator().validateCredentialProgram(validationType, credentialProgramInfo, contextInfo);
 54  
     }
 55  
 
 56  
     @Override
 57  
     public CredentialProgramInfo createCredentialProgram(String credentialProgramTypeKey, CredentialProgramInfo credentialProgramInfo, ContextInfo contextInfo) throws AlreadyExistsException,
 58  
             DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 59  0
         return this.getNextDecorator().createCredentialProgram(credentialProgramTypeKey, credentialProgramInfo, contextInfo);
 60  
     }
 61  
 
 62  
     @Override
 63  
     public CredentialProgramInfo createNewCredentialProgramVersion(String credentialProgramId, String versionComment, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException,
 64  
             MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, DataValidationErrorException {
 65  0
         return this.getNextDecorator().createNewCredentialProgramVersion(credentialProgramId, versionComment, contextInfo);
 66  
     }
 67  
 
 68  
     @Override
 69  
     public StatusInfo setCurrentCredentialProgramVersion(String credentialProgramId, Date currentVersionStart, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException,
 70  
             MissingParameterException, IllegalVersionSequencingException, OperationFailedException, PermissionDeniedException {
 71  0
         return this.getNextDecorator().setCurrentCredentialProgramVersion(credentialProgramId, currentVersionStart, contextInfo);
 72  
     }
 73  
 
 74  
     @Override
 75  
     public CredentialProgramInfo updateCredentialProgram(String credentialProgramId, CredentialProgramInfo credentialProgramInfo, ContextInfo contextInfo) throws DataValidationErrorException,
 76  
             DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException, PermissionDeniedException {
 77  0
         return this.getNextDecorator().updateCredentialProgram(credentialProgramId, credentialProgramInfo, contextInfo);
 78  
     }
 79  
 
 80  
     @Override
 81  
     public StatusInfo deleteCredentialProgram(String credentialProgramId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 82  
             OperationFailedException, PermissionDeniedException {
 83  0
         return this.getNextDecorator().deleteCredentialProgram(credentialProgramId, contextInfo);
 84  
     }
 85  
 
 86  
     @Override
 87  
     public MajorDisciplineInfo getMajorDiscipline(String majorDisciplineId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 88  
             OperationFailedException, PermissionDeniedException {
 89  0
         return this.getNextDecorator().getMajorDiscipline(majorDisciplineId, contextInfo);
 90  
     }
 91  
 
 92  
     @Override
 93  
     public List<String> getMajorDisciplineIdsByCredentialProgramType(String programType, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 94  
             OperationFailedException {
 95  0
         return this.getNextDecorator().getMajorDisciplineIdsByCredentialProgramType(programType, contextInfo);
 96  
     }
 97  
 
 98  
     @Override
 99  
     public List<ValidationResultInfo> validateMajorDiscipline(String validationType, MajorDisciplineInfo majorDisciplineInfo, ContextInfo contextInfo) throws InvalidParameterException,
 100  
             MissingParameterException, OperationFailedException {
 101  0
         return this.getNextDecorator().validateMajorDiscipline(validationType, majorDisciplineInfo, contextInfo);
 102  
     }
 103  
 
 104  
     @Override
 105  
     public MajorDisciplineInfo createMajorDiscipline(String majorDisciplineTypeKey, MajorDisciplineInfo majorDisciplineInfo, ContextInfo contextInfo) throws AlreadyExistsException,
 106  
             DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 107  0
         return this.getNextDecorator().createMajorDiscipline(majorDisciplineTypeKey, majorDisciplineInfo, contextInfo);
 108  
     }
 109  
 
 110  
     @Override
 111  
     public MajorDisciplineInfo updateMajorDiscipline(String majorDisciplineId, MajorDisciplineInfo majorDisciplineInfo, ContextInfo contextInfo) throws DataValidationErrorException,
 112  
             DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException, PermissionDeniedException {
 113  0
         return this.getNextDecorator().updateMajorDiscipline(majorDisciplineId, majorDisciplineInfo, contextInfo);
 114  
     }
 115  
 
 116  
     @Override
 117  
     public StatusInfo deleteMajorDiscipline(String majorDisciplineId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 118  
             OperationFailedException, PermissionDeniedException {
 119  0
         return this.getNextDecorator().deleteMajorDiscipline(majorDisciplineId, contextInfo);
 120  
     }
 121  
 
 122  
     @Override
 123  
     public MajorDisciplineInfo createNewMajorDisciplineVersion(String majorDisciplineId, String versionComment, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException,
 124  
             MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, DataValidationErrorException {
 125  0
         return this.getNextDecorator().createNewMajorDisciplineVersion(majorDisciplineId, versionComment, contextInfo);
 126  
     }
 127  
 
 128  
     @Override
 129  
     public HonorsProgramInfo getHonorsProgram(String honorsProgramId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 130  
             OperationFailedException, PermissionDeniedException {
 131  0
         return this.getNextDecorator().getHonorsProgram(honorsProgramId, contextInfo);
 132  
     }
 133  
 
 134  
     @Override
 135  
     public List<String> getHonorProgramIdsByCredentialProgramType(String programType, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 136  
             OperationFailedException {
 137  0
         return this.getNextDecorator().getHonorProgramIdsByCredentialProgramType(programType, contextInfo);
 138  
     }
 139  
 
 140  
     @Override
 141  
     public List<ValidationResultInfo> validateHonorsProgram(String validationType, HonorsProgramInfo honorsProgramInfo, ContextInfo contextInfo) throws InvalidParameterException,
 142  
             MissingParameterException, OperationFailedException {
 143  0
         return this.getNextDecorator().validateHonorsProgram(validationType, honorsProgramInfo, contextInfo);
 144  
     }
 145  
 
 146  
     @Override
 147  
     public HonorsProgramInfo createHonorsProgram(String honorsProgramTypeKey, HonorsProgramInfo honorsProgramInfo, ContextInfo contextInfo) throws AlreadyExistsException,
 148  
             DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 149  0
         return this.getNextDecorator().createHonorsProgram(honorsProgramTypeKey, honorsProgramInfo, contextInfo);
 150  
     }
 151  
 
 152  
     @Override
 153  
     public HonorsProgramInfo updateHonorsProgram(String honorsProgramId, String honorsProgramTypeKey, HonorsProgramInfo honorsProgramInfo, ContextInfo contextInfo)
 154  
             throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException,
 155  
             PermissionDeniedException {
 156  
 
 157  0
         return this.getNextDecorator().updateHonorsProgram(honorsProgramId, honorsProgramTypeKey, honorsProgramInfo, contextInfo);
 158  
     }
 159  
 
 160  
     @Override
 161  
     public StatusInfo deleteHonorsProgram(String honorsProgramId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 162  
             OperationFailedException, PermissionDeniedException {
 163  0
         return this.getNextDecorator().deleteHonorsProgram(honorsProgramId, contextInfo);
 164  
     }
 165  
 
 166  
     @Override
 167  
     public CoreProgramInfo getCoreProgram(String coreProgramId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException,
 168  
             PermissionDeniedException {
 169  0
         return this.getNextDecorator().getCoreProgram(coreProgramId, contextInfo);
 170  
     }
 171  
 
 172  
     @Override
 173  
     public List<ValidationResultInfo> validateCoreProgram(String validationType, CoreProgramInfo coreProgramInfo, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException,
 174  
             OperationFailedException {
 175  0
         return this.getNextDecorator().validateCoreProgram(validationType, coreProgramInfo, contextInfo);
 176  
     }
 177  
 
 178  
     @Override
 179  
     public CoreProgramInfo createCoreProgram(String coreProgramTypeKey, CoreProgramInfo coreProgramInfo, ContextInfo contextInfo) throws AlreadyExistsException, DataValidationErrorException,
 180  
             InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 181  0
         return this.getNextDecorator().createCoreProgram(coreProgramTypeKey, coreProgramInfo, contextInfo);
 182  
     }
 183  
 
 184  
     @Override
 185  
     public CoreProgramInfo createNewCoreProgramVersion(String coreProgramId, String versionComment, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException,
 186  
             MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, DataValidationErrorException {
 187  0
         return this.getNextDecorator().createNewCoreProgramVersion(coreProgramId, versionComment, contextInfo);
 188  
     }
 189  
 
 190  
     @Override
 191  
     public StatusInfo setCurrentCoreProgramVersion(String coreProgramId, Date currentVersionStart, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException,
 192  
             MissingParameterException, IllegalVersionSequencingException, OperationFailedException, PermissionDeniedException {
 193  0
         return this.getNextDecorator().setCurrentCoreProgramVersion(coreProgramId, currentVersionStart, contextInfo);
 194  
     }
 195  
 
 196  
     @Override
 197  
     public CoreProgramInfo updateCoreProgram(String coreProgramId, String coreProgramTypeKey, CoreProgramInfo coreProgramInfo, ContextInfo contextInfo) throws DataValidationErrorException,
 198  
             DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException, PermissionDeniedException {
 199  0
         return this.getNextDecorator().updateCoreProgram(coreProgramId, coreProgramTypeKey, coreProgramInfo, contextInfo);
 200  
     }
 201  
 
 202  
     @Override
 203  
     public StatusInfo deleteCoreProgram(String coreProgramId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException,
 204  
             PermissionDeniedException {
 205  0
         return this.getNextDecorator().deleteCoreProgram(coreProgramId, contextInfo);
 206  
     }
 207  
 
 208  
     @Override
 209  
     public ProgramRequirementInfo getProgramRequirement(String programRequirementId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 210  
             OperationFailedException, PermissionDeniedException {
 211  0
         return this.getNextDecorator().getProgramRequirement(programRequirementId, contextInfo);
 212  
     }
 213  
 
 214  
     @Override
 215  
     public List<ValidationResultInfo> validateProgramRequirement(String validationType, ProgramRequirementInfo programRequirementInfo, ContextInfo contextInfo) throws InvalidParameterException,
 216  
             MissingParameterException, OperationFailedException {
 217  0
         return this.getNextDecorator().validateProgramRequirement(validationType, programRequirementInfo, contextInfo);
 218  
     }
 219  
 
 220  
     @Override
 221  
     public ProgramRequirementInfo createProgramRequirement(String programRequirementTypeKey, ProgramRequirementInfo programRequirementInfo, ContextInfo contextInfo) throws AlreadyExistsException,
 222  
             DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 223  0
         return this.getNextDecorator().createProgramRequirement(programRequirementTypeKey, programRequirementInfo, contextInfo);
 224  
     }
 225  
 
 226  
     @Override
 227  
     public ProgramRequirementInfo updateProgramRequirement(String programRequirementId, String programRequirementTypeKey, ProgramRequirementInfo programRequirementInfo, ContextInfo contextInfo)
 228  
             throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException,
 229  
             PermissionDeniedException {
 230  0
         return this.getNextDecorator().updateProgramRequirement(programRequirementId, programRequirementTypeKey, programRequirementInfo, contextInfo);
 231  
     }
 232  
 
 233  
     @Override
 234  
     public StatusInfo deleteProgramRequirement(String programRequirementId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 235  
             OperationFailedException, PermissionDeniedException {
 236  0
         return this.getNextDecorator().deleteProgramRequirement(programRequirementId, contextInfo);
 237  
     }
 238  
 
 239  
     @Override
 240  
     public StatusInfo setCurrentMajorDisciplineVersion(String majorDisciplineId, Date currentVersionStart, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException,
 241  
             MissingParameterException, IllegalVersionSequencingException, OperationFailedException, PermissionDeniedException {
 242  0
         return this.getNextDecorator().setCurrentMajorDisciplineVersion(majorDisciplineId, currentVersionStart, contextInfo);
 243  
     }
 244  
 
 245  
     @Override
 246  
     public MinorDisciplineInfo getMinorDiscipline(String minorDisciplineId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 247  
             OperationFailedException, PermissionDeniedException {
 248  0
         return this.getNextDecorator().getMinorDiscipline(minorDisciplineId, contextInfo);
 249  
     }
 250  
 
 251  
     @Override
 252  
     public List<String> getMinorsByCredentialProgramType(String programType, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 253  
             OperationFailedException {
 254  0
         return this.getNextDecorator().getMinorsByCredentialProgramType(programType, contextInfo);
 255  
     }
 256  
 
 257  
     @Override
 258  
     public List<ValidationResultInfo> validateMinorDiscipline(String validationType, MinorDisciplineInfo minorDisciplineInfo, ContextInfo contextInfo) throws InvalidParameterException,
 259  
             MissingParameterException, OperationFailedException {
 260  0
         return this.getNextDecorator().validateMinorDiscipline(validationType, minorDisciplineInfo, contextInfo);
 261  
     }
 262  
 
 263  
     @Override
 264  
     public MinorDisciplineInfo createMinorDiscipline(String minorDisciplineTypeKey, MinorDisciplineInfo minorDisciplineInfo, ContextInfo contextInfo) throws AlreadyExistsException,
 265  
             DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 266  0
         return this.getNextDecorator().createMinorDiscipline(minorDisciplineTypeKey, minorDisciplineInfo, contextInfo);
 267  
     }
 268  
 
 269  
     @Override
 270  
     public MinorDisciplineInfo updateMinorDiscipline(String minorDisciplineId, String minorDisciplineTypeKey, MinorDisciplineInfo minorDisciplineInfo, ContextInfo contextInfo)
 271  
             throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException,
 272  
             PermissionDeniedException {
 273  0
         return this.getNextDecorator().updateMinorDiscipline(minorDisciplineId, minorDisciplineTypeKey, minorDisciplineInfo, contextInfo);
 274  
     }
 275  
 
 276  
     @Override
 277  
     public StatusInfo deleteMinorDiscipline(String minorDisciplineId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 278  
             OperationFailedException, PermissionDeniedException {
 279  0
         return this.getNextDecorator().deleteMinorDiscipline(minorDisciplineId, contextInfo);
 280  
     }
 281  
 
 282  
     @Override
 283  
     public List<MajorDisciplineInfo> getMajorDisciplinesByIds(List<String> majorDisciplineIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException,
 284  
             MissingParameterException, OperationFailedException, PermissionDeniedException {
 285  
         // TODO sambit - THIS METHOD NEEDS JAVADOCS
 286  0
         return null;
 287  
     }
 288  
 
 289  
     @Override
 290  
     public List<HonorsProgramInfo> getHonorsProgramsByIds(List<String> honorsProgramIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 291  
             OperationFailedException, PermissionDeniedException {
 292  0
         return this.getNextDecorator().getHonorsProgramsByIds(honorsProgramIds, contextInfo);
 293  
     }
 294  
 
 295  
     @Override
 296  
     public List<CoreProgramInfo> getCoreProgramsByIds(List<String> coreProgramIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException,
 297  
             OperationFailedException, PermissionDeniedException {
 298  0
         return this.getNextDecorator().getCoreProgramsByIds(coreProgramIds, contextInfo);
 299  
     }
 300  
 
 301  
     @Override
 302  
     public List<ProgramRequirementInfo> getProgramRequirementsByIds(List<String> programRequirementIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException,
 303  
             MissingParameterException, OperationFailedException, PermissionDeniedException {
 304  0
         return this.getNextDecorator().getProgramRequirementsByIds(programRequirementIds, contextInfo);
 305  
     }
 306  
 
 307  
     @Override
 308  
     public List<ProgramVariationInfo> getProgramVariationsByMajorDiscipline(String majorDisciplineId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 309  0
         return nextDecorator.getProgramVariationsByMajorDiscipline(majorDisciplineId, contextInfo);
 310  
     }
 311  
 
 312  
     
 313  
     
 314  
 }