org.apache.jetspeed.decoration
Class AbstractDecoratorActionsFactory

java.lang.Object
  extended by org.apache.jetspeed.decoration.AbstractDecoratorActionsFactory
All Implemented Interfaces:
DecoratorActionsFactory
Direct Known Subclasses:
DefaultDecoratorActionsFactory, PrintSoloDecoratorActionsFactory

public abstract class AbstractDecoratorActionsFactory
extends Object
implements DecoratorActionsFactory


Field Summary
private static ThreadLocal actionResourcesMap
           
private  boolean editMaximizesOption
           
 
Constructor Summary
AbstractDecoratorActionsFactory()
          When Edit is clicked, also maximize the window state
 
Method Summary
protected  boolean checkSecurityConstraint(org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portlet, org.apache.jetspeed.om.page.ContentFragment fragment, org.apache.jetspeed.security.SecurityAccessController accessController, String action)
           
protected  DecoratorAction createAction(org.apache.jetspeed.request.RequestContext rc, org.apache.pluto.om.window.PortletWindow pw, org.apache.jetspeed.decoration.Decoration decoration, DecoratorActionTemplate template)
           
 List getDecoratorActions(org.apache.jetspeed.request.RequestContext rc, org.apache.jetspeed.om.common.portlet.PortletApplication pa, org.apache.pluto.om.window.PortletWindow pw, javax.portlet.PortletMode pm, javax.portlet.WindowState ws, org.apache.jetspeed.decoration.Decoration decoration, List actionTemplates)
           
 List getDecoratorActions(org.apache.jetspeed.request.RequestContext rc, org.apache.jetspeed.om.common.portlet.PortletApplication pa, org.apache.pluto.om.window.PortletWindow pw, javax.portlet.PortletMode pm, javax.portlet.WindowState ws, org.apache.jetspeed.decoration.Decoration decoration, List actionTemplates, org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portlet, org.apache.jetspeed.om.page.ContentFragment fragment, org.apache.jetspeed.security.SecurityAccessController accessController)
           
 boolean getMaximizeOnEdit()
          Maximize portlet window when going into edit mode
 void setMaximizeOnEdit(boolean maxOnEdit)
          Maximize portlet window when going into edit mode
 
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.decoration.DecoratorActionsFactory
getSupportedActions
 

Field Detail

actionResourcesMap

private static ThreadLocal actionResourcesMap

editMaximizesOption

private boolean editMaximizesOption
Constructor Detail

AbstractDecoratorActionsFactory

public AbstractDecoratorActionsFactory()
When Edit is clicked, also maximize the window state

Parameters:
editMaxOption -
Method Detail

getDecoratorActions

public List getDecoratorActions(org.apache.jetspeed.request.RequestContext rc,
                                org.apache.jetspeed.om.common.portlet.PortletApplication pa,
                                org.apache.pluto.om.window.PortletWindow pw,
                                javax.portlet.PortletMode pm,
                                javax.portlet.WindowState ws,
                                org.apache.jetspeed.decoration.Decoration decoration,
                                List actionTemplates,
                                org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portlet,
                                org.apache.jetspeed.om.page.ContentFragment fragment,
                                org.apache.jetspeed.security.SecurityAccessController accessController)
Specified by:
getDecoratorActions in interface DecoratorActionsFactory

getDecoratorActions

public List getDecoratorActions(org.apache.jetspeed.request.RequestContext rc,
                                org.apache.jetspeed.om.common.portlet.PortletApplication pa,
                                org.apache.pluto.om.window.PortletWindow pw,
                                javax.portlet.PortletMode pm,
                                javax.portlet.WindowState ws,
                                org.apache.jetspeed.decoration.Decoration decoration,
                                List actionTemplates)

createAction

protected DecoratorAction createAction(org.apache.jetspeed.request.RequestContext rc,
                                       org.apache.pluto.om.window.PortletWindow pw,
                                       org.apache.jetspeed.decoration.Decoration decoration,
                                       DecoratorActionTemplate template)

checkSecurityConstraint

protected boolean checkSecurityConstraint(org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite portlet,
                                          org.apache.jetspeed.om.page.ContentFragment fragment,
                                          org.apache.jetspeed.security.SecurityAccessController accessController,
                                          String action)

setMaximizeOnEdit

public void setMaximizeOnEdit(boolean maxOnEdit)
Description copied from interface: DecoratorActionsFactory
Maximize portlet window when going into edit mode

Specified by:
setMaximizeOnEdit in interface DecoratorActionsFactory

getMaximizeOnEdit

public boolean getMaximizeOnEdit()
Description copied from interface: DecoratorActionsFactory
Maximize portlet window when going into edit mode

Specified by:
getMaximizeOnEdit in interface DecoratorActionsFactory
Returns:


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.