View Javadoc

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    public RouteTemplateEntryDTO() {}
41  
42    public RouteTemplateEntryDTO(int docTypeId, String routeMethodName, int groupId, int routeLevel,
43      String routeLevelName, boolean finalApprover, boolean manadatoryRoute) {
44      this.docTypeId = new Long(docTypeId);
45      this.exceptionGroupId = new Long(groupId);
46      this.finalApprover = finalApprover;
47      this.routeLevel = new Integer(routeLevel);
48      this.routeLevelName = routeLevelName;
49      this.routeMethodName = routeMethodName;
50      this.mandatoryRoute = manadatoryRoute;
51    }
52  
53    public Long getDocTypeId() {
54      return docTypeId;
55    }
56  
57    public Long getExceptionGroupId() {
58      return exceptionGroupId;
59    }
60  
61    public Integer getJrf_ver_nbr() {
62      return jrf_ver_nbr;
63    }
64  
65    public Integer getRouteLevel() {
66      return routeLevel;
67    }
68  
69    public String getRouteLevelName() {
70      return routeLevelName;
71    }
72  
73    public String getRouteMethodName() {
74      return routeMethodName;
75    }
76  
77    public void setRouteMethodName(String routeMethodName) {
78      this.routeMethodName = routeMethodName;
79    }
80  
81    public void setRouteLevelName(String routeLevelName) {
82      this.routeLevelName = routeLevelName;
83    }
84  
85    public void setRouteLevel(Integer routeLevel) {
86      this.routeLevel = routeLevel;
87    }
88  
89    public void setJrf_ver_nbr(Integer jrf_ver_nbr) {
90      this.jrf_ver_nbr = jrf_ver_nbr;
91    }
92  
93    public void setExceptionGroupId(Long exceptionGroupId) {
94      this.exceptionGroupId = exceptionGroupId;
95    }
96  
97    public void setDocTypeId(Long docTypeId) {
98      this.docTypeId = docTypeId;
99    }
100 
101   public void setFinalApprover(boolean finalApprover) {
102     this.finalApprover = finalApprover;
103   }
104 
105   public boolean isFinalApprover() {
106     return finalApprover;
107   }
108 
109   public boolean isMandatoryRoute() {
110     return mandatoryRoute;
111   }
112 
113   public void setMandatoryRoute(boolean mandatoryRoute) {
114     this.mandatoryRoute = mandatoryRoute;
115   }
116 
117   public void setMandatoryRoute(String mandatoryRoute) {
118     this.mandatoryRoute = KEWConstants.TRUE_CD.equals(mandatoryRoute);
119 
120     if (mandatoryRoute == null) {
121       this.mandatoryRoute = false;
122     }
123   }
124 
125 }