org.apache.beehive.netui.pageflow
Class GlobalApp

Object
  extended by PageFlowManagedObject
      extended by FlowController
          extended by SharedFlowController
              extended by GlobalApp
All Implemented Interfaces:
Serializable, EventListener, HttpSessionBindingListener, ActionResolver, PageFlowConstants

Deprecated. Use a SharedFlowController instead.

public class GlobalApp
extends SharedFlowController

Base class for user-defined global state and fallback controller logic. A specific instance of this class (based on the Global.app/Global.java source file in the "global" package) is created and stored in the user session before any PageFlowController is created, and unless it is explicitly removed from the session, it is not freed until the session is invalidated.

Actions that are not handled by the current PageFlowController "bubble" up to the current GlobalApp instance, which gets a chance to handle them in user-defined action methods. Uncaught exceptions also bubble through the GlobalApp instance, which has a chance to catch them.

Data in the current GlobalApp instance can be accessed by databinding tags using the globalApp scope.

See Also:
PageFlowController, Serialized Form

Field Summary
 
Fields inherited from class FlowController
defaultLocale, servlet
 
Fields inherited from interface PageFlowConstants
ACTION_EXTENSION, ACTION_OVERRIDE, AUTO_VIEW_RENDER_FORWARD_NAME, BEGIN_ACTION_NAME, DEFAULT_FORWARD_OVERFLOW_COUNT, DEFAULT_NESTING_OVERFLOW_COUNT, FORWARD_OVERFLOW_COUNT_PARAM, GLOBALAPP_CLASSNAME, GLOBALAPP_SOURCEFILE_NAME, JPF_EXTENSION, JPF_MODULE_CONFIG_EXTENSION, JPF_MODULE_CONFIG_GEN_DIR, JPF_MODULE_CONFIG_PREFIX, NESTING_OVERFLOW_COUNT_PARAM, PAGEFLOW_EXTENSION, PAGEFLOW_MODULE_CONFIG_EXTENSION, PAGEFLOW_MODULE_CONFIG_GEN_DIR, PAGEFLOW_MODULE_CONFIG_PREFIX, SECURE_FORWARDS_PARAM
 
Constructor Summary
GlobalApp()
          Deprecated.  
 
Method Summary
 String getDisplayName()
          Deprecated. Get the display name.
 String getURI()
          Deprecated. Get the URI for the webapp.
 boolean isNestable()
          Deprecated. Only page flows (PageFlowControllers) can be nested.
 
Methods inherited from class SharedFlowController
ensureFailover, getModulePath, getPreviousPageInfoLegacy, persistInSession, removeFromSession, savePreviousPageInfo
 
Methods inherited from class FlowController
addActionError, addActionErrorExpression, addValidationError, addValidationError, afterAction, alwaysTrackPreviousAction, alwaysTrackPreviousPage, beforeAction, create, execute, generateToken, generateToken, getActionMapping, getActionMethod, getActions, getActionURI, getCurrentActionName, getDataSource, getDataSource, getDefaultLocale, getFormBean, getLocale, getLocale, getMapping, getMessageResources, getMessageResources, getModuleConfig, getModuleConfig, getRequest, getResources, getResources, getResources, getResponse, getRewrittenActionURI, getServlet, getSession, getUserPrincipal, handleException, internalExecute, invokeActionMethod, invokeExceptionHandler, isAction, isCancelled, isPageFlow, isTokenValid, isTokenValid, isTokenValid, isTokenValid, isUserInRole, login, logout, lookup, lookup, onCreate, onDestroy, onDestroy, onRefresh, refresh, reinitialize, remove, resetToken, resetToken, resolveAction, resolveAction, retrieveUserLocale, saveActionErrors, saveErrors, saveMessages, saveToken, sendError, sendError, setLocale, setLocale
 
Methods inherited from class PageFlowManagedObject
fieldIsUninitialized, getCreateTime, getServletContext, initializeField, valueBound, valueUnbound
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalApp

public GlobalApp()
Deprecated. 
Method Detail

getURI

public String getURI()
Deprecated. 
Get the URI for the webapp.

Specified by:
getURI in interface ActionResolver
Overrides:
getURI in class SharedFlowController
Returns:
"/".

getDisplayName

public String getDisplayName()
Deprecated. 
Description copied from class: SharedFlowController
Get the display name. The display name for a shared flow is simply the class name.

Overrides:
getDisplayName in class SharedFlowController
Returns:
the name of the shared flow class.

isNestable

public boolean isNestable()
Deprecated. Only page flows (PageFlowControllers) can be nested.