Coverage Report - org.kuali.student.enrollment.lpr.mock.LuiPersonRelationServiceAdapter
 
Classes in this File Line Coverage Branch Coverage Complexity
LuiPersonRelationServiceAdapter
0%
0/33
N/A
1
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may        obtain a copy of the License at
 7  
  *
 8  
  *         http://www.osedu.org/licenses/ECL-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.student.enrollment.lpr.mock;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 import org.kuali.student.common.dto.ContextInfo;
 21  
 import org.kuali.student.common.dto.CriteriaInfo;
 22  
 import org.kuali.student.common.dto.StateInfo;
 23  
 import org.kuali.student.common.dto.StatusInfo;
 24  
 import org.kuali.student.common.dto.TypeInfo;
 25  
 import org.kuali.student.common.dto.TypeTypeRelationInfo;
 26  
 import org.kuali.student.common.dto.ValidationResultInfo;
 27  
 import org.kuali.student.common.exceptions.AlreadyExistsException;
 28  
 import org.kuali.student.common.exceptions.DataValidationErrorException;
 29  
 import org.kuali.student.common.exceptions.DisabledIdentifierException;
 30  
 import org.kuali.student.common.exceptions.DoesNotExistException;
 31  
 import org.kuali.student.common.exceptions.InvalidParameterException;
 32  
 import org.kuali.student.common.exceptions.MissingParameterException;
 33  
 import org.kuali.student.common.exceptions.OperationFailedException;
 34  
 import org.kuali.student.common.exceptions.PermissionDeniedException;
 35  
 import org.kuali.student.common.exceptions.ReadOnlyException;
 36  
 import org.kuali.student.common.exceptions.VersionMismatchException;
 37  
 import org.kuali.student.common.infc.HoldsLprService;
 38  
 import org.kuali.student.datadictionary.dto.DictionaryEntryInfo;
 39  
 import org.kuali.student.enrollment.lpr.dto.LuiPersonRelationInfo;
 40  
 import org.kuali.student.enrollment.lpr.service.LuiPersonRelationService;
 41  
 
 42  
 /**
 43  
  * Wrapper for an lpr services so implementations only have to implement the
 44  
  * methods they care about
 45  
  * 
 46  
  * @author nwright
 47  
  */
 48  0
 public class LuiPersonRelationServiceAdapter implements
 49  
         LuiPersonRelationService, HoldsLprService {
 50  
 
 51  
     private LuiPersonRelationService lprService;
 52  
 
 53  
     @Override
 54  
     public LuiPersonRelationService getLprService() {
 55  0
         return lprService;
 56  
     }
 57  
 
 58  
     @Override
 59  
     public void setLprService(LuiPersonRelationService lprService) {
 60  0
         this.lprService = lprService;
 61  0
     }
 62  
 
 63  
     @Override
 64  
     public List<ValidationResultInfo> validateLuiPersonRelation(String validationType, LuiPersonRelationInfo luiPersonRelationInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 65  0
         return lprService.validateLuiPersonRelation(validationType, luiPersonRelationInfo, context);
 66  
     }
 67  
 
 68  
     @Override
 69  
     public LuiPersonRelationInfo updateLuiPersonRelation(String luiPersonRelationId, LuiPersonRelationInfo luiPersonRelationInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, ReadOnlyException, OperationFailedException, PermissionDeniedException, VersionMismatchException {
 70  0
         return lprService.updateLuiPersonRelation(luiPersonRelationId, luiPersonRelationInfo, context);
 71  
     }
 72  
 
 73  
     @Override
 74  
     public List<String> searchForLuiPersonRelationIds(CriteriaInfo criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 75  0
         return lprService.searchForLuiPersonRelationIds(criteria, context);
 76  
     }
 77  
 
 78  
     @Override
 79  
     public List<String> findPersonIdsRelatedToLui(String luiId, String luiPersonRelationTypeKey, String relationState, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 80  0
         return lprService.findPersonIdsRelatedToLui(luiId, luiPersonRelationTypeKey, relationState, context);
 81  
     }
 82  
 
 83  
     @Override
 84  
     public List<LuiPersonRelationInfo> findLuiPersonRelationsForPerson(String personId, ContextInfo context) throws DoesNotExistException, DisabledIdentifierException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 85  0
         return lprService.findLuiPersonRelationsForPerson(personId, context);
 86  
     }
 87  
 
 88  
     @Override
 89  
     public List<LuiPersonRelationInfo> findLuiPersonRelationsForLui(String luiId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 90  0
         return lprService.findLuiPersonRelationsForLui(luiId, context);
 91  
     }
 92  
 
 93  
     @Override
 94  
     public List<LuiPersonRelationInfo> findLuiPersonRelationsByIdList(List<String> luiPersonRelationIdList, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 95  0
         return lprService.findLuiPersonRelationsByIdList(luiPersonRelationIdList, context);
 96  
     }
 97  
 
 98  
     @Override
 99  
     public List<LuiPersonRelationInfo> findLuiPersonRelations(String personId, String luiId, ContextInfo context) throws DoesNotExistException, DisabledIdentifierException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 100  0
         return lprService.findLuiPersonRelations(personId, luiId, context);
 101  
     }
 102  
 
 103  
     @Override
 104  
     public List<String> findLuiPersonRelationIdsForPerson(String personId, ContextInfo context) throws DoesNotExistException, DisabledIdentifierException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 105  0
         return lprService.findLuiPersonRelationIdsForPerson(personId, context);
 106  
     }
 107  
 
 108  
     @Override
 109  
     public List<String> findLuiPersonRelationIdsForLui(String luiId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 110  0
         return lprService.findLuiPersonRelationIdsForLui(luiId, context);
 111  
     }
 112  
 
 113  
     @Override
 114  
     public List<String> findLuiPersonRelationIds(String personId, String luiId, ContextInfo context) throws DoesNotExistException, DisabledIdentifierException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 115  0
         return lprService.findLuiPersonRelationIds(personId, luiId, context);
 116  
     }
 117  
 
 118  
     @Override
 119  
     public List<String> findLuiIdsRelatedToPerson(String personId, String luiPersonRelationTypeKey, String relationState, ContextInfo context) throws DoesNotExistException, DisabledIdentifierException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 120  0
         return lprService.findLuiIdsRelatedToPerson(personId, luiPersonRelationTypeKey, relationState, context);
 121  
     }
 122  
 
 123  
     @Override
 124  
     public List<String> findAllValidLuisForPerson(String personId, String luiPersonRelationTypeKey, String relationState, String atpId, ContextInfo context) throws DoesNotExistException, DisabledIdentifierException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 125  0
         return lprService.findAllValidLuisForPerson(personId, luiPersonRelationTypeKey, relationState, atpId, context);
 126  
     }
 127  
 
 128  
     @Override
 129  
     public LuiPersonRelationInfo fetchLuiPersonRelation(String luiPersonRelationId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 130  0
         return lprService.fetchLuiPersonRelation(luiPersonRelationId, context);
 131  
     }
 132  
 
 133  
     @Override
 134  
     public StatusInfo deleteLuiPersonRelation(String luiPersonRelationId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 135  0
         return lprService.deleteLuiPersonRelation(luiPersonRelationId, context);
 136  
     }
 137  
 
 138  
     @Override
 139  
     public String createLuiPersonRelation(String personId, String luiId, String luiPersonRelationTypeKey, LuiPersonRelationInfo luiPersonRelationInfo, ContextInfo context)
 140  
       throws DataValidationErrorException, AlreadyExistsException, DoesNotExistException, DisabledIdentifierException, ReadOnlyException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 141  0
         return lprService.createLuiPersonRelation(personId, luiId, luiPersonRelationTypeKey, luiPersonRelationInfo, context);
 142  
     }
 143  
 
 144  
     @Override
 145  
     public List<String> createBulkRelationshipsForPerson(String personId, List<String> luiIdList, String relationState, String luiPersonRelationTypeKey, LuiPersonRelationInfo luiPersonRelationInfo, ContextInfo context) throws DataValidationErrorException, AlreadyExistsException, DoesNotExistException, DisabledIdentifierException, ReadOnlyException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 146  0
         return lprService.createBulkRelationshipsForPerson(personId, luiIdList, relationState, luiPersonRelationTypeKey, luiPersonRelationInfo, context);
 147  
     }
 148  
 
 149  
     @Override
 150  
     public List<String> createBulkRelationshipsForLui(String luiId,
 151  
       List<String> personIdList,
 152  
       String relationState, String luiPersonRelationTypeKey,
 153  
       LuiPersonRelationInfo luiPersonRelationInfo,
 154  
       ContextInfo context)
 155  
       throws DataValidationErrorException,
 156  
       AlreadyExistsException,
 157  
       DoesNotExistException,
 158  
       DisabledIdentifierException,
 159  
       ReadOnlyException,
 160  
       InvalidParameterException,
 161  
       MissingParameterException,
 162  
       OperationFailedException,
 163  
       PermissionDeniedException {
 164  0
         return lprService.createBulkRelationshipsForLui(luiId, personIdList, relationState, luiPersonRelationTypeKey, luiPersonRelationInfo, context);
 165  
     }
 166  
 
 167  
     @Override
 168  
     public List<String> getDataDictionaryEntryKeys(ContextInfo context)
 169  
       throws OperationFailedException, MissingParameterException, PermissionDeniedException {
 170  0
         return lprService.getDataDictionaryEntryKeys(context);
 171  
     }
 172  
 
 173  
     @Override
 174  
     public DictionaryEntryInfo getDataDictionaryEntry(String entryKey, ContextInfo context) throws OperationFailedException, MissingParameterException, PermissionDeniedException, DoesNotExistException {
 175  0
         return lprService.getDataDictionaryEntry(entryKey, context);
 176  
     }
 177  
 
 178  
     @Override
 179  
     public TypeInfo getType(String typeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 180  0
         return lprService.getType(typeKey, context);
 181  
     }
 182  
 
 183  
     @Override
 184  
     public List<TypeInfo> getTypesByRefObjectURI(String refObjectURI, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 185  0
         return lprService.getTypesByRefObjectURI(refObjectURI, context);
 186  
     }
 187  
 
 188  
     @Override
 189  
     public List<TypeInfo> getAllowedTypesForType(String ownerTypeKey, String relatedRefObjectURI, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 190  0
         return lprService.getAllowedTypesForType(ownerTypeKey, relatedRefObjectURI, context);
 191  
     }
 192  
 
 193  
     @Override
 194  
     public List<TypeTypeRelationInfo> getTypeRelationsByOwnerType(String ownerTypeKey, String relationTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 195  0
         return lprService.getTypeRelationsByOwnerType(ownerTypeKey, relationTypeKey, context);
 196  
     }
 197  
 
 198  
     @Override
 199  
     public List<String> getProcessKeys(String typeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 200  0
         return lprService.getProcessKeys(typeKey, context);
 201  
     }
 202  
 
 203  
     @Override
 204  
     public StateInfo getState(String processKey, String stateKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 205  0
         return lprService.getState(processKey, stateKey, context);
 206  
     }
 207  
 
 208  
     @Override
 209  
     public List<StateInfo> getStatesByProcess(String processKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 210  0
         return lprService.getStatesByProcess(processKey, context);
 211  
     }
 212  
 
 213  
     @Override
 214  
     public List<StateInfo> getInitialValidStates(String processKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 215  0
         return getInitialValidStates(processKey, context);
 216  
     }
 217  
 
 218  
     @Override
 219  
     public StateInfo getNextHappyState(String processKey, String currentStateKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 220  0
         return getNextHappyState(processKey, currentStateKey, context);
 221  
     }
 222  
 }
 223