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