This project has retired. For details please refer to its
        
        Attic page .
      
ChangePortletAction (Jetspeed-2 Portal Components 2.1.3 API)
 
 
org.apache.jetspeed.layout.impl 
 
java.lang.Object 
  org.apache.jetspeed.layout.impl.BasePortletAction 
      org.apache.jetspeed.layout.impl.ChangePortletAction 
 
All Implemented Interfaces:  org.apache.jetspeed.ajax.AjaxAction, org.apache.jetspeed.ajax.AjaxBuilder, Constants  
 
public class ChangePortletAction  extends BasePortletAction implements org.apache.jetspeed.ajax.AjaxAction, org.apache.jetspeed.ajax.AjaxBuilder, Constants    
Changes the window state or portlet mode for a given portlet window
 AJAX Parameters: 
    id = the fragment id of the portlet to move
    page = (implied in the URL)
    state = the new window state
    mode = the new portlet mode
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  
 
Constructor Summary   
ChangePortletAction String  template,
                    String  errorTemplate,
                    String  action,
                    org.apache.jetspeed.page.PageManager pageManager,
                    org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor,
                    org.apache.jetspeed.layout.PortletActionSecurityBehavior securityBehavior) 
ChangePortletAction String  template,
                    String  errorTemplate,
                    String  action,
                    org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor) 
 
Method Summary   
protected  boolean isValidPortletMode String  portletMode) 
protected  boolean isValidWindowState String  windowState) 
 boolean run Map  resultMap) 
 boolean runAction Map  resultMap,
          boolean batch) 
 boolean runBatch Map  resultMap) 
 
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  
 
Methods inherited from interface org.apache.jetspeed.ajax.AjaxAction  
checkAccess 
 
Methods inherited from interface org.apache.jetspeed.ajax.AjaxBuilder  
buildContext, buildErrorContext, getErrorTemplate, getTemplate 
 
log 
protected static final org.apache.commons.logging.Log log  
 
 
action 
protected String  action  
 
 
validWindowStates 
protected Map  validWindowStates  
 
 
validPortletModes 
protected Map  validPortletModes  
 
 
windowAccessor 
protected org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor  
 
 
ChangePortletAction 
public ChangePortletAction (String  template,
                           String  errorTemplate,
                           String  action,
                           org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor)
                    throws org.apache.jetspeed.ajax.AJAXException 
Throws: 
org.apache.jetspeed.ajax.AJAXException 
 
ChangePortletAction 
public ChangePortletAction (String  template,
                           String  errorTemplate,
                           String  action,
                           org.apache.jetspeed.page.PageManager pageManager,
                           org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor,
                           org.apache.jetspeed.layout.PortletActionSecurityBehavior securityBehavior)
                    throws org.apache.jetspeed.ajax.AJAXException 
Throws: 
org.apache.jetspeed.ajax.AJAXException 
 
runBatch 
public boolean runBatch (org.apache.jetspeed.request.RequestContext requestContext,
                        Map  resultMap)
                 throws org.apache.jetspeed.ajax.AJAXException 
Specified by: runBatch in interface org.apache.jetspeed.ajax.AjaxActionOverrides: runBatch BasePortletAction  
Throws: 
org.apache.jetspeed.ajax.AJAXException 
 
run 
public boolean run (org.apache.jetspeed.request.RequestContext requestContext,
                   Map  resultMap)
            throws org.apache.jetspeed.ajax.AJAXException 
Specified by: run in interface org.apache.jetspeed.ajax.AjaxAction 
Throws: 
org.apache.jetspeed.ajax.AJAXException 
 
runAction 
public boolean runAction (org.apache.jetspeed.request.RequestContext requestContext,
                         Map  resultMap,
                         boolean batch) 
 
 
 
isValidWindowState 
protected boolean isValidWindowState (String  windowState) 
 
 
 
isValidPortletMode 
protected boolean isValidPortletMode (String  portletMode)