1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.rice.kns.bo; |
17 |
|
|
18 |
|
import org.apache.commons.lang.StringUtils; |
19 |
|
import org.kuali.rice.kew.util.CodeTranslator; |
20 |
|
import org.kuali.rice.kew.util.KEWConstants; |
21 |
|
|
22 |
|
import javax.persistence.Column; |
23 |
|
import javax.persistence.Id; |
24 |
|
import javax.persistence.MappedSuperclass; |
25 |
|
import javax.persistence.Transient; |
26 |
|
import java.util.Map; |
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
@MappedSuperclass |
|
|
| 0% |
Uncovered Elements: 27 (27) |
Complexity: 12 |
Complexity Density: 0.86 |
|
34 |
|
public abstract class AdHocRouteRecipient extends PersistableBusinessObjectBase { |
35 |
|
|
36 |
|
private static final long serialVersionUID = -6499610180752232494L; |
37 |
|
private static Map actionRequestCds = CodeTranslator.arLabels; |
38 |
|
public static final Integer PERSON_TYPE = new Integer(0); |
39 |
|
public static final Integer WORKGROUP_TYPE = new Integer(1); |
40 |
|
|
41 |
|
@Id |
42 |
|
@Column(name="RECIP_TYP_CD") |
43 |
|
protected Integer type; |
44 |
|
@Id |
45 |
|
@Column(name="ACTN_RQST_CD") |
46 |
|
protected String actionRequested; |
47 |
|
@Id |
48 |
|
@Column(name="ACTN_RQST_RECIP_ID") |
49 |
|
protected String id; |
50 |
|
@Transient |
51 |
|
protected String name; |
52 |
|
@Column(name="DOC_HDR_ID") |
53 |
|
protected String documentNumber; |
54 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
55 |
0
|
public AdHocRouteRecipient() {... |
56 |
|
|
57 |
0
|
this.actionRequested = KEWConstants.ACTION_REQUEST_APPROVE_REQ; |
58 |
0
|
this.versionNumber = new Long(1); |
59 |
|
} |
60 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0
|
public String getActionRequested() {... |
62 |
0
|
return actionRequested; |
63 |
|
} |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
0
|
public void setActionRequested(String actionRequested) {... |
66 |
0
|
this.actionRequested = actionRequested; |
67 |
|
} |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0
|
public String getId() {... |
70 |
0
|
return id; |
71 |
|
} |
72 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
73 |
0
|
public void setId(String id) {... |
74 |
0
|
this.id = id; |
75 |
|
} |
76 |
|
|
77 |
|
public abstract String getName(); |
78 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
79 |
0
|
public void setName( String name ) {... |
80 |
|
|
81 |
|
} |
82 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
83 |
0
|
public Integer getType() {... |
84 |
0
|
return type; |
85 |
|
} |
86 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
87 |
0
|
public void setType(Integer type) {... |
88 |
0
|
this.type = type; |
89 |
|
} |
90 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
91 |
0
|
public void setdocumentNumber (String documentNumber){... |
92 |
0
|
this.documentNumber = documentNumber; |
93 |
|
} |
94 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
95 |
0
|
public String getdocumentNumber (){... |
96 |
0
|
return documentNumber; |
97 |
|
} |
98 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
99 |
0
|
public String getActionRequestedValue() {... |
100 |
0
|
String actionRequestedValue = null; |
101 |
0
|
if (StringUtils.isNotBlank(getActionRequested())) { |
102 |
0
|
actionRequestedValue = (String) actionRequestCds.get(getActionRequested()); |
103 |
|
} |
104 |
0
|
return actionRequestedValue; |
105 |
|
} |
106 |
|
} |