| 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 | 0 | public ActionListStats(String documentTypeName, String documentTypeLabelText, int count) { |
| 33 | 0 | this.documentTypeName = documentTypeName; |
| 34 | 0 | this.documentTypeLabelText = documentTypeLabelText; |
| 35 | 0 | this.count = count; |
| 36 | 0 | } |
| 37 | |
|
| 38 | |
public String getDocumentTypeLabelText() { |
| 39 | 0 | return documentTypeLabelText; |
| 40 | |
} |
| 41 | |
public void setDocumentTypeLabelText(String documentTypeLabelText) { |
| 42 | 0 | this.documentTypeLabelText = documentTypeLabelText; |
| 43 | 0 | } |
| 44 | |
public String getDocumentTypeName() { |
| 45 | 0 | return documentTypeName; |
| 46 | |
} |
| 47 | |
public void setDocumentTypeName(String documentTypeName) { |
| 48 | 0 | this.documentTypeName = documentTypeName; |
| 49 | 0 | } |
| 50 | |
public int getCount() { |
| 51 | 0 | return count; |
| 52 | |
} |
| 53 | |
public void setCount(int count) { |
| 54 | 0 | this.count = count; |
| 55 | 0 | } |
| 56 | |
public String getActionListFilterUrl() { |
| 57 | 0 | return "ActionList.do?method=showRequestFilteredView&docType=" + documentTypeName; |
| 58 | |
} |
| 59 | |
|
| 60 | |
public int compareTo(Object obj) { |
| 61 | 0 | if (obj != null && obj instanceof ActionListStats) { |
| 62 | 0 | return this.documentTypeLabelText.compareTo(((ActionListStats)obj).documentTypeLabelText); |
| 63 | |
} |
| 64 | 0 | return 0; |
| 65 | |
} |
| 66 | |
} |