Coverage Report - org.kuali.student.enrollment.lui.service.LuiServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
LuiServiceDecorator
0%
0/43
0%
0/2
1.051
 
 1  
 package org.kuali.student.enrollment.lui.service;
 2  
 
 3  
 import java.util.List;
 4  
 
 5  
 import org.kuali.rice.core.api.criteria.QueryByCriteria;
 6  
 
 7  
 import org.kuali.student.enrollment.lui.dto.LuiInfo;
 8  
 import org.kuali.student.enrollment.lui.dto.LuiLuiRelationInfo;
 9  
 import org.kuali.student.enrollment.lui.dto.LuiCapacityInfo;
 10  
 
 11  
 import org.kuali.student.r2.common.dto.ContextInfo;
 12  
 import org.kuali.student.r2.common.dto.StatusInfo;
 13  
 import org.kuali.student.r2.common.dto.ValidationResultInfo;
 14  
 
 15  
 import org.kuali.student.r2.common.exceptions.AlreadyExistsException;
 16  
 import org.kuali.student.r2.common.exceptions.CircularRelationshipException;
 17  
 import org.kuali.student.r2.common.exceptions.DataValidationErrorException;
 18  
 import org.kuali.student.r2.common.exceptions.DependentObjectsExistException;
 19  
 import org.kuali.student.r2.common.exceptions.DoesNotExistException;
 20  
 import org.kuali.student.r2.common.exceptions.InvalidParameterException;
 21  
 import org.kuali.student.r2.common.exceptions.MissingParameterException;
 22  
 import org.kuali.student.r2.common.exceptions.OperationFailedException;
 23  
 import org.kuali.student.r2.common.exceptions.PermissionDeniedException;
 24  
 import org.kuali.student.r2.common.exceptions.VersionMismatchException;
 25  
 
 26  
 
 27  0
 public class LuiServiceDecorator implements LuiService
 28  
 {        
 29  
     private LuiService nextDecorator;
 30  
 
 31  
     public LuiService getNextDecorator()
 32  
         throws OperationFailedException {
 33  0
         if (null == nextDecorator) {
 34  0
             throw new OperationFailedException("Misconfigured application: nextDecorator is null");
 35  
         }
 36  
 
 37  0
         return nextDecorator;
 38  
     }
 39  
 
 40  
     public void setNextDecorator(LuiService nextDecorator) {
 41  0
         this.nextDecorator = nextDecorator;
 42  0
     }
 43  
 
 44  
 
 45  
     @Override
 46  
     public LuiInfo getLui(String luiId, ContextInfo context)
 47  
         throws DoesNotExistException, InvalidParameterException,
 48  
                MissingParameterException, OperationFailedException {
 49  
 
 50  0
         return getNextDecorator().getLui(luiId, context);
 51  
     }
 52  
 
 53  
     @Override
 54  
     public List<LuiInfo> getLuisByIds(List<String> luiIds, ContextInfo context) 
 55  
         throws DoesNotExistException, InvalidParameterException, 
 56  
                MissingParameterException, OperationFailedException {
 57  
 
 58  0
         return getNextDecorator().getLuisByIds(luiIds, context);
 59  
     }
 60  
 
 61  
     @Override
 62  
     public List<String> getLuiIdsByType(String luiTypeKey, ContextInfo context) 
 63  
         throws DoesNotExistException, InvalidParameterException, 
 64  
                MissingParameterException, OperationFailedException {
 65  
 
 66  0
         return getNextDecorator().getLuiIdsByType(luiTypeKey, context);
 67  
     }
 68  
 
 69  
     @Override
 70  
     public List<LuiInfo> getLuisInAtpByCluId(String cluId, String atpId, ContextInfo context) 
 71  
         throws DoesNotExistException, InvalidParameterException, 
 72  
                MissingParameterException, OperationFailedException {
 73  
 
 74  0
         return getNextDecorator().getLuisInAtpByCluId(cluId, atpId, context);
 75  
     }
 76  
 
 77  
     @Override
 78  
     public List<String> getLuiIdsByCluId(String cluId, ContextInfo context)
 79  
         throws DoesNotExistException, InvalidParameterException,
 80  
                MissingParameterException, OperationFailedException {
 81  
 
 82  0
         return getNextDecorator().getLuiIdsByCluId(cluId, context);
 83  
     }
 84  
 
 85  
     @Override
 86  
     public List<String> getLuiIdsInAtpByCluId(String cluId, String atpId, ContextInfo context) 
 87  
         throws DoesNotExistException, InvalidParameterException, 
 88  
                MissingParameterException, OperationFailedException {
 89  
 
 90  0
         return getNextDecorator().getLuiIdsInAtpByCluId(cluId, atpId, context);
 91  
     }
 92  
 
 93  
     @Override
 94  
     public List<LuiInfo> getLuisByRelation(String relatedLuiId, String luLuRelationTypeKey, ContextInfo context)
 95  
         throws InvalidParameterException, MissingParameterException,
 96  
                OperationFailedException {
 97  
 
 98  0
         return getNextDecorator().getLuisByRelation(relatedLuiId, luLuRelationTypeKey, context);
 99  
     }
 100  
 
 101  
     @Override
 102  
     public List<String> getLuiIdsByRelation(String relatedLuiId, String luLuRelationTypeKey, ContextInfo context)
 103  
     throws InvalidParameterException, MissingParameterException,
 104  
     OperationFailedException {
 105  
 
 106  0
         return getNextDecorator().getLuiIdsByRelation(relatedLuiId, luLuRelationTypeKey, context);
 107  
     }
 108  
 
 109  
     @Override
 110  
     public List<LuiInfo> getRelatedLuisByLuiId(String luiId, String luLuRelationTypeKey, ContextInfo context)
 111  
         throws InvalidParameterException, MissingParameterException,
 112  
                OperationFailedException {
 113  
 
 114  0
         return getNextDecorator().getRelatedLuisByLuiId(luiId, luLuRelationTypeKey, context);
 115  
     }
 116  
 
 117  
     @Override
 118  
     public List<String> getRelatedLuiIdsByLuiId(String luiId, String luLuRelationTypeKey, ContextInfo context)
 119  
         throws InvalidParameterException, MissingParameterException,
 120  
                OperationFailedException {
 121  
 
 122  0
         return getNextDecorator().getRelatedLuiIdsByLuiId(luiId, luLuRelationTypeKey, context);
 123  
     }
 124  
 
 125  
     @Override
 126  
     public List<String> searchForLuiIds(QueryByCriteria criteria, ContextInfo context) 
 127  
         throws InvalidParameterException, MissingParameterException, 
 128  
                OperationFailedException, PermissionDeniedException {
 129  
 
 130  0
         return getNextDecorator().searchForLuiIds(criteria, context);
 131  
     }
 132  
 
 133  
     @Override
 134  
     public List<LuiInfo> searchForLuis(QueryByCriteria criteria, ContextInfo context) 
 135  
         throws InvalidParameterException, MissingParameterException, 
 136  
                OperationFailedException, PermissionDeniedException {
 137  
 
 138  0
         return getNextDecorator().searchForLuis(criteria, context);
 139  
     }
 140  
 
 141  
     @Override
 142  
     public List<ValidationResultInfo> validateLui(String validationType, LuiInfo luiInfo, ContextInfo context) 
 143  
         throws DoesNotExistException, InvalidParameterException, 
 144  
                MissingParameterException, OperationFailedException {
 145  
 
 146  0
         return getNextDecorator().validateLui(validationType,luiInfo, context);
 147  
     }
 148  
 
 149  
     @Override
 150  
     public LuiInfo createLui(String cluId, String atpId, LuiInfo luiInfo, ContextInfo context) 
 151  
         throws AlreadyExistsException, DataValidationErrorException, 
 152  
                DoesNotExistException, InvalidParameterException, 
 153  
                MissingParameterException, OperationFailedException, 
 154  
                PermissionDeniedException {
 155  
 
 156  0
         return getNextDecorator().createLui(cluId,atpId,luiInfo, context);
 157  
     }
 158  
 
 159  
     @Override
 160  
     public LuiInfo updateLui(String luiId, LuiInfo luiInfo, ContextInfo context)
 161  
         throws DataValidationErrorException, DoesNotExistException,
 162  
                InvalidParameterException, MissingParameterException,
 163  
                OperationFailedException, PermissionDeniedException,
 164  
                VersionMismatchException {
 165  
 
 166  0
         return getNextDecorator().updateLui(luiId,luiInfo, context);
 167  
     }
 168  
 
 169  
     @Override
 170  
     public StatusInfo deleteLui(String luiId, ContextInfo context)
 171  
         throws DependentObjectsExistException, DoesNotExistException,
 172  
                InvalidParameterException, MissingParameterException,
 173  
                OperationFailedException, PermissionDeniedException {
 174  
 
 175  0
         return getNextDecorator().deleteLui(luiId, context);
 176  
     }
 177  
 
 178  
     @Override
 179  
     public LuiInfo updateLuiState(String luiId, String luState, ContextInfo context) 
 180  
         throws DataValidationErrorException, DoesNotExistException, 
 181  
                InvalidParameterException, MissingParameterException, 
 182  
                OperationFailedException, PermissionDeniedException {
 183  
 
 184  0
         return getNextDecorator().updateLuiState(luiId, luState, context);
 185  
     }
 186  
 
 187  
     @Override
 188  
     public LuiLuiRelationInfo getLuiLuiRelation(String luiLuiRelationId, ContextInfo context) 
 189  
         throws DoesNotExistException, InvalidParameterException, 
 190  
                MissingParameterException, OperationFailedException {
 191  
 
 192  0
         return getNextDecorator().getLuiLuiRelation(luiLuiRelationId, context);
 193  
     }
 194  
 
 195  
     @Override
 196  
     public List<LuiLuiRelationInfo> getLuiLuiRelationsByIds(List<String> luiLuiRelationIds, ContextInfo context) 
 197  
         throws DoesNotExistException, InvalidParameterException, 
 198  
                MissingParameterException, OperationFailedException {
 199  
 
 200  0
         return getNextDecorator().getLuiLuiRelationsByIds(luiLuiRelationIds, context);
 201  
     }
 202  
 
 203  
     @Override
 204  
     public List<String> getLuiLuiRelationIdsByType(String luiLuiRelationTypeKey, ContextInfo context) 
 205  
         throws DoesNotExistException, InvalidParameterException, 
 206  
                MissingParameterException, OperationFailedException {
 207  
 
 208  0
         return getNextDecorator().getLuiLuiRelationIdsByType(luiLuiRelationTypeKey, context);
 209  
     }
 210  
 
 211  
     @Override
 212  
     public List<LuiLuiRelationInfo> getLuiLuiRelationsByLui(String luiId, ContextInfo context) 
 213  
         throws DoesNotExistException, InvalidParameterException, 
 214  
                MissingParameterException, OperationFailedException {
 215  
 
 216  0
         return getNextDecorator().getLuiLuiRelationsByLui(luiId, context);
 217  
     }
 218  
 
 219  
     @Override
 220  
     public List<String> searchForLuiLuiRelationIds(QueryByCriteria criteria, ContextInfo context) 
 221  
         throws InvalidParameterException, MissingParameterException, 
 222  
                OperationFailedException, PermissionDeniedException {
 223  
 
 224  0
         return getNextDecorator().searchForLuiLuiRelationIds(criteria, context);
 225  
     }
 226  
 
 227  
     @Override
 228  
     public List<LuiLuiRelationInfo> searchForLuiLuiRelations(QueryByCriteria criteria, ContextInfo context) 
 229  
         throws InvalidParameterException, MissingParameterException, 
 230  
                OperationFailedException, PermissionDeniedException {
 231  
 
 232  0
         return getNextDecorator().searchForLuiLuiRelations(criteria, context);
 233  
     }
 234  
 
 235  
     @Override
 236  
     public List<ValidationResultInfo> validateLuiLuiRelation(String validationType, LuiLuiRelationInfo luiLuiRelationInfo, ContextInfo context) 
 237  
         throws DoesNotExistException, InvalidParameterException, 
 238  
                MissingParameterException, OperationFailedException {
 239  
 
 240  0
         return getNextDecorator().validateLuiLuiRelation(validationType, luiLuiRelationInfo, context);
 241  
     }
 242  
 
 243  
     @Override
 244  
     public LuiLuiRelationInfo createLuiLuiRelation(String luiId, String relatedLuiId, String luLuRelationTypeKey, LuiLuiRelationInfo luiLuiRelationInfo, ContextInfo context)
 245  
         throws AlreadyExistsException, CircularRelationshipException,
 246  
                DataValidationErrorException, DoesNotExistException,
 247  
                InvalidParameterException, MissingParameterException,
 248  
                OperationFailedException, PermissionDeniedException {
 249  
 
 250  0
         return getNextDecorator().createLuiLuiRelation(luiId, relatedLuiId, luLuRelationTypeKey, luiLuiRelationInfo, context);
 251  
     }
 252  
 
 253  
     @Override
 254  
     public LuiLuiRelationInfo updateLuiLuiRelation(String luiLuiRelationId, LuiLuiRelationInfo luiLuiRelationInfo, ContextInfo context)
 255  
         throws DataValidationErrorException, DoesNotExistException,
 256  
                InvalidParameterException, MissingParameterException,
 257  
                OperationFailedException, PermissionDeniedException,
 258  
                VersionMismatchException {
 259  
 
 260  0
         return getNextDecorator().updateLuiLuiRelation(luiLuiRelationId, luiLuiRelationInfo, context);
 261  
     }
 262  
 
 263  
     @Override
 264  
     public StatusInfo deleteLuiLuiRelation(String luiLuiRelationId, ContextInfo context) 
 265  
         throws DoesNotExistException, InvalidParameterException, 
 266  
                MissingParameterException, OperationFailedException, 
 267  
                PermissionDeniedException {
 268  
 
 269  0
         return getNextDecorator().deleteLuiLuiRelation(luiLuiRelationId,context);
 270  
     }
 271  
 
 272  
     @Override
 273  
     public LuiCapacityInfo getLuiCapacity(String luiCapacityId, ContextInfo context) 
 274  
         throws DoesNotExistException, InvalidParameterException, 
 275  
                MissingParameterException, OperationFailedException {
 276  
 
 277  0
         return getNextDecorator().getLuiCapacity(luiCapacityId, context);
 278  
     }
 279  
 
 280  
     @Override
 281  
     public List<LuiCapacityInfo> getLuiCapacitiesByIds(List<String> luiCapacityIds, ContextInfo context) 
 282  
         throws DoesNotExistException, InvalidParameterException, 
 283  
                MissingParameterException, OperationFailedException {
 284  
 
 285  0
         return getNextDecorator().getLuiCapacitiesByIds(luiCapacityIds, context);
 286  
     }
 287  
 
 288  
     @Override
 289  
     public List<LuiCapacityInfo> getLuiCapacitiesByLui(String luiId, ContextInfo context) 
 290  
             throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
 291  0
         return getNextDecorator().getLuiCapacitiesByLui(luiId, context);
 292  
     }
 293  
 
 294  
     
 295  
     
 296  
     @Override
 297  
     public List<String> getLuiCapacityIdsByType(String luiCapacityTypeKey, ContextInfo context) 
 298  
         throws DoesNotExistException, InvalidParameterException, 
 299  
                MissingParameterException, OperationFailedException {
 300  
 
 301  0
         return getNextDecorator().getLuiCapacityIdsByType(luiCapacityTypeKey, context);
 302  
     }
 303  
 
 304  
     @Override
 305  
     public List<String> searchForLuiCapacityIds(QueryByCriteria criteria, ContextInfo context) 
 306  
         throws InvalidParameterException, MissingParameterException, 
 307  
                OperationFailedException, PermissionDeniedException {
 308  
 
 309  0
         return getNextDecorator().searchForLuiCapacityIds(criteria, context);
 310  
     }
 311  
 
 312  
     @Override
 313  
     public List<LuiCapacityInfo> searchForLuiCapacities(QueryByCriteria criteria, ContextInfo context) 
 314  
         throws InvalidParameterException, MissingParameterException, 
 315  
                OperationFailedException, PermissionDeniedException {
 316  
 
 317  0
         return getNextDecorator().searchForLuiCapacities(criteria, context);
 318  
     }
 319  
 
 320  
     @Override
 321  
     public List<ValidationResultInfo> validateLuiCapacity(String validationType, LuiCapacityInfo luiCapacityInfo, ContextInfo context) 
 322  
         throws DoesNotExistException, InvalidParameterException, 
 323  
                MissingParameterException, OperationFailedException {
 324  
 
 325  0
         return getNextDecorator().validateLuiCapacity(validationType, luiCapacityInfo, context);
 326  
     }
 327  
 
 328  
     @Override
 329  
     public LuiCapacityInfo createLuiCapacity(LuiCapacityInfo luiCapacityInfo, ContextInfo context) 
 330  
         throws AlreadyExistsException, DataValidationErrorException, 
 331  
                DoesNotExistException, InvalidParameterException, 
 332  
                MissingParameterException, OperationFailedException, 
 333  
                PermissionDeniedException {
 334  
 
 335  0
         return getNextDecorator().createLuiCapacity(luiCapacityInfo, context);
 336  
     }
 337  
 
 338  
     @Override
 339  
     public LuiCapacityInfo updateLuiCapacity(String luiCapacityId, LuiCapacityInfo luiCapacityInfo, ContextInfo context) 
 340  
         throws DataValidationErrorException, DoesNotExistException, 
 341  
                InvalidParameterException, MissingParameterException, 
 342  
                OperationFailedException, PermissionDeniedException, 
 343  
                VersionMismatchException {
 344  
 
 345  0
         return getNextDecorator().updateLuiCapacity(luiCapacityId, luiCapacityInfo, context);
 346  
     }
 347  
 
 348  
     @Override
 349  
     public StatusInfo deleteLuiCapacity(String luiCapacityId, ContextInfo context) 
 350  
         throws DependentObjectsExistException, DoesNotExistException, 
 351  
                InvalidParameterException, MissingParameterException, 
 352  
                OperationFailedException, PermissionDeniedException {
 353  
 
 354  0
         return getNextDecorator().deleteLuiCapacity(luiCapacityId, context);
 355  
     }
 356  
 }