org.apache.jetspeed.layout.impl
Class MultipleAction
java.lang.Object
org.apache.jetspeed.layout.impl.BasePortletAction
org.apache.jetspeed.layout.impl.MultipleAction
- All Implemented Interfaces:
- org.apache.jetspeed.ajax.AjaxAction, org.apache.jetspeed.ajax.AjaxBuilder, Constants, org.springframework.beans.factory.BeanFactoryAware
public class MultipleAction
- extends BasePortletAction
- implements org.apache.jetspeed.ajax.AjaxAction, org.apache.jetspeed.ajax.AjaxBuilder, org.springframework.beans.factory.BeanFactoryAware
- Author:
- David Gurney
The purpose of this object is to run several AJAX actions and aggregate the
results into a single response. This is useful when the client needs to make
more than one call as the result of a single user action.
The sample request URL is shown below:
http://host:port/ajaxapi?action=multiple&commands=(action;name,value;name,value)(action;name,value)
The constructor accepts a map of the actions that are available to be run.
The name,value pairs are parameter values needed by the action. The actions
are run in the order that they are found on the URL string
Fields inherited from interface org.apache.jetspeed.layout.impl.Constants |
ABS, ACTION, CARTESIAN, COL, CUSTOM_MENUS, DEFAULT_LAYOUT, DESKTOP_EXTENDED, DESKTOP_PAGE_DECORATIONS, DESKTOP_PORTLET_DECORATIONS, DESTINATION, DOWN, FILTER, FOLDER, FOLDERS, FORMAT, FRAGMENTID, FRAGMENTS, GUESTUSERS, HEIGHT, INCLUDE_MENU_DEFS, IPADDRESS, LAYOUT, LAYOUTID, LAYOUTS, LEFT, LINK, LINKS, MENU, MENU_CONTEXT, MENU_DEFINITIONS, MENU_LOCALE, MENU_NAME, METADATA, NEWCOL, NEWROW, OFFLINE, OLD_DESKTOP_EXTENDED, OLD_HEIGHT, OLD_PORTLET_MODE, OLD_WIDTH, OLD_WINDOW_STATE, OLD_X, OLD_Y, OLD_Z, OLDCOL, OLDROW, ONLINE, PAGE, PAGE_DECORATIONS, PAGE_QUALIFIED_CREATE_ON_EDIT, PAGES, PORTLET_DECORATIONS, PORTLET_MODE, PORTLETENTITY, PORTLETID, PORTLETS, PROFILED_PATH, REASON, RESOURCE_NAME, RIGHT, ROLES, ROW, SECURITY_DEFS, SECURITY_OWNER, SECURITY_REFS, SESSIONS, SHORT_TITLE, SIZES, SOURCE, STANDARD_MENUS, STATUS, TITLE, TYPE, UP, USER_IS_ANONYMOUS, USERINFO, USERNAME, USERS, WIDTH, WINDOW_STATE, X, Y, Z |
Constructor Summary |
MultipleAction(org.apache.jetspeed.ajax.AjaxRequestService requestService,
String p_sTemplate,
String p_sErrorTemplate,
org.apache.jetspeed.page.PageManager p_oPageManager,
org.apache.jetspeed.layout.PortletActionSecurityBehavior p_oSecurityBehavior,
org.apache.velocity.app.VelocityEngine p_oVelocityEngine)
|
Method Summary |
boolean |
buildContext(org.apache.jetspeed.request.RequestContext p_oRequestContext,
Map p_oInputMap)
|
protected void |
processBuilder(org.apache.jetspeed.ajax.AjaxBuilder p_oBuilder,
Map p_oInputMap,
org.apache.jetspeed.request.RequestContext p_oRequestContext,
boolean p_oActionSuccessFlag)
|
boolean |
run(org.apache.jetspeed.request.RequestContext p_oRequestContext,
Map p_oResultMap)
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
Methods inherited from class org.apache.jetspeed.layout.impl.BasePortletAction |
buildErrorContext, checkAccess, createNewPageOnEdit, getActionParameter, getErrorTemplate, getFragmentIdFromLocation, getFragmentIdFromLocation, getNonNullActionParameter, getParentFragmentById, getTemplate, isCreateNewPageOnEditEnabled, isPageQualifiedForCreateNewPageOnEdit, runBatch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jetspeed.ajax.AjaxAction |
checkAccess, runBatch |
Methods inherited from interface org.apache.jetspeed.ajax.AjaxBuilder |
buildErrorContext, getErrorTemplate, getTemplate |
ALL_RESULTS
protected static final String ALL_RESULTS
- See Also:
- Constant Field Values
BUILD_RESULTS
protected static final String BUILD_RESULTS
- See Also:
- Constant Field Values
MULTIPLE_ACTION_PROCESSOR
protected static final String MULTIPLE_ACTION_PROCESSOR
- See Also:
- Constant Field Values
COMMANDS
protected static final String COMMANDS
- See Also:
- Constant Field Values
COMMAND_TOKEN
protected static final String COMMAND_TOKEN
- See Also:
- Constant Field Values
PARAM_TOKEN
protected static final String PARAM_TOKEN
- See Also:
- Constant Field Values
VALUE_TOKEN
protected static final String VALUE_TOKEN
- See Also:
- Constant Field Values
actionMap
protected Map actionMap
m_oVelocityEngine
protected org.apache.velocity.app.VelocityEngine m_oVelocityEngine
MultipleAction
public MultipleAction(org.apache.jetspeed.ajax.AjaxRequestService requestService,
String p_sTemplate,
String p_sErrorTemplate,
org.apache.jetspeed.page.PageManager p_oPageManager,
org.apache.jetspeed.layout.PortletActionSecurityBehavior p_oSecurityBehavior,
org.apache.velocity.app.VelocityEngine p_oVelocityEngine)
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
- Specified by:
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
run
public boolean run(org.apache.jetspeed.request.RequestContext p_oRequestContext,
Map p_oResultMap)
throws org.apache.jetspeed.ajax.AJAXException
- Specified by:
run
in interface org.apache.jetspeed.ajax.AjaxAction
- Throws:
org.apache.jetspeed.ajax.AJAXException
processBuilder
protected void processBuilder(org.apache.jetspeed.ajax.AjaxBuilder p_oBuilder,
Map p_oInputMap,
org.apache.jetspeed.request.RequestContext p_oRequestContext,
boolean p_oActionSuccessFlag)
buildContext
public boolean buildContext(org.apache.jetspeed.request.RequestContext p_oRequestContext,
Map p_oInputMap)
- Specified by:
buildContext
in interface org.apache.jetspeed.ajax.AjaxBuilder
- Overrides:
buildContext
in class BasePortletAction
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.