org.apache.jetspeed.layout.impl
Class AddPortletAction
java.lang.Object
org.apache.jetspeed.layout.impl.BasePortletAction
org.apache.jetspeed.layout.impl.MovePortletAction
org.apache.jetspeed.layout.impl.AddPortletAction
- All Implemented Interfaces:
- AjaxAction, AjaxBuilder, Constants
public class AddPortletAction
- extends MovePortletAction
- implements AjaxAction, AjaxBuilder, Constants
Add Portlet portlet placement action
AJAX Parameters:
id = portlet full name (pa::portletName) to be added
page = (implied in the URL)
Optional Parameters:
row = the new row to move to
col = the new column to move to
- Version:
- $Id: $
- Author:
- David Gurney , 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 |
Constructor Summary |
AddPortletAction(java.lang.String template,
java.lang.String errorTemplate,
PortletRegistry registry,
GetPortletsAction getPortletsAction)
|
AddPortletAction(java.lang.String template,
java.lang.String errorTemplate,
PortletRegistry registry,
PageManager pageManager,
PortletActionSecurityBehavior securityBehavior,
GetPortletsAction getPortletsAction)
|
AddPortletAction(java.lang.String template,
java.lang.String errorTemplate,
PortletRegistry registry,
PageManager pageManager,
PortletActionSecurityBehavior securityBehavior,
GetPortletsAction getPortletsAction,
boolean allowDuplicatePortlets)
|
Methods inherited from class org.apache.jetspeed.layout.impl.BasePortletAction |
buildContext, buildErrorContext, checkAccess, createNewPageOnEdit, getActionParameter, getErrorTemplate, getFragmentIdFromLocation, getFragmentIdFromLocation, getNonNullActionParameter, getParentFragmentById, getTemplate, isCreateNewPageOnEditEnabled, isPageQualifiedForCreateNewPageOnEdit |
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
getPortletsAction
protected GetPortletsAction getPortletsAction
allowDuplicatePortlets
protected boolean allowDuplicatePortlets
AddPortletAction
public AddPortletAction(java.lang.String template,
java.lang.String errorTemplate,
PortletRegistry registry,
GetPortletsAction getPortletsAction)
throws AJAXException
- Throws:
AJAXException
AddPortletAction
public AddPortletAction(java.lang.String template,
java.lang.String errorTemplate,
PortletRegistry registry,
PageManager pageManager,
PortletActionSecurityBehavior securityBehavior,
GetPortletsAction getPortletsAction)
throws AJAXException
- Throws:
AJAXException
AddPortletAction
public AddPortletAction(java.lang.String template,
java.lang.String errorTemplate,
PortletRegistry registry,
PageManager pageManager,
PortletActionSecurityBehavior securityBehavior,
GetPortletsAction getPortletsAction,
boolean allowDuplicatePortlets)
throws AJAXException
- Throws:
AJAXException
runAction
protected boolean runAction(RequestContext requestContext,
java.util.Map resultMap,
boolean batch)
throws AJAXException
- Overrides:
runAction
in class MovePortletAction
- Throws:
AJAXException
verifyPortletId
protected void verifyPortletId(RequestContext requestContext,
java.lang.String portletId)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkForDuplicatePortlet
protected void checkForDuplicatePortlet(RequestContext requestContext,
java.util.Map resultMap,
java.lang.String portletId)
throws AJAXException
- Throws:
AJAXException
isDuplicateFragment
protected boolean isDuplicateFragment(Fragment fragment,
java.lang.String portletId)
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.