Package org.kuali.rice.kew.api.util
Class CodeTranslator
java.lang.Object
org.kuali.rice.kew.api.util.CodeTranslator
Utility class to translate the various codes into labels and vice versa.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetActionRequestLabel(String actionRequestCode) Given an actionRequest code return the appropriate label.static StringgetActionRequestStatusLabel(String status) Return the label for the given request status level.static StringgetActionTakenLabel(String actionTakenCode) Given an action taken code return the appropriate label for it.static Stringstatic StringgetActiveIndicatorLabel(Boolean indicator) static StringgetPolicyLabel(String code) static StringgetRouteStatusLabel(String status)
-
Field Details
-
arLabels
-
atLabels
-
arStatusLabels
-
routeStatusLabels
-
activeIndicatorLabels
-
activationPolicyLabels
-
policyLabels
-
approvePolicyLabels
-
-
Constructor Details
-
CodeTranslator
public CodeTranslator()
-
-
Method Details
-
getActionRequestLabel
Given an actionRequest code return the appropriate label.- Parameters:
actionRequestCode- The actionRequestCode to be translated.- Returns:
- action request label
-
getActionTakenLabel
Given an action taken code return the appropriate label for it.- Parameters:
actionTakenCode- action taken code to use to find the label.- Returns:
- action taken label
-
getActionRequestStatusLabel
Return the label for the given request status level.- Parameters:
status- code of the request status- Returns:
- label for the corresponding code.
-
getRouteStatusLabel
-
getActiveIndicatorLabel
-
getActivationPolicyLabel
-
getPolicyLabel
-