Clover Coverage Report - Kuali Student 1.3.0-SNAPSHOT (Aggregated)
Coverage timestamp: Thu Apr 28 2011 05:03:32 EDT
../../../../../img/srcFileCovDistChart0.png 2% of files have more coverage
10   56   7   1.67
2   41   0.7   3
6     1.17  
2    
 
  StudentWorkflowConstants       Line # 4 0 - 0 0 - -1.0
  StudentWorkflowConstants.ActionRequestType       Line # 16 10 0% 7 18 0% 0.0
 
No Tests
 
1    package org.kuali.student.common.rice;
2   
3    //TODO: This class needs to be combined with org.kuali.student.StudentWorkflowConstants class found in ks-lum-rice
 
4    public class StudentWorkflowConstants {
5   
6    //FIXME: The workflow doc type needs to be removed from ProposalWorkflowFilter
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   
 
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   
 
25  0 toggle private ActionRequestType(String actionRequestCode, String actionRequestLabel) {
26  0 this.actionRequestCode = actionRequestCode;
27  0 this.actionRequestLabel = actionRequestLabel;
28    }
29   
 
30  0 toggle public String getActionRequestCode() {
31  0 return actionRequestCode;
32    }
33   
 
34  0 toggle public void setActionRequestCode(String actionRequestCode) {
35  0 this.actionRequestCode = actionRequestCode;
36    }
37   
 
38  0 toggle public String getActionRequestLabel() {
39  0 return actionRequestLabel;
40    }
41   
 
42  0 toggle public void setActionRequestLabel(String actionRequestLabel) {
43  0 this.actionRequestLabel = actionRequestLabel;
44    }
45   
 
46  0 toggle 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    }