1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.quicklinks;
17
18 import org.kuali.rice.kew.doctype.bo.DocumentType;
19
20
21
22
23
24
25
26 public class ActionListStats implements Comparable {
27
28 private String documentTypeName;
29 private String documentTypeLabelText;
30 private int count;
31
32 public ActionListStats(String documentTypeName, String documentTypeLabelText, int count) {
33 this.documentTypeName = documentTypeName;
34 this.documentTypeLabelText = documentTypeLabelText;
35 this.count = count;
36 }
37
38 public String getDocumentTypeLabelText() {
39 return documentTypeLabelText;
40 }
41 public void setDocumentTypeLabelText(String documentTypeLabelText) {
42 this.documentTypeLabelText = documentTypeLabelText;
43 }
44 public String getDocumentTypeName() {
45 return documentTypeName;
46 }
47 public void setDocumentTypeName(String documentTypeName) {
48 this.documentTypeName = documentTypeName;
49 }
50 public int getCount() {
51 return count;
52 }
53 public void setCount(int count) {
54 this.count = count;
55 }
56 public String getActionListFilterUrl() {
57 return "ActionList.do?method=showRequestFilteredView&docType=" + documentTypeName;
58 }
59
60 public int compareTo(Object obj) {
61 if (obj != null && obj instanceof ActionListStats) {
62 return this.documentTypeLabelText.compareTo(((ActionListStats)obj).documentTypeLabelText);
63 }
64 return 0;
65 }
66 }