Coverage Report - org.kuali.rice.kew.dto.RouteTemplateEntryDTO
 
Classes in this File Line Coverage Branch Coverage Complexity
RouteTemplateEntryDTO
0%
0/38
0%
0/2
1.053
 
 1  
 /*
 2  
  * Copyright 2005-2008 The Kuali Foundation
 3  
  * 
 4  
  * 
 5  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 6  
  * you may not use this file except in compliance with the License.
 7  
  * You may obtain a copy of the License at
 8  
  * 
 9  
  * http://www.opensource.org/licenses/ecl2.php
 10  
  * 
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.kuali.rice.kew.dto;
 18  
 
 19  
 import org.kuali.rice.kew.util.KEWConstants;
 20  
 
 21  
 /**
 22  
  * Represents a route level
 23  
  * 
 24  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 25  
  * 
 26  
  * @deprecated use RouteNodeVO instead
 27  
  */
 28  
 public class RouteTemplateEntryDTO implements java.io.Serializable, Cloneable {
 29  
     
 30  
   static final long serialVersionUID = -6088763707485186852L;
 31  
   private Long docTypeId;
 32  
   private String routeMethodName;
 33  
   private Integer routeLevel;
 34  
   private Long exceptionGroupId; // the Group that gets the document if this route method throws an exception
 35  
   private String routeLevelName;
 36  
   private boolean finalApprover;
 37  
   private boolean mandatoryRoute;
 38  
   private Integer jrf_ver_nbr;
 39  
 
 40  0
   public RouteTemplateEntryDTO() {}
 41  
 
 42  
   public RouteTemplateEntryDTO(int docTypeId, String routeMethodName, int groupId, int routeLevel,
 43  0
     String routeLevelName, boolean finalApprover, boolean manadatoryRoute) {
 44  0
     this.docTypeId = new Long(docTypeId);
 45  0
     this.exceptionGroupId = new Long(groupId);
 46  0
     this.finalApprover = finalApprover;
 47  0
     this.routeLevel = new Integer(routeLevel);
 48  0
     this.routeLevelName = routeLevelName;
 49  0
     this.routeMethodName = routeMethodName;
 50  0
     this.mandatoryRoute = manadatoryRoute;
 51  0
   }
 52  
 
 53  
   public Long getDocTypeId() {
 54  0
     return docTypeId;
 55  
   }
 56  
 
 57  
   public Long getExceptionGroupId() {
 58  0
     return exceptionGroupId;
 59  
   }
 60  
 
 61  
   public Integer getJrf_ver_nbr() {
 62  0
     return jrf_ver_nbr;
 63  
   }
 64  
 
 65  
   public Integer getRouteLevel() {
 66  0
     return routeLevel;
 67  
   }
 68  
 
 69  
   public String getRouteLevelName() {
 70  0
     return routeLevelName;
 71  
   }
 72  
 
 73  
   public String getRouteMethodName() {
 74  0
     return routeMethodName;
 75  
   }
 76  
 
 77  
   public void setRouteMethodName(String routeMethodName) {
 78  0
     this.routeMethodName = routeMethodName;
 79  0
   }
 80  
 
 81  
   public void setRouteLevelName(String routeLevelName) {
 82  0
     this.routeLevelName = routeLevelName;
 83  0
   }
 84  
 
 85  
   public void setRouteLevel(Integer routeLevel) {
 86  0
     this.routeLevel = routeLevel;
 87  0
   }
 88  
 
 89  
   public void setJrf_ver_nbr(Integer jrf_ver_nbr) {
 90  0
     this.jrf_ver_nbr = jrf_ver_nbr;
 91  0
   }
 92  
 
 93  
   public void setExceptionGroupId(Long exceptionGroupId) {
 94  0
     this.exceptionGroupId = exceptionGroupId;
 95  0
   }
 96  
 
 97  
   public void setDocTypeId(Long docTypeId) {
 98  0
     this.docTypeId = docTypeId;
 99  0
   }
 100  
 
 101  
   public void setFinalApprover(boolean finalApprover) {
 102  0
     this.finalApprover = finalApprover;
 103  0
   }
 104  
 
 105  
   public boolean isFinalApprover() {
 106  0
     return finalApprover;
 107  
   }
 108  
 
 109  
   public boolean isMandatoryRoute() {
 110  0
     return mandatoryRoute;
 111  
   }
 112  
 
 113  
   public void setMandatoryRoute(boolean mandatoryRoute) {
 114  0
     this.mandatoryRoute = mandatoryRoute;
 115  0
   }
 116  
 
 117  
   public void setMandatoryRoute(String mandatoryRoute) {
 118  0
     this.mandatoryRoute = KEWConstants.TRUE_CD.equals(mandatoryRoute);
 119  
 
 120  0
     if (mandatoryRoute == null) {
 121  0
       this.mandatoryRoute = false;
 122  
     }
 123  0
   }
 124  
 
 125  
 }