Coverage Report - org.kuali.student.r2.core.room.service.RoomServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
RoomServiceDecorator
0%
0/38
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.room.service;
 17  
 
 18  
 import org.kuali.rice.core.api.criteria.QueryByCriteria;
 19  
 import org.kuali.student.r2.common.datadictionary.dto.DictionaryEntryInfo;
 20  
 import org.kuali.student.r2.common.dto.*;
 21  
 import org.kuali.student.r2.common.exceptions.*;
 22  
 import org.kuali.student.r2.core.population.service.PopulationService;
 23  
 import org.kuali.student.r2.core.room.dto.BuildingInfo;
 24  
 import org.kuali.student.r2.core.room.dto.RoomInfo;
 25  
 import org.kuali.student.r2.core.room.dto.RoomResponsibleOrgInfo;
 26  
 
 27  
 import javax.jws.WebParam;
 28  
 import java.util.List;
 29  
 
 30  
 /**
 31  
  *
 32  
  * @Version 2.0
 33  
  * @Author Sri komandur@uw.edu
 34  
  */
 35  0
 public class RoomServiceDecorator implements RoomService {
 36  
 
 37  
     private RoomService nextDecorator;
 38  
 
 39  
     public RoomService getNextDecorator() {
 40  0
         return nextDecorator;
 41  
     }
 42  
 
 43  
     public void setNextDecorator(RoomService nextDecorator) {
 44  0
         this.nextDecorator = nextDecorator;
 45  0
     }
 46  
 
 47  
     @Override
 48  
     public RoomInfo getRoom(@WebParam(name = "roomId") String roomId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 49  0
         return getNextDecorator().getRoom(roomId, contextInfo);
 50  
     }
 51  
 
 52  
     @Override
 53  
     public List<RoomInfo> getRoomsByIds(@WebParam(name = "roomIds") List<String> roomIds, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 54  0
         return getNextDecorator().getRoomsByIds(roomIds, contextInfo);
 55  
     }
 56  
 
 57  
     @Override
 58  
     public List<String> getRoomIdsByBuilding(@WebParam(name = "buildingId") String buildingId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 59  0
         return getNextDecorator().getRoomIdsByBuilding(buildingId, contextInfo);
 60  
     }
 61  
 
 62  
     @Override
 63  
     public List<String> getRoomIdsByBuildingAndFloor(@WebParam(name = "buildingId") String buildingId, @WebParam(name = "floor") String floor, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 64  0
         return getNextDecorator().getRoomIdsByBuildingAndFloor(buildingId, floor, contextInfo);
 65  
     }
 66  
 
 67  
     @Override
 68  
     public List<String> getRoomIdsByType(@WebParam(name = "roomTypeKey") String roomTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 69  0
         return getNextDecorator().getRoomIdsByType(roomTypeKey, contextInfo);
 70  
     }
 71  
 
 72  
     @Override
 73  
     public List<String> getRoomIdsByBuildingAndRoomType(@WebParam(name = "buildingId") String buildingId, @WebParam(name = "roomTypeKey") String roomTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 74  0
         return getNextDecorator().getRoomIdsByBuildingAndRoomType(buildingId, roomTypeKey, contextInfo);
 75  
     }
 76  
 
 77  
     @Override
 78  
     public List<String> getRoomsByBuildingAndRoomUsageTypes(@WebParam(name = "buildingId") String buildingId, @WebParam(name = "roomUsageTypeKeys") List<String> roomUsageTypeKeys, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 79  0
         return getNextDecorator().getRoomsByBuildingAndRoomUsageTypes(buildingId, roomUsageTypeKeys, contextInfo);
 80  
     }
 81  
 
 82  
     @Override
 83  
     public List<String> getRoomIdsByBuildingAndRoomTypes(@WebParam(name = "buildingId") String buildingId, @WebParam(name = "roomTypeKeys") List<String> roomTypeKeys, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 84  0
         return getNextDecorator().getRoomIdsByBuildingAndRoomTypes(buildingId, roomTypeKeys, contextInfo);
 85  
     }
 86  
 
 87  
     @Override
 88  
     public List<String> searchForRoomIds(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 89  0
         return getNextDecorator().searchForRoomIds(criteria, contextInfo);
 90  
     }
 91  
 
 92  
     @Override
 93  
     public List<RoomInfo> searchForRooms(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 94  0
         return getNextDecorator().searchForRooms(criteria, contextInfo);
 95  
     }
 96  
 
 97  
     @Override
 98  
     public List<ValidationResultInfo> validateRoom(@WebParam(name = "validationTypeKey") String validationTypeKey, @WebParam(name = "buildingId") String buildingId, @WebParam(name = "roomTypeKey") String roomTypeKey, @WebParam(name = "roomInfo") RoomInfo roomInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 99  0
         return getNextDecorator().validateRoom(validationTypeKey, buildingId, roomTypeKey, roomInfo, contextInfo);
 100  
     }
 101  
 
 102  
     @Override
 103  
     public RoomInfo createRoom(@WebParam(name = "buildingId") String buildingId, @WebParam(name = "roomTypeKey") String roomTypeKey, @WebParam(name = "roomInfo") RoomInfo roomInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws AlreadyExistsException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 104  0
         return getNextDecorator().createRoom(buildingId, roomTypeKey, roomInfo, contextInfo);
 105  
     }
 106  
 
 107  
     @Override
 108  
     public RoomInfo updateRoom(@WebParam(name = "roomId") String roomId, @WebParam(name = "roomInfo") RoomInfo roomInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
 109  0
         return getNextDecorator().updateRoom(roomId, roomInfo, contextInfo);
 110  
     }
 111  
 
 112  
     @Override
 113  
     public StatusInfo deleteRoom(@WebParam(name = "roomId") String roomId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 114  0
         return getNextDecorator().deleteRoom(roomId, contextInfo);
 115  
     }
 116  
 
 117  
     @Override
 118  
     public BuildingInfo getBuilding(@WebParam(name = "buildingId") String buildingId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 119  0
         return getNextDecorator().getBuilding(buildingId, contextInfo);
 120  
     }
 121  
 
 122  
     @Override
 123  
     public List<BuildingInfo> getBuildingsByIds(@WebParam(name = "buildingIds") List<String> buildingIds, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 124  0
         return getNextDecorator().getBuildingsByIds(buildingIds, contextInfo);
 125  
     }
 126  
 
 127  
     @Override
 128  
     public List<String> getBuildingIdsByCampus(@WebParam(name = "campusKey") String campusKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 129  0
         return getNextDecorator().getBuildingIdsByCampus(campusKey, contextInfo);
 130  
     }
 131  
 
 132  
     @Override
 133  
     public List<String> searchForBuildingIds(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 134  0
         return getNextDecorator().searchForBuildingIds(criteria, contextInfo);
 135  
     }
 136  
 
 137  
     @Override
 138  
     public List<BuildingInfo> searchForBuildings(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 139  0
         return getNextDecorator().searchForBuildings(criteria, contextInfo);
 140  
     }
 141  
 
 142  
     @Override
 143  
     public List<ValidationResultInfo> validateBuilding(@WebParam(name = "buildingTypeKey") String buildingTypeKey, @WebParam(name = "validationTypeKey") String validationTypeKey, @WebParam(name = "buildingInfo") BuildingInfo buildingInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 144  0
         return getNextDecorator().validateBuilding(buildingTypeKey, validationTypeKey, buildingInfo, contextInfo);
 145  
     }
 146  
 
 147  
     @Override
 148  
     public BuildingInfo createBuilding(@WebParam(name = "buildingTypeKey") String buildingTypeKey, @WebParam(name = "buildingInfo") BuildingInfo buildingInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws AlreadyExistsException, DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 149  0
         return getNextDecorator().createBuilding(buildingTypeKey, buildingInfo, contextInfo);
 150  
     }
 151  
 
 152  
     @Override
 153  
     public BuildingInfo updateBuilding(@WebParam(name = "buildingId") String buildingId, @WebParam(name = "buildingInfo") BuildingInfo buildingInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
 154  0
         return getNextDecorator().updateBuilding(buildingId, buildingInfo, contextInfo);
 155  
     }
 156  
 
 157  
     @Override
 158  
     public StatusInfo deleteBuilding(@WebParam(name = "buildingId") String buildingId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 159  0
         return getNextDecorator().deleteBuilding(buildingId, contextInfo);
 160  
     }
 161  
 
 162  
     @Override
 163  
     public RoomResponsibleOrgInfo getRoomResponsibleOrg(@WebParam(name = "roomResponsibleOrgId") String roomResponsibleOrgId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 164  0
         return getNextDecorator().getRoomResponsibleOrg(roomResponsibleOrgId, contextInfo);
 165  
     }
 166  
 
 167  
     @Override
 168  
     public List<RoomResponsibleOrgInfo> getRoomResponsibleOrgsByIds(@WebParam(name = "roomResponsibleOrgIds") List<String> roomResponsibleOrgIds, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 169  0
         return getNextDecorator().getRoomResponsibleOrgsByIds(roomResponsibleOrgIds, contextInfo);
 170  
     }
 171  
 
 172  
     @Override
 173  
     public List<String> getRoomResponsibleOrgIdsByType(@WebParam(name = "roomResponsibleOrgTypeKey") String roomResponsibleOrgTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 174  0
         return getNextDecorator().getRoomResponsibleOrgIdsByType(roomResponsibleOrgTypeKey, contextInfo);
 175  
     }
 176  
 
 177  
     @Override
 178  
     public List<String> getRoomResponsibleOrgIdsByRoom(@WebParam(name = "roomId") String roomId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 179  0
         return getNextDecorator().getRoomResponsibleOrgIdsByRoom(roomId, contextInfo);
 180  
     }
 181  
 
 182  
     @Override
 183  
     public List<String> getRoomResponsibleOrgIdsForBuilding(@WebParam(name = "buildingId") String buildingId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 184  0
         return getNextDecorator().getRoomResponsibleOrgIdsForBuilding(buildingId, contextInfo);
 185  
     }
 186  
 
 187  
     @Override
 188  
     public List<String> searchForRoomResponsibleOrgIds(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 189  0
         return getNextDecorator().searchForRoomResponsibleOrgIds(criteria, contextInfo);
 190  
     }
 191  
 
 192  
     @Override
 193  
     public List<RoomResponsibleOrgInfo> searchForRoomResponsibleOrgs(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 194  0
         return getNextDecorator().searchForRoomResponsibleOrgs(criteria, contextInfo);
 195  
     }
 196  
 
 197  
     @Override
 198  
     public List<ValidationResultInfo> validateRoomResponsibleOrg(@WebParam(name = "validationTypeKey") String validationTypeKey, @WebParam(name = "roomId") String roomId, @WebParam(name = "orgId") String orgId, @WebParam(name = "roomResponsibleOrgTypeKey") String roomResponsibleOrgTypeKey, @WebParam(name = "roomResponsibleOrgInfo") RoomResponsibleOrgInfo roomResponsibleOrgInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 199  0
         return getNextDecorator().validateRoomResponsibleOrg(validationTypeKey, roomId, orgId, roomResponsibleOrgTypeKey, roomResponsibleOrgInfo, contextInfo);
 200  
     }
 201  
 
 202  
     @Override
 203  
     public RoomResponsibleOrgInfo createRoomResponsibleOrg(@WebParam(name = "roomId") String roomId, @WebParam(name = "orgId") String orgId, @WebParam(name = "roomResponsibleOrgTypeKey") String roomResponsibleOrgTypeKey, @WebParam(name = "roomResponsibleOrgInfo") RoomResponsibleOrgInfo roomResponsibleOrgInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws AlreadyExistsException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 204  0
         return getNextDecorator().createRoomResponsibleOrg(roomId, orgId, roomResponsibleOrgTypeKey, roomResponsibleOrgInfo, contextInfo);
 205  
     }
 206  
 
 207  
     @Override
 208  
     public RoomResponsibleOrgInfo updateRoomResponsibleOrg(@WebParam(name = "roomResponsibleOrgId") String roomResponsibleOrgId, @WebParam(name = "roomResponsibleOrgInfo") RoomResponsibleOrgInfo roomResponsibleOrgInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
 209  0
         return getNextDecorator().updateRoomResponsibleOrg(roomResponsibleOrgId, roomResponsibleOrgInfo, contextInfo);
 210  
     }
 211  
 
 212  
     @Override
 213  
     public StatusInfo deleteRoomResponsibleOrg(@WebParam(name = "roomResponsibleOrgId") String roomResponsibleOrgId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 214  0
         return getNextDecorator().deleteRoomResponsibleOrg(roomResponsibleOrgId, contextInfo);
 215  
     }
 216  
 
 217  
 }