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 | 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 | |
} |