org.kuali.rice.kew.util
Class CodeTranslator

java.lang.Object
  extended by org.kuali.rice.kew.util.CodeTranslator

public class CodeTranslator
extends Object

Utility class to translate the various codes into labels and vice versa.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
static Map activationPolicyLabels
           
static Map activeIndicatorLabels
           
static Map approvePolicyLabels
           
static Map arLabels
           
static Map arStatusLabels
           
static Map atLabels
           
static Map policyLabels
           
static Map routeStatusLabels
           
 
Constructor Summary
CodeTranslator()
           
 
Method Summary
static String getActionRequestLabel(String actionRequestCode)
          Given an actionRequest code return the appropriate label.
static String getActionRequestStatusLabel(String status)
          Return the label for the given request status level.
static String getActionTakenLabel(String actionTakenCode)
          Given an action taken code return the appropriate label for it.
static String getActivationPolicyLabel(String code)
           
private static Map getActivationPolicyLabels()
           
static String getActiveIndicatorLabel(Boolean indicator)
           
private static Map getActiveIndicatorLabels()
           
private static Map getApprovePolicyLabels()
           
private static Map getArLabels()
           
private static Map getArStatusLabels()
           
private static Map getAtLabels()
           
static String getPolicyLabel(String code)
           
private static Map getPolicyLabels()
           
static String getRouteStatusLabel(String status)
           
private static Map getRouteStatusLabels()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

arLabels

public static final Map arLabels

atLabels

public static final Map atLabels

arStatusLabels

public static final Map arStatusLabels

routeStatusLabels

public static final Map routeStatusLabels

activeIndicatorLabels

public static final Map activeIndicatorLabels

activationPolicyLabels

public static final Map activationPolicyLabels

policyLabels

public static final Map policyLabels

approvePolicyLabels

public static final Map approvePolicyLabels
Constructor Detail

CodeTranslator

public CodeTranslator()
Method Detail

getAtLabels

private static Map getAtLabels()

getArLabels

private static Map getArLabels()

getArStatusLabels

private static Map getArStatusLabels()

getRouteStatusLabels

private static Map getRouteStatusLabels()

getActiveIndicatorLabels

private static Map getActiveIndicatorLabels()

getPolicyLabels

private static Map getPolicyLabels()

getActivationPolicyLabels

private static Map getActivationPolicyLabels()

getApprovePolicyLabels

private static Map getApprovePolicyLabels()

getActionRequestLabel

public static String getActionRequestLabel(String actionRequestCode)
Given an actionRequest code return the appropriate label.

Parameters:
actionRequestCode - The actionRequestCode to be translated.
Returns:
action request label

getActionTakenLabel

public static String getActionTakenLabel(String actionTakenCode)
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

public static String getActionRequestStatusLabel(String status)
Return the label for the given request status level.

Parameters:
status - code of the request status
Returns:
label for the corresponding code.

getRouteStatusLabel

public static String getRouteStatusLabel(String status)

getActiveIndicatorLabel

public static String getActiveIndicatorLabel(Boolean indicator)

getActivationPolicyLabel

public static String getActivationPolicyLabel(String code)

getPolicyLabel

public static String getPolicyLabel(String code)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.