1 |
|
package org.kuali.student.common.rice; |
2 |
|
|
3 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
4 |
|
public class StudentWorkflowConstants { |
5 |
|
|
6 |
|
|
7 |
|
public static final String WORKFLOW_DOCUMENT_TYPE = "ProposalWorkflowFilter.DocumentType"; |
8 |
|
|
9 |
|
public static final String DEFAULT_WORKFLOW_DOCUMENT_START_NODE_NAME = "PreRoute"; |
10 |
|
|
11 |
|
public static final String ROLE_NAME_ADHOC_EDIT_PERMISSIONS_ROLE_NAMESPACE = "KS-SYS"; |
12 |
|
public static final String ROLE_NAME_ADHOC_EDIT_PERMISSIONS_ROLE_NAME = "Adhoc Permissions: Edit Document"; |
13 |
|
public static final String ROLE_NAME_ADHOC_ADD_COMMENT_PERMISSIONS_ROLE_NAMESPACE = "KS-SYS"; |
14 |
|
public static final String ROLE_NAME_ADHOC_ADD_COMMENT_PERMISSIONS_ROLE_NAME = "Adhoc Permissions: Comment on Document"; |
15 |
|
|
|
|
| 0% |
Uncovered Elements: 18 (18) |
Complexity: 7 |
Complexity Density: 0.7 |
|
16 |
|
public enum ActionRequestType { |
17 |
|
COMPLETE("C", "Complete"), |
18 |
|
APPROVE("A", "Approve"), |
19 |
|
ACKNOWLEDGE("K", "Acknowledge"), |
20 |
|
FYI("F", "FYI"); |
21 |
|
|
22 |
|
private String actionRequestCode; |
23 |
|
private String actionRequestLabel; |
24 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
25 |
0
|
private ActionRequestType(String actionRequestCode, String actionRequestLabel) {... |
26 |
0
|
this.actionRequestCode = actionRequestCode; |
27 |
0
|
this.actionRequestLabel = actionRequestLabel; |
28 |
|
} |
29 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
30 |
0
|
public String getActionRequestCode() {... |
31 |
0
|
return actionRequestCode; |
32 |
|
} |
33 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
34 |
0
|
public void setActionRequestCode(String actionRequestCode) {... |
35 |
0
|
this.actionRequestCode = actionRequestCode; |
36 |
|
} |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
38 |
0
|
public String getActionRequestLabel() {... |
39 |
0
|
return actionRequestLabel; |
40 |
|
} |
41 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
42 |
0
|
public void setActionRequestLabel(String actionRequestLabel) {... |
43 |
0
|
this.actionRequestLabel = actionRequestLabel; |
44 |
|
} |
45 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
46 |
0
|
public static ActionRequestType getByCode(String actionRequestCode) {... |
47 |
0
|
for (ActionRequestType type : ActionRequestType.values()) { |
48 |
0
|
if (type.getActionRequestCode().equals(actionRequestCode)) { |
49 |
0
|
return type; |
50 |
|
} |
51 |
|
} |
52 |
0
|
return null; |
53 |
|
} |
54 |
|
} |
55 |
|
|
56 |
|
} |