1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.rice.kew.dto;
18
19 import org.kuali.rice.kew.util.KEWConstants;
20
21
22
23
24
25
26
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;
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 }