org.apache.jetspeed.layout.impl
Class UpdatePageAction
java.lang.Object
org.apache.jetspeed.layout.impl.BasePortletAction
org.apache.jetspeed.layout.impl.BaseSiteUpdateAction
org.apache.jetspeed.layout.impl.UpdatePageAction
- All Implemented Interfaces:
- AjaxAction, AjaxBuilder, Constants
public class UpdatePageAction
- extends BaseSiteUpdateAction
- implements AjaxAction, AjaxBuilder, Constants
Update Page action -- updates various parts of the PSML page
AJAX Parameters:
action = updatepage
General methods:
method = add | remove
Info methods:
| info
Meta methods:
| add-meta | update-meta | remove-meta
Security methods:
| add-secref | remove-secref
Fragment methods:
| update-fragment | add-fragment | remove-fragment
update-fragment params: id, layout(name), sizes, layoutid (add)
- Version:
- $Id: $
- Author:
- David Sean Taylor
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 |
Method Summary |
protected int |
addFragment(RequestContext requestContext,
java.util.Map resultMap,
Page page,
java.lang.String parentFragmentId,
java.lang.String layout)
|
protected int |
removeFragment(RequestContext requestContext,
java.util.Map resultMap,
Page page,
java.lang.String fragmentId)
|
boolean |
run(RequestContext requestContext,
java.util.Map resultMap)
The action should put any parameters or results it wants
passed on to the builders in the resultMap
This method runs an Ajax action. |
protected int |
updateFragment(RequestContext requestContext,
java.util.Map resultMap,
Page page,
java.lang.String fragmentId,
java.lang.String layout)
|
protected int |
updateInformation(RequestContext requestContext,
java.util.Map resultMap,
Node node,
java.lang.String path)
|
protected int |
updatePortletDecorator(RequestContext requestContext,
java.util.Map resultMap,
Page page,
java.lang.String fragmentId,
java.lang.String portletDecorator)
|
Methods inherited from class org.apache.jetspeed.layout.impl.BaseSiteUpdateAction |
areFieldsSame, insertMetadata, insertSecurityReference, isBlank, isBooleanModified, isFieldModified, removeMetadata, removeSecurityDef, removeSecurityReference, updateMetadata, updateSecurityReference |
Methods inherited from class org.apache.jetspeed.layout.impl.BasePortletAction |
buildContext, 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 |
log
protected org.apache.commons.logging.Log log
windowAccess
protected PortletWindowAccessor windowAccess
entityAccess
protected PortletEntityAccessComponent entityAccess
UpdatePageAction
public UpdatePageAction(java.lang.String template,
java.lang.String errorTemplate,
PageManager pm,
PortletWindowAccessor windowAccess,
PortletEntityAccessComponent entityAccess,
PortletActionSecurityBehavior securityBehavior)
run
public boolean run(RequestContext requestContext,
java.util.Map resultMap)
throws AJAXException
- Description copied from interface:
AjaxAction
- The action should put any parameters or results it wants
passed on to the builders in the resultMap
This method runs an Ajax action.
- Specified by:
run
in interface AjaxAction
- Parameters:
requestContext
- The Jetspeed Request ContextresultMap
- map of action parameters passed to the builder context
- Returns:
- success is true, failure is false
- Throws:
AJAXException
updatePortletDecorator
protected int updatePortletDecorator(RequestContext requestContext,
java.util.Map resultMap,
Page page,
java.lang.String fragmentId,
java.lang.String portletDecorator)
throws PortletEntityNotStoredException,
FailedToRetrievePortletWindow
- Throws:
PortletEntityNotStoredException
FailedToRetrievePortletWindow
updateFragment
protected int updateFragment(RequestContext requestContext,
java.util.Map resultMap,
Page page,
java.lang.String fragmentId,
java.lang.String layout)
throws PortletEntityNotStoredException,
FailedToRetrievePortletWindow
- Throws:
PortletEntityNotStoredException
FailedToRetrievePortletWindow
addFragment
protected int addFragment(RequestContext requestContext,
java.util.Map resultMap,
Page page,
java.lang.String parentFragmentId,
java.lang.String layout)
removeFragment
protected int removeFragment(RequestContext requestContext,
java.util.Map resultMap,
Page page,
java.lang.String fragmentId)
updateInformation
protected int updateInformation(RequestContext requestContext,
java.util.Map resultMap,
Node node,
java.lang.String path)
throws AJAXException
- Specified by:
updateInformation
in class BaseSiteUpdateAction
- Throws:
AJAXException
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.