Coverage Report - org.kuali.student.r2.core.class1.appointment.service.decorators.AppointmentServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
AppointmentServiceDecorator
0%
0/44
0%
0/2
1.05
 
 1  
 /**
 2  
  * Copyright 2012 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  
  * Created by Charles on 3/21/12
 16  
  */
 17  
 package org.kuali.student.r2.core.class1.appointment.service.decorators;
 18  
 
 19  
 import org.kuali.rice.core.api.criteria.QueryByCriteria;
 20  
 import org.kuali.student.r2.common.dto.ContextInfo;
 21  
 import org.kuali.student.r2.common.dto.StatusInfo;
 22  
 import org.kuali.student.r2.common.dto.ValidationResultInfo;
 23  
 import org.kuali.student.r2.common.exceptions.DataValidationErrorException;
 24  
 import org.kuali.student.r2.common.exceptions.DependentObjectsExistException;
 25  
 import org.kuali.student.r2.common.exceptions.DoesNotExistException;
 26  
 import org.kuali.student.r2.common.exceptions.InvalidParameterException;
 27  
 import org.kuali.student.r2.common.exceptions.MissingParameterException;
 28  
 import org.kuali.student.r2.common.exceptions.OperationFailedException;
 29  
 import org.kuali.student.r2.common.exceptions.PermissionDeniedException;
 30  
 import org.kuali.student.r2.common.exceptions.ReadOnlyException;
 31  
 import org.kuali.student.r2.common.exceptions.VersionMismatchException;
 32  
 import org.kuali.student.r2.core.appointment.dto.AppointmentInfo;
 33  
 import org.kuali.student.r2.core.appointment.dto.AppointmentSlotInfo;
 34  
 import org.kuali.student.r2.core.appointment.dto.AppointmentWindowInfo;
 35  
 import org.kuali.student.r2.core.appointment.service.AppointmentService;
 36  
 
 37  
 import javax.jws.WebParam;
 38  
 import java.util.List;
 39  
 
 40  
 /**
 41  
  * This class //TODO ...
 42  
  *
 43  
  * @author Kuali Student Team
 44  
  */
 45  0
 public abstract class AppointmentServiceDecorator implements AppointmentService {
 46  
     private AppointmentService nextDecorator;
 47  
 
 48  
     public AppointmentService getNextDecorator() throws OperationFailedException {
 49  0
         if (null == nextDecorator) {
 50  0
             throw new OperationFailedException("Misconfigured application: nextDecorator is null");
 51  
         }
 52  0
         return nextDecorator;
 53  
     }
 54  
 
 55  
     public void setNextDecorator(AppointmentService nextDecorator) {
 56  0
         this.nextDecorator = nextDecorator;
 57  0
     }
 58  
 
 59  
     @Override
 60  
     public AppointmentInfo getAppointment(@WebParam(name = "appointmentId") String appointmentId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 61  0
         return getNextDecorator().getAppointment(appointmentId, contextInfo);
 62  
     }
 63  
 
 64  
     @Override
 65  
     public List<AppointmentInfo> getAppointmentsByIds(@WebParam(name = "appointmentIds") List<String> appointmentIds, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 66  0
         return getNextDecorator().getAppointmentsByIds(appointmentIds, contextInfo);
 67  
     }
 68  
 
 69  
     @Override
 70  
     public List<String> getAppointmentIdsByType(@WebParam(name = "appointmentTypeKey") String appointmentTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 71  0
         return getNextDecorator().getAppointmentIdsByType(appointmentTypeKey, contextInfo);
 72  
     }
 73  
 
 74  
     @Override
 75  
     public List<AppointmentInfo> getAppointmentsBySlot(@WebParam(name = "appointmentSlotId") String appointmentSlotId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 76  0
         return getNextDecorator().getAppointmentsBySlot(appointmentSlotId, contextInfo);
 77  
     }
 78  
 
 79  
     @Override
 80  
     public List<String> getAppointmentIdsByPerson(@WebParam(name = "personId") String personId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 81  0
         return getNextDecorator().getAppointmentIdsByPerson(personId, contextInfo);
 82  
     }
 83  
 
 84  
     @Override
 85  
     public List<AppointmentInfo> getAppointmentsByPersonAndSlot(@WebParam(name = "personId") String personId, @WebParam(name = "appointmentSlotId") String appointmentSlotId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 86  0
         return getNextDecorator().getAppointmentsByPersonAndSlot(personId,appointmentSlotId, contextInfo);
 87  
     }
 88  
 
 89  
     @Override
 90  
     public List<String> searchForAppointmentIds(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 91  0
         return getNextDecorator().searchForAppointmentIds(criteria,contextInfo);
 92  
     }
 93  
 
 94  
     @Override
 95  
     public List<AppointmentInfo> searchForAppointments(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 96  0
         return getNextDecorator().searchForAppointments(criteria, contextInfo);
 97  
     }
 98  
 
 99  
     @Override
 100  
     public List<ValidationResultInfo> validateAppointment(@WebParam(name = "validationTypeKey") String validationTypeKey, @WebParam(name = "personId") String personId, @WebParam(name = "appointmentSlotId") String appointmentSlotId, @WebParam(name = "appointmentTypeKey") String appointmentTypeKey, @WebParam(name = "appointmentInfo") AppointmentInfo appointmentInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 101  0
         return getNextDecorator().validateAppointment(validationTypeKey, personId, appointmentSlotId, appointmentTypeKey, appointmentInfo, contextInfo);
 102  
     }
 103  
 
 104  
     @Override
 105  
     public AppointmentInfo createAppointment(@WebParam(name = "personId") String personId, @WebParam(name = "appointmentSlotId") String appointmentSlotId, @WebParam(name = "appointmentTypeKey") String appointmentTypeKey, @WebParam(name = "appointmentInfo") AppointmentInfo appointmentInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 106  0
         return getNextDecorator().createAppointment(personId, appointmentSlotId, appointmentTypeKey,appointmentInfo, contextInfo);
 107  
     }
 108  
 
 109  
     @Override
 110  
     public StatusInfo generateAppointmentsByWindow(@WebParam(name = "appointmentWindowId") String appointmentWindowId, @WebParam(name = "appointmentTypeKey") String appointmentTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 111  0
         return getNextDecorator().generateAppointmentsByWindow(appointmentWindowId, appointmentTypeKey, contextInfo);
 112  
     }
 113  
 
 114  
     @Override
 115  
     public AppointmentInfo updateAppointment(@WebParam(name = "appointmentId") String appointmentId, @WebParam(name = "appointmentInfo") AppointmentInfo appointmentInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
 116  0
         return getNextDecorator().updateAppointment(appointmentId, appointmentInfo, contextInfo);
 117  
     }
 118  
 
 119  
     @Override
 120  
     public StatusInfo deleteAppointment(@WebParam(name = "appointmentId") String appointmentId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 121  0
         return getNextDecorator().deleteAppointment(appointmentId, contextInfo);
 122  
     }
 123  
 
 124  
     @Override
 125  
     public StatusInfo deleteAppointmentsBySlot(@WebParam(name = "appointmentSlotId") String appointmentSlotId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 126  0
         return getNextDecorator().deleteAppointmentsBySlot(appointmentSlotId, contextInfo);
 127  
     }
 128  
 
 129  
     @Override
 130  
     public StatusInfo deleteAppointmentsByWindow(@WebParam(name = "appointmentWindowId") String appointmentWindowId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 131  0
         return getNextDecorator().deleteAppointmentsByWindow(appointmentWindowId, contextInfo);
 132  
     }
 133  
 
 134  
     @Override
 135  
     public AppointmentWindowInfo getAppointmentWindow(@WebParam(name = "appointmentWindowId") String appointmentWindowId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 136  0
         return getNextDecorator().getAppointmentWindow(appointmentWindowId, contextInfo);
 137  
     }
 138  
 
 139  
     @Override
 140  
     public List<AppointmentWindowInfo> getAppointmentWindowsByIds(@WebParam(name = "appointmentWindowIds") List<String> appointmentWindowIds, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 141  0
         return getNextDecorator().getAppointmentWindowsByIds(appointmentWindowIds, contextInfo);
 142  
     }
 143  
 
 144  
     @Override
 145  
     public List<String> getAppointmentWindowIdsByType(@WebParam(name = "appointmentWindowTypeKey") String appointmentWindowTypeKey, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 146  0
         return getNextDecorator().getAppointmentWindowIdsByType(appointmentWindowTypeKey, contextInfo);
 147  
     }
 148  
 
 149  
     @Override
 150  
     public List<String> getAppointmentWindowIdsByPopulation(@WebParam(name = "populationId") String populationId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 151  0
         return getNextDecorator().getAppointmentWindowIdsByPopulation(populationId, contextInfo);
 152  
     }
 153  
 
 154  
     @Override
 155  
     public List<AppointmentWindowInfo> getAppointmentWindowsByPeriod(@WebParam(name = "periodMilestoneId") String periodMilestoneId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 156  0
         return getNextDecorator().getAppointmentWindowsByPeriod(periodMilestoneId, contextInfo);
 157  
     }
 158  
 
 159  
     @Override
 160  
     public List<String> searchForAppointmentWindowIds(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 161  0
         return getNextDecorator().searchForAppointmentWindowIds(criteria, contextInfo);
 162  
     }
 163  
 
 164  
     @Override
 165  
     public List<AppointmentWindowInfo> searchForAppointmentWindows(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 166  0
         return getNextDecorator().searchForAppointmentWindows(criteria, contextInfo);
 167  
     }
 168  
 
 169  
     @Override
 170  
     public List<ValidationResultInfo> validateAppointmentWindow(@WebParam(name = "validationTypeKey") String validationTypeKey, @WebParam(name = "appointmentWindowTypeKey") String appointmentWindowTypeKey, @WebParam(name = "appointmentWindowInfo") AppointmentWindowInfo appointmentWindowInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 171  0
         return getNextDecorator().validateAppointmentWindow(validationTypeKey, appointmentWindowTypeKey, appointmentWindowInfo, contextInfo);
 172  
     }
 173  
 
 174  
     @Override
 175  
     public AppointmentWindowInfo createAppointmentWindow(@WebParam(name = "appointmentWindowTypeKey") String appointmentWindowTypeKey, @WebParam(name = "appointmentWindowInfo") AppointmentWindowInfo appointmentWindowInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 176  0
         return getNextDecorator().createAppointmentWindow(appointmentWindowTypeKey, appointmentWindowInfo, contextInfo);
 177  
     }
 178  
 
 179  
     @Override
 180  
     public AppointmentWindowInfo updateAppointmentWindow(@WebParam(name = "appointmentWindowId") String appointmentWindowId, @WebParam(name = "appointmentWindowInfo") AppointmentWindowInfo appointmentWindowInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
 181  0
         return getNextDecorator().updateAppointmentWindow(appointmentWindowId, appointmentWindowInfo, contextInfo);
 182  
     }
 183  
 
 184  
     @Override
 185  
     public StatusInfo deleteAppointmentWindowCascading(String appointmentWindowId, ContextInfo contextInfo) throws
 186  
             DoesNotExistException, InvalidParameterException, MissingParameterException,
 187  
             OperationFailedException, PermissionDeniedException {
 188  0
         return getNextDecorator().deleteAppointmentWindowCascading(appointmentWindowId, contextInfo);
 189  
     }
 190  
 
 191  
     @Override
 192  
     public AppointmentSlotInfo getAppointmentSlot(@WebParam(name = "appointmentSlotId") String appointmentSlotId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 193  0
         return getNextDecorator().getAppointmentSlot(appointmentSlotId, contextInfo);
 194  
     }
 195  
 
 196  
     @Override
 197  
     public List<AppointmentSlotInfo> getAppointmentSlotsByIds(@WebParam(name = "appointmentSlotIds") List<String> appointmentSlotIds, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 198  0
         return getNextDecorator().getAppointmentSlotsByIds(appointmentSlotIds, contextInfo);
 199  
     }
 200  
 
 201  
     @Override
 202  
     public List<AppointmentSlotInfo> getAppointmentSlotsByPersonAndPeriod(@WebParam(name = "personId") String personId, @WebParam(name = "periodMilestoneId") String periodMilestoneId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 203  0
         return getNextDecorator().getAppointmentSlotsByPersonAndPeriod(personId, periodMilestoneId, contextInfo);
 204  
     }
 205  
 
 206  
     @Override
 207  
     public List<AppointmentSlotInfo> getAppointmentSlotsByWindow(@WebParam(name = "appointmentWindowId") String appointmentWindowId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 208  0
         return getNextDecorator().getAppointmentSlotsByWindow(appointmentWindowId, contextInfo);
 209  
     }
 210  
 
 211  
     @Override
 212  
     public List<String> searchForAppointmentSlotIds(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 213  0
         return getNextDecorator().searchForAppointmentSlotIds(criteria, contextInfo);
 214  
     }
 215  
 
 216  
     @Override
 217  
     public List<AppointmentSlotInfo> searchForAppointmentSlots(@WebParam(name = "criteria") QueryByCriteria criteria, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 218  0
         return getNextDecorator().searchForAppointmentSlots(criteria, contextInfo);
 219  
     }
 220  
 
 221  
     @Override
 222  
     public List<ValidationResultInfo> validateAppointmentSlot(@WebParam(name = "validationTypeKey") String validationTypeKey, @WebParam(name = "appointmentWindowId") String appointmentWindowId, @WebParam(name = "appointmentSlotTypeKey") String appointmentSlotTypeKey, @WebParam(name = "appointmentSlotInfo") AppointmentSlotInfo appointmentSlotInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 223  0
         return getNextDecorator().validateAppointmentSlot(validationTypeKey, appointmentWindowId, appointmentSlotTypeKey, appointmentSlotInfo, contextInfo);
 224  
     }
 225  
 
 226  
     @Override
 227  
     public AppointmentSlotInfo createAppointmentSlot(@WebParam(name = "appointmentWindowId") String appointmentWindowId, @WebParam(name = "appointmentSlotTypeKey") String appointmentSlotTypeKey, @WebParam(name = "appointmentSlotInfo") AppointmentSlotInfo appointmentSlotInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 228  0
         return getNextDecorator().createAppointmentSlot(appointmentWindowId, appointmentSlotTypeKey, appointmentSlotInfo, contextInfo);
 229  
     }
 230  
 
 231  
     @Override
 232  
     public List<AppointmentSlotInfo> generateAppointmentSlotsByWindow(@WebParam(name = "appointmentWindowId") String appointmentWindowId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
 233  0
         return getNextDecorator().generateAppointmentSlotsByWindow(appointmentWindowId, contextInfo);
 234  
     }
 235  
 
 236  
     @Override
 237  
     public AppointmentSlotInfo updateAppointmentSlot(@WebParam(name = "appointmentSlotId") String appointmentSlotId, @WebParam(name = "appointmentSlotInfo") AppointmentSlotInfo appointmentSlotInfo, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
 238  0
         return getNextDecorator().updateAppointmentSlot(appointmentSlotId, appointmentSlotInfo, contextInfo);
 239  
     }
 240  
 
 241  
     @Override
 242  
     public StatusInfo deleteAppointmentSlotCascading(@WebParam(name = "appointmentSlotId") String appointmentSlotId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 243  0
         return getNextDecorator().deleteAppointmentSlotCascading(appointmentSlotId, contextInfo);
 244  
     }
 245  
 
 246  
     @Override
 247  
     public StatusInfo deleteAppointmentSlotsByWindowCascading(@WebParam(name = "appointmentWindowId") String appointmentWindowId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 248  0
         return getNextDecorator().deleteAppointmentSlotsByWindowCascading(appointmentWindowId, contextInfo);
 249  
     }
 250  
 }