Coverage Report - org.kuali.student.r2.core.classI.atp.service.AtpServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
AtpServiceDecorator
0%
0/51
N/A
1
 
 1  
 package org.kuali.student.r2.core.classI.atp.service;
 2  
 
 3  
 import java.util.Date;
 4  
 import java.util.List;
 5  
 
 6  
 
 7  
 
 8  
 import org.kuali.student.r2.common.datadictionary.dto.DictionaryEntryInfo;
 9  
 import org.kuali.student.r2.common.dto.ContextInfo;
 10  
 import org.kuali.student.r2.common.dto.StateInfo;
 11  
 import org.kuali.student.r2.common.dto.StatusInfo;
 12  
 import org.kuali.student.r2.common.dto.TypeInfo;
 13  
 import org.kuali.student.r2.common.dto.TypeTypeRelationInfo;
 14  
 import org.kuali.student.r2.common.dto.ValidationResultInfo;
 15  
 import org.kuali.student.r2.common.exceptions.AlreadyExistsException;
 16  
 import org.kuali.student.r2.common.exceptions.DataValidationErrorException;
 17  
 import org.kuali.student.r2.common.exceptions.DoesNotExistException;
 18  
 import org.kuali.student.r2.common.exceptions.InvalidParameterException;
 19  
 import org.kuali.student.r2.common.exceptions.MissingParameterException;
 20  
 import org.kuali.student.r2.common.exceptions.OperationFailedException;
 21  
 import org.kuali.student.r2.common.exceptions.PermissionDeniedException;
 22  
 import org.kuali.student.r2.common.exceptions.VersionMismatchException;
 23  
 import org.kuali.student.r2.core.classI.atp.dto.AtpInfo;
 24  
 import org.kuali.student.r2.core.classI.atp.dto.AtpAtpRelationInfo;
 25  
 import org.kuali.student.r2.core.classI.atp.dto.AtpMilestoneRelationInfo;
 26  
 import org.kuali.student.r2.core.classI.atp.dto.MilestoneInfo;
 27  
 import org.kuali.student.r2.core.classI.atp.service.AtpService;
 28  
 
 29  
 
 30  0
 public class AtpServiceDecorator implements AtpService {
 31  
         protected AtpService nextDecorator;
 32  
 
 33  
         public AtpService getNextDecorator() {
 34  0
                 return nextDecorator;
 35  
         }
 36  
 
 37  
         public void setNextDecorator(AtpService nextDecorator) {
 38  0
                 this.nextDecorator = nextDecorator;
 39  0
         }
 40  
         @Override
 41  
         public List<String> getDataDictionaryEntryKeys(ContextInfo context)
 42  
         throws OperationFailedException,
 43  
         MissingParameterException,
 44  
         PermissionDeniedException {
 45  
 
 46  0
                 return this.nextDecorator.getDataDictionaryEntryKeys(context);
 47  
         }
 48  
 
 49  
         @Override
 50  
         public DictionaryEntryInfo getDataDictionaryEntry(String entryKey,
 51  
                         ContextInfo context)
 52  
         throws OperationFailedException,
 53  
         MissingParameterException,
 54  
         PermissionDeniedException,
 55  
         DoesNotExistException {
 56  
 
 57  0
                 return this.nextDecorator.getDataDictionaryEntry(entryKey,context);
 58  
         }
 59  
 
 60  
         @Override
 61  
         public TypeInfo getType(String typeKey, ContextInfo context)
 62  
         throws DoesNotExistException,
 63  
         InvalidParameterException,
 64  
         MissingParameterException,
 65  
         OperationFailedException {
 66  
 
 67  0
                 return this.nextDecorator.getType(typeKey,context);
 68  
         }
 69  
 
 70  
         @Override
 71  
         public List<TypeInfo> getTypesByRefObjectURI(String refObjectURI,
 72  
                         ContextInfo context)
 73  
                         throws DoesNotExistException,
 74  
                         InvalidParameterException,
 75  
                         MissingParameterException,
 76  
                         OperationFailedException {
 77  0
                 return this.nextDecorator.getTypesByRefObjectURI(refObjectURI,context);
 78  
         }
 79  
 
 80  
         @Override
 81  
         public List<TypeInfo> getAllowedTypesForType(String ownerTypeKey,
 82  
                         String relatedRefObjectURI, ContextInfo context)
 83  
                         throws DoesNotExistException,
 84  
                         InvalidParameterException,
 85  
                         MissingParameterException,
 86  
                         OperationFailedException {
 87  0
                 return this.nextDecorator.getAllowedTypesForType(ownerTypeKey,relatedRefObjectURI, context);
 88  
         }
 89  
 
 90  
         @Override
 91  
         public List<TypeTypeRelationInfo> getTypeRelationsByOwnerType(
 92  
                         String ownerTypeKey, String relationTypeKey, ContextInfo context)
 93  
                         throws DoesNotExistException,
 94  
                         InvalidParameterException,
 95  
                         MissingParameterException,
 96  
                         OperationFailedException {
 97  0
                 return this.nextDecorator.getTypeRelationsByOwnerType(ownerTypeKey,relationTypeKey, context);
 98  
         }
 99  
 
 100  
         @Override
 101  
         public List<String> getProcessKeys(String typeKey, ContextInfo context)
 102  
         throws DoesNotExistException,
 103  
         InvalidParameterException,
 104  
         MissingParameterException,
 105  
         OperationFailedException {
 106  0
                 return this.nextDecorator.getProcessKeys(typeKey,context);
 107  
         }
 108  
 
 109  
         @Override
 110  
         public StateInfo getState(String processKey, String stateKey,
 111  
                         ContextInfo context)
 112  
         throws DoesNotExistException,
 113  
         InvalidParameterException,
 114  
         MissingParameterException,
 115  
         OperationFailedException {
 116  0
                 return this.nextDecorator.getState(processKey,stateKey,context);
 117  
         }
 118  
 
 119  
         @Override
 120  
         public List<StateInfo> getStatesByProcess(String processKey,
 121  
                         ContextInfo context)
 122  
                         throws DoesNotExistException,
 123  
                         InvalidParameterException,
 124  
                         MissingParameterException,
 125  
                         OperationFailedException {
 126  0
                 return this.nextDecorator.getStatesByProcess(processKey,context);
 127  
         }
 128  
 
 129  
         @Override
 130  
         public List<StateInfo> getInitialValidStates(String processKey,
 131  
                         ContextInfo context)
 132  
                         throws DoesNotExistException,
 133  
                         InvalidParameterException,
 134  
                         MissingParameterException,
 135  
                         OperationFailedException {
 136  0
                 return this.nextDecorator.getInitialValidStates(processKey,context);
 137  
         }
 138  
 
 139  
         @Override
 140  
         public StateInfo getNextHappyState(String processKey,
 141  
                         String currentStateKey, ContextInfo context)
 142  
         throws DoesNotExistException,
 143  
         InvalidParameterException,
 144  
         MissingParameterException,
 145  
         OperationFailedException {
 146  0
                 return this.nextDecorator.getNextHappyState(processKey,currentStateKey, context);
 147  
         }
 148  
 
 149  
         @Override
 150  
         public AtpInfo getAtp(
 151  
                         String atpKey, ContextInfo context)
 152  
         throws DoesNotExistException,
 153  
         InvalidParameterException,
 154  
         MissingParameterException,
 155  
         OperationFailedException,
 156  
         PermissionDeniedException {
 157  0
                 return this.nextDecorator.getAtp(atpKey, context);
 158  
         }
 159  
 
 160  
         @Override
 161  
         public List<AtpInfo> getAtpsByDate(
 162  
                         Date searchDate, ContextInfo context)
 163  
                         throws InvalidParameterException,
 164  
                         MissingParameterException,
 165  
                         OperationFailedException,
 166  
                         PermissionDeniedException {
 167  0
                 return this.nextDecorator.getAtpsByDate(searchDate, context);
 168  
         }
 169  
 
 170  
         @Override
 171  
         public List<AtpInfo> getAtpsByDates(
 172  
                         Date startDate, Date endDate, ContextInfo context)
 173  
                         throws InvalidParameterException,
 174  
                         MissingParameterException,
 175  
                         OperationFailedException,
 176  
                         PermissionDeniedException {
 177  0
                 return this.nextDecorator.getAtpsByDates(startDate,endDate, context);
 178  
         }
 179  
 
 180  
         @Override
 181  
         public List<AtpInfo> getAtpsByKeyList(
 182  
                         List<String> atpKeyList, ContextInfo context)
 183  
                         throws DoesNotExistException,
 184  
                         InvalidParameterException,
 185  
                         MissingParameterException,
 186  
                         OperationFailedException,
 187  
                         PermissionDeniedException {
 188  0
                 return this.nextDecorator.getAtpsByKeyList(atpKeyList, context);
 189  
         }
 190  
 
 191  
         @Override
 192  
         public List<String> getAtpKeysByType(String atpTypeKey, ContextInfo context)
 193  
         throws InvalidParameterException,
 194  
         MissingParameterException,
 195  
         OperationFailedException,
 196  
         PermissionDeniedException {
 197  0
                 return this.nextDecorator.getAtpKeysByType(atpTypeKey, context);
 198  
         }
 199  
 
 200  
         @Override
 201  
         public MilestoneInfo getMilestone(
 202  
                         String milestoneKey, ContextInfo context)
 203  
         throws DoesNotExistException,
 204  
         InvalidParameterException,
 205  
         MissingParameterException,
 206  
         OperationFailedException,
 207  
         PermissionDeniedException {
 208  0
                 return this.nextDecorator.getMilestone(milestoneKey, context);
 209  
         }
 210  
 
 211  
         @Override
 212  
         public List<MilestoneInfo> getMilestonesByKeyList(
 213  
                         List<String> milestoneKeyList, ContextInfo context)
 214  
                         throws DoesNotExistException,
 215  
                         InvalidParameterException,
 216  
                         MissingParameterException,
 217  
                         OperationFailedException,
 218  
                         PermissionDeniedException {
 219  0
                 return this.nextDecorator.getMilestonesByKeyList(milestoneKeyList, context);
 220  
         }
 221  
 
 222  
         @Override
 223  
         public List<String> getMilestoneKeysByType(String milestoneTypeKey,
 224  
                         ContextInfo context)
 225  
                         throws InvalidParameterException,
 226  
                         MissingParameterException,
 227  
                         OperationFailedException,
 228  
                         PermissionDeniedException {
 229  0
                 return this.nextDecorator.getMilestoneKeysByType(milestoneTypeKey, context);
 230  
         }
 231  
 
 232  
         @Override
 233  
         public List<MilestoneInfo> getMilestonesByAtp(
 234  
                         String atpKey, ContextInfo context)
 235  
                         throws InvalidParameterException,
 236  
                         MissingParameterException,
 237  
                         OperationFailedException,
 238  
                         PermissionDeniedException {
 239  0
                 return this.nextDecorator.getMilestonesByAtp(atpKey, context);
 240  
         }
 241  
 
 242  
         @Override
 243  
         public List<MilestoneInfo> getMilestonesByDates(
 244  
                         Date startDate, Date endDate, ContextInfo context)
 245  
                         throws InvalidParameterException,
 246  
                         MissingParameterException,
 247  
                         OperationFailedException,
 248  
                         PermissionDeniedException {
 249  0
                 return this.nextDecorator.getMilestonesByDates(startDate, endDate, context);
 250  
         }
 251  
 
 252  
         @Override
 253  
         public List<MilestoneInfo> getMilestonesByDatesAndType(
 254  
                         String milestoneTypeKey, Date startDate, Date endDate,
 255  
                         ContextInfo context)
 256  
                         throws InvalidParameterException,
 257  
                         MissingParameterException,
 258  
                         OperationFailedException,
 259  
                         PermissionDeniedException {
 260  0
                 return this.nextDecorator.getMilestonesByDatesAndType(milestoneTypeKey, startDate, endDate, context);
 261  
         }
 262  
 
 263  
         @Override
 264  
         public List<ValidationResultInfo> validateAtp(
 265  
                         String validationType,
 266  
                         AtpInfo atpInfo,
 267  
                         ContextInfo context)
 268  
                         throws DoesNotExistException,
 269  
                         InvalidParameterException,
 270  
                         MissingParameterException,
 271  
                         OperationFailedException {
 272  0
                 return this.nextDecorator.validateAtp(validationType, atpInfo, context);
 273  
         }
 274  
 
 275  
         @Override
 276  
         public AtpInfo createAtp(
 277  
                         String atpKey,
 278  
                         AtpInfo atpInfo,
 279  
                         ContextInfo context)
 280  
         throws AlreadyExistsException,
 281  
         DataValidationErrorException,
 282  
         InvalidParameterException,
 283  
         MissingParameterException,
 284  
         OperationFailedException,
 285  
         PermissionDeniedException {
 286  0
                 return this.nextDecorator.createAtp(atpKey ,atpInfo,  context);
 287  
         }
 288  
 
 289  
         @Override
 290  
         public AtpInfo updateAtp(
 291  
                         String atpKey,
 292  
                         AtpInfo atpInfo,
 293  
                         ContextInfo context)
 294  
         throws DataValidationErrorException,
 295  
         DoesNotExistException,
 296  
         InvalidParameterException,
 297  
         MissingParameterException,
 298  
         OperationFailedException,
 299  
         PermissionDeniedException,
 300  
         VersionMismatchException {
 301  0
                 return this.nextDecorator.updateAtp(atpKey ,atpInfo,  context);
 302  
         }
 303  
 
 304  
         @Override
 305  
         public  StatusInfo deleteAtp(String atpKey,ContextInfo context) throws DoesNotExistException,InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 306  0
                 return this.nextDecorator.deleteAtp(atpKey,context);
 307  
         }
 308  
 
 309  
         @Override
 310  
         public List<ValidationResultInfo> validateMilestone(
 311  
                         String validationType,
 312  
                         MilestoneInfo milestoneInfo,
 313  
                         ContextInfo context)
 314  
                         throws DoesNotExistException,
 315  
                         InvalidParameterException,
 316  
                         MissingParameterException,
 317  
                         OperationFailedException {
 318  0
                 return this.nextDecorator.validateMilestone(validationType,milestoneInfo,context);
 319  
         }
 320  
 
 321  
         @Override
 322  
         public MilestoneInfo createMilestone(
 323  
                         String milestoneKey,
 324  
                         MilestoneInfo milestoneInfo,
 325  
                         ContextInfo context)
 326  
         throws AlreadyExistsException,
 327  
         DataValidationErrorException,
 328  
         InvalidParameterException,
 329  
         MissingParameterException,
 330  
         OperationFailedException,
 331  
         PermissionDeniedException {
 332  0
                 return this.nextDecorator.createMilestone(milestoneKey,milestoneInfo,context);
 333  
         }
 334  
 
 335  
         @Override
 336  
         public         MilestoneInfo updateMilestone(
 337  
                         String milestoneKey,
 338  
                         MilestoneInfo milestoneInfo,
 339  
                         ContextInfo context)
 340  
         throws DataValidationErrorException,
 341  
         DoesNotExistException,
 342  
         InvalidParameterException,
 343  
         MissingParameterException,
 344  
         OperationFailedException,
 345  
         PermissionDeniedException,
 346  
         VersionMismatchException {
 347  0
                 return this.nextDecorator.updateMilestone(milestoneKey,milestoneInfo,context);
 348  
         }
 349  
 
 350  
         @Override
 351  
         public StatusInfo deleteMilestone(
 352  
                         String milestoneKey, ContextInfo context)
 353  
         throws DoesNotExistException,
 354  
         InvalidParameterException,
 355  
         MissingParameterException,
 356  
         OperationFailedException,
 357  
         PermissionDeniedException {
 358  0
                 return this.nextDecorator.deleteMilestone(milestoneKey, context);
 359  
         }
 360  
 
 361  
     @Override
 362  
     public AtpAtpRelationInfo getAtpAtpRelation(String atpAtpRelationId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 363  0
         return this.nextDecorator.getAtpAtpRelation(atpAtpRelationId, context);
 364  
     }
 365  
 
 366  
     @Override
 367  
     public List<AtpAtpRelationInfo> getAtpAtpRelationsByIdList(List<String> atpAtpRelationIdList, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 368  0
         return this.nextDecorator.getAtpAtpRelationsByIdList(atpAtpRelationIdList, context);
 369  
     }
 370  
 
 371  
     @Override
 372  
     public List<String> getAtpAtpRelationIdsByType(String atpAtpRelationTypeKey, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 373  0
         return this.nextDecorator.getAtpAtpRelationIdsByType(atpAtpRelationTypeKey, context);
 374  
     }
 375  
 
 376  
     @Override
 377  
     public List<AtpAtpRelationInfo> getAtpAtpRelationsByAtp(String atpKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 378  0
         return this.nextDecorator.getAtpAtpRelationsByAtp(atpKey, context);
 379  
     }
 380  
 
 381  
     @Override
 382  
     public List<ValidationResultInfo> validateAtpAtpRelation(String validationType, AtpAtpRelationInfo atpAtpRelationInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 383  0
         return this.nextDecorator.validateAtpAtpRelation(validationType, atpAtpRelationInfo, context);
 384  
     }
 385  
 
 386  
     @Override
 387  
     public AtpAtpRelationInfo createAtpAtpRelation(AtpAtpRelationInfo atpAtpRelationInfo, ContextInfo context) throws AlreadyExistsException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 388  0
         return this.nextDecorator.createAtpAtpRelation(atpAtpRelationInfo, context);
 389  
     }
 390  
 
 391  
     @Override
 392  
     public AtpAtpRelationInfo updateAtpAtpRelation(String atpAtpRelationId, AtpAtpRelationInfo atpAtpRelationInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException {
 393  0
         return this.nextDecorator.updateAtpAtpRelation(atpAtpRelationId, atpAtpRelationInfo, context);
 394  
     }
 395  
 
 396  
     @Override
 397  
     public StatusInfo deleteAtpAtpRelation(String atpAtpRelationId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 398  0
         return this.nextDecorator.deleteAtpAtpRelation(atpAtpRelationId, context);
 399  
     }
 400  
 
 401  
         @Override
 402  
         public AtpMilestoneRelationInfo getAtpMilestoneRelation(
 403  
                         String atpMilestoneRelationId, ContextInfo context)
 404  
         throws DoesNotExistException,
 405  
         InvalidParameterException,
 406  
         MissingParameterException,
 407  
         OperationFailedException,
 408  
         PermissionDeniedException {
 409  0
                 return this.nextDecorator.getAtpMilestoneRelation(atpMilestoneRelationId, context);
 410  
         }
 411  
 
 412  
         @Override
 413  
         public List<AtpMilestoneRelationInfo> getAtpMilestoneRelationsByIdList(
 414  
                         List<String> atpMilestoneRelationIdList, ContextInfo context)
 415  
                         throws DoesNotExistException,
 416  
                         InvalidParameterException,
 417  
                         MissingParameterException,
 418  
                         OperationFailedException,
 419  
                         PermissionDeniedException {
 420  0
                 return this.nextDecorator.getAtpMilestoneRelationsByIdList(atpMilestoneRelationIdList, context);
 421  
         }
 422  
 
 423  
         @Override
 424  
         public List<String> getAtpMilestoneRelationIdsByType(
 425  
                         String atpMilestoneRelationTypeKey, ContextInfo context)
 426  
                         throws InvalidParameterException,
 427  
                         MissingParameterException,
 428  
                         OperationFailedException,
 429  
                         PermissionDeniedException {
 430  0
                 return this.nextDecorator.getAtpMilestoneRelationIdsByType(atpMilestoneRelationTypeKey, context);
 431  
         }
 432  
 
 433  
         @Override
 434  
         public List<AtpMilestoneRelationInfo> getAtpMilestoneRelationsByAtp(
 435  
                         String atpKey, ContextInfo context)
 436  
                         throws DoesNotExistException,
 437  
                         InvalidParameterException,
 438  
                         MissingParameterException,
 439  
                         OperationFailedException,
 440  
                         PermissionDeniedException {
 441  0
                 return this.nextDecorator.getAtpMilestoneRelationsByAtp(atpKey, context);
 442  
         }
 443  
 
 444  
         @Override
 445  
         public List<AtpMilestoneRelationInfo> getAtpMilestoneRelationsByMilestone(
 446  
                         String milestoneKey, ContextInfo context)
 447  
                         throws DoesNotExistException,
 448  
                         InvalidParameterException,
 449  
                         MissingParameterException,
 450  
                         OperationFailedException,
 451  
                         PermissionDeniedException {
 452  0
                 return this.nextDecorator.getAtpMilestoneRelationsByAtp(milestoneKey, context);
 453  
         }
 454  
 
 455  
         @Override
 456  
         public List<ValidationResultInfo> validateAtpMilestoneRelation(
 457  
                         String validationType,
 458  
                         AtpMilestoneRelationInfo atpMilestoneRelationInfo,
 459  
                         ContextInfo context)
 460  
                         throws DoesNotExistException,
 461  
                         InvalidParameterException,
 462  
                         MissingParameterException,
 463  
                         OperationFailedException {
 464  0
                 return this.nextDecorator.validateAtpMilestoneRelation(validationType, atpMilestoneRelationInfo, context);
 465  
         }
 466  
 
 467  
         @Override
 468  
         public AtpMilestoneRelationInfo createAtpMilestoneRelation(
 469  
                         AtpMilestoneRelationInfo atpMilestoneRelationInfo,
 470  
                         ContextInfo context)
 471  
         throws AlreadyExistsException,
 472  
         InvalidParameterException,
 473  
         MissingParameterException,
 474  
         OperationFailedException,
 475  
         PermissionDeniedException {
 476  0
                 return this.nextDecorator.createAtpMilestoneRelation(atpMilestoneRelationInfo, context);
 477  
         }
 478  
 
 479  
         @Override
 480  
         public AtpMilestoneRelationInfo updateAtpMilestoneRelation(
 481  
                         String atpMilestoneRelationId,
 482  
                         AtpMilestoneRelationInfo atpMilestoneRelationInfo,
 483  
                         ContextInfo context)
 484  
         throws DataValidationErrorException,
 485  
         DoesNotExistException,
 486  
         InvalidParameterException,
 487  
         MissingParameterException,
 488  
         OperationFailedException,
 489  
         PermissionDeniedException,
 490  
         VersionMismatchException {
 491  0
                 return this.nextDecorator.updateAtpMilestoneRelation(atpMilestoneRelationId, atpMilestoneRelationInfo, context);
 492  
         }
 493  
 
 494  
         @Override
 495  
         public StatusInfo deleteAtpMilestoneRelation(
 496  
                         String atpMilestoneRelationId, ContextInfo context)
 497  
         throws DoesNotExistException,
 498  
         InvalidParameterException,
 499  
         MissingParameterException,
 500  
         OperationFailedException,
 501  
         PermissionDeniedException {
 502  0
                 return this.nextDecorator.deleteAtpMilestoneRelation(atpMilestoneRelationId, context);
 503  
         }
 504  
 
 505  
 }