org.apache.jetspeed.decoration
Class AbstractDecoratorActionsFactory

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

public abstract class AbstractDecoratorActionsFactory
extends Object
implements DecoratorActionsFactory


Field Summary
private static ThreadLocal actionResourcesMap
           
private  boolean configMaximizesOption
           
private  boolean editDefaultsMaximizesOption
           
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 getMaximizeOnConfig()
          Maximize portlet window when going into edit_defaults mode
 boolean getMaximizeOnEdit()
          Maximize portlet window when going into edit mode
 boolean getMaximizeOnEditDefaults()
          Maximize portlet window when going into edit_defaults mode
 void setMaximizeOnConfig(boolean maxOnConfig)
          Maximize portlet window when going into config mode
 void setMaximizeOnEdit(boolean maxOnEdit)
          Maximize portlet window when going into edit mode
 void setMaximizeOnEditDefaults(boolean maxOnEditDefaults)
          Maximize portlet window when going into edit_defaults 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

configMaximizesOption

private boolean configMaximizesOption

editDefaultsMaximizesOption

private boolean editDefaultsMaximizesOption
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:

setMaximizeOnConfig

public void setMaximizeOnConfig(boolean maxOnConfig)
Description copied from interface: DecoratorActionsFactory
Maximize portlet window when going into config mode

Specified by:
setMaximizeOnConfig in interface DecoratorActionsFactory

getMaximizeOnConfig

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

Specified by:
getMaximizeOnConfig in interface DecoratorActionsFactory
Returns:

setMaximizeOnEditDefaults

public void setMaximizeOnEditDefaults(boolean maxOnEditDefaults)
Description copied from interface: DecoratorActionsFactory
Maximize portlet window when going into edit_defaults mode

Specified by:
setMaximizeOnEditDefaults in interface DecoratorActionsFactory

getMaximizeOnEditDefaults

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

Specified by:
getMaximizeOnEditDefaults in interface DecoratorActionsFactory
Returns:


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