com.ptc.windchill.cadx.common.pageBuilder
Class ActionHelper

java.lang.Object
  extended bycom.ptc.windchill.cadx.common.pageBuilder.ActionHelper

public class ActionHelper
extends Object


Field Summary
private static String RESOURCE
           
private static boolean VERBOSE
           
 
Constructor Summary
ActionHelper()
           
 
Method Summary
private static ActionStatus executeAction(Action action, boolean inBackground)
          Executes the given action
static void executeAndRedirectAction(Action action, boolean inBackground, ActionRedirect actionRedirect, HTTPState state, Object contextObject, String contextAction, Properties redirectProperties)
           
static void executeAndRedirectAction(Action action, boolean inBackground, String actionRedirectClass, HTTPState state, Object contextObject, String contextAction, Properties redirectProperties)
           
static ActionRedirect getActionRedirectInstance(String actionRedirectClass)
           
static void redirect(ActionStatus actionStatus, ActionRedirect actionRedirect, HTTPState state, Object contextObject, String contextAction, Properties redirectProperties)
           
static void redirect(boolean succeeded, ActionRedirect actionRedirect, HTTPState state, Object contextObject, String contextAction, Properties redirectProperties)
           
private static void redirectToRefreshPage(String actionId, String actionRedirectClass, HTTPState state, Object contextObject, String contextAction, Properties redirectProperties)
           
static void setLoggerStatus(String actionName, ActionStatus status, Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

VERBOSE

private static boolean VERBOSE
Constructor Detail

ActionHelper

public ActionHelper()
Method Detail

executeAndRedirectAction

public static void executeAndRedirectAction(Action action,
                                            boolean inBackground,
                                            String actionRedirectClass,
                                            HTTPState state,
                                            Object contextObject,
                                            String contextAction,
                                            Properties redirectProperties)
                                     throws WTException
Throws:
WTException

executeAndRedirectAction

public static void executeAndRedirectAction(Action action,
                                            boolean inBackground,
                                            ActionRedirect actionRedirect,
                                            HTTPState state,
                                            Object contextObject,
                                            String contextAction,
                                            Properties redirectProperties)
                                     throws WTException
Throws:
WTException

executeAction

private static ActionStatus executeAction(Action action,
                                          boolean inBackground)
                                   throws WTException
Executes the given action

Parameters:
action - - the action to execute
inBackground - - flag that tells if action should be executed in background
Returns:
- the status of the action being executed.
Throws:
WTException

setLoggerStatus

public static void setLoggerStatus(String actionName,
                                   ActionStatus status,
                                   Locale locale)
                            throws WTException
Throws:
WTException

redirect

public static void redirect(ActionStatus actionStatus,
                            ActionRedirect actionRedirect,
                            HTTPState state,
                            Object contextObject,
                            String contextAction,
                            Properties redirectProperties)
                     throws WTException
Throws:
WTException

redirect

public static void redirect(boolean succeeded,
                            ActionRedirect actionRedirect,
                            HTTPState state,
                            Object contextObject,
                            String contextAction,
                            Properties redirectProperties)
                     throws WTException
Throws:
WTException

getActionRedirectInstance

public static ActionRedirect getActionRedirectInstance(String actionRedirectClass)
                                                throws WTException
Throws:
WTException

redirectToRefreshPage

private static void redirectToRefreshPage(String actionId,
                                          String actionRedirectClass,
                                          HTTPState state,
                                          Object contextObject,
                                          String contextAction,
                                          Properties redirectProperties)