Coverage Report - org.kuali.student.r2.core.versionmanagement.service.VersionManagementServiceDecorator
 
Classes in this File Line Coverage Branch Coverage Complexity
VersionManagementServiceDecorator
0%
0/11
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.versionmanagement.service;
 17  
 
 18  
 import org.kuali.student.r2.common.dto.ContextInfo;
 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.core.versionmanagement.dto.VersionDisplayInfo;
 25  
 
 26  
 import java.util.Date;
 27  
 import java.util.List;
 28  
 
 29  
 /**
 30  
  * @Version 2.0
 31  
  * @Author Sri komandur@uw.edu
 32  
  */
 33  0
 public class VersionManagementServiceDecorator implements VersionManagementService {
 34  
 
 35  
     private VersionManagementService nextDecorator;
 36  
 
 37  
     public VersionManagementService getNextDecorator() {
 38  0
         return nextDecorator;
 39  
     }
 40  
 
 41  
     public void setNextDecorator(VersionManagementService nextDecorator) {
 42  0
         this.nextDecorator = nextDecorator;
 43  0
     }
 44  
 
 45  
     @Override
 46  
     public List<VersionDisplayInfo> getVersions(String refObjectUri, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 47  0
         return nextDecorator.getVersions(refObjectUri, refObjectId, contextInfo);
 48  
     }
 49  
 
 50  
     @Override
 51  
     public VersionDisplayInfo getFirstVersion(String refObjectUri, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 52  0
         return nextDecorator.getFirstVersion(refObjectUri, refObjectId, contextInfo);
 53  
     }
 54  
 
 55  
     @Override
 56  
     public VersionDisplayInfo getLatestVersion(String refObjectUri, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 57  0
         return nextDecorator.getLatestVersion(refObjectUri, refObjectId, contextInfo);
 58  
     }
 59  
 
 60  
     @Override
 61  
     public VersionDisplayInfo getCurrentVersion(String refObjectUri, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 62  0
         return nextDecorator.getCurrentVersion(refObjectUri, refObjectId, contextInfo);
 63  
     }
 64  
 
 65  
     @Override
 66  
     public VersionDisplayInfo getVersionBySequenceNumber(String refObjectUri, String refObjectId, Long sequence, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 67  0
         return nextDecorator.getVersionBySequenceNumber(refObjectUri, refObjectId, sequence, contextInfo);
 68  
     }
 69  
 
 70  
     @Override
 71  
     public VersionDisplayInfo getCurrentVersionOnDate(String refObjectUri, String refObjectId, Date date, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 72  0
         return nextDecorator.getCurrentVersionOnDate(refObjectUri, refObjectId, date, contextInfo);
 73  
     }
 74  
 
 75  
     @Override
 76  
     public List<VersionDisplayInfo> getVersionsInDateRange(String refObjectUri, String refObjectId, Date from, Date to, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
 77  0
         return nextDecorator.getVersionsInDateRange(refObjectUri, refObjectId, from, to, contextInfo);
 78  
     }
 79  
 }