|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.pipeline.valve.AbstractValve
org.apache.jetspeed.decoration.DecorationValve
public class DecorationValve
Assigns decorations and page actions to all of the portlet Fragments within the current request.
Fragment
,
Page
,
Decoration
,
LayoutDecoration
,
PortletDecoration
,
Theme
Field Summary | |
---|---|
protected org.apache.jetspeed.security.SecurityAccessController |
accessController
For security constraint checks |
static String |
ACTION_IMAGE_EXTENSION_ATTR
|
private org.apache.jetspeed.cache.JetspeedContentCache |
cache
|
private org.apache.jetspeed.decoration.DecorationFactory |
decorationFactory
|
private HashMap |
decoratorActionsAdapterCache
|
private DecoratorActionsFactory |
defaultDecoratorActionsFactory
|
static String |
IS_AJAX_DECORATION_REQUEST
|
protected static org.apache.commons.logging.Log |
log
|
private boolean |
maxOnEdit
|
private boolean |
useSessionForThemeCaching
|
private org.apache.jetspeed.container.window.PortletWindowAccessor |
windowAccessor
|
Constructor Summary | |
---|---|
DecorationValve(org.apache.jetspeed.decoration.DecorationFactory decorationFactory,
org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor,
org.apache.jetspeed.security.SecurityAccessController accessController)
|
|
DecorationValve(org.apache.jetspeed.decoration.DecorationFactory decorationFactory,
org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor,
org.apache.jetspeed.security.SecurityAccessController accessController,
org.apache.jetspeed.cache.JetspeedContentCache cache)
|
|
DecorationValve(org.apache.jetspeed.decoration.DecorationFactory decorationFactory,
org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor,
org.apache.jetspeed.security.SecurityAccessController accessController,
org.apache.jetspeed.cache.JetspeedContentCache cache,
boolean useSessionForThemeCaching)
|
Method Summary | |
---|---|
DecoratorActionsFactory |
getDecoratorActionsAdapter(org.apache.jetspeed.decoration.Decoration decoration)
|
boolean |
getMaximizeOnEdit()
|
protected List |
getPageModes(org.apache.jetspeed.request.RequestContext requestContext,
org.apache.pluto.om.window.PortletWindow window,
org.apache.pluto.om.portlet.ContentTypeSet content,
javax.portlet.PortletMode mode,
javax.portlet.WindowState state,
PageActionAccess pageActionAccess,
org.apache.jetspeed.decoration.Decoration decoration,
boolean isAjaxRequest)
Builds a list of portlet modes that can be executed on the current fragment excluding the portlet's current mode. |
protected boolean |
initActionsForFragment(org.apache.jetspeed.request.RequestContext requestContext,
org.apache.jetspeed.om.page.ContentFragment fragment,
PageActionAccess pageActionAccess,
org.apache.jetspeed.decoration.Decoration decoration,
boolean isAjaxRequest)
Builds and assigns a list of available portlet modes and window states for the target Fragment . |
protected void |
initDepthFragmentDecorations(org.apache.jetspeed.request.RequestContext requestContext,
org.apache.jetspeed.decoration.Theme theme,
org.apache.jetspeed.om.page.ContentFragment fragment,
PageActionAccess pageActionAccess,
boolean isAjaxRequest,
org.apache.jetspeed.decoration.ResourceValidator validator,
org.apache.jetspeed.decoration.PathResolverCache pathResolverCache,
boolean reloadActionList)
Reintializes all fragments with there decorations and portlet modes and winodw states after theme is restored from cache. |
protected void |
initDepthFragments(org.apache.jetspeed.request.RequestContext requestContext,
org.apache.jetspeed.decoration.Theme theme,
org.apache.jetspeed.om.page.ContentFragment fragment,
PageActionAccess pageActionAccess,
boolean isAjaxRequest,
List collectFragments)
Intializes all fragments with there decorations and portlet modes and winodw states. |
protected boolean |
initFragment(org.apache.jetspeed.request.RequestContext requestContext,
org.apache.jetspeed.decoration.Theme theme,
org.apache.jetspeed.om.page.ContentFragment fragment,
PageActionAccess pageActionAccess,
boolean isAjaxRequest)
|
void |
initFragments(org.apache.jetspeed.request.RequestContext requestContext,
boolean isAjaxRequest,
List fragments)
|
void |
invoke(org.apache.jetspeed.request.RequestContext requestContext,
org.apache.jetspeed.pipeline.valve.ValveContext context)
|
protected boolean |
isSoloMode(org.apache.jetspeed.request.RequestContext requestContext)
|
void |
setMaximizeOnEdit(boolean maxOnEdit)
|
String |
toString()
|
protected boolean |
useCache()
|
Methods inherited from class org.apache.jetspeed.pipeline.valve.AbstractValve |
---|
initialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jetspeed.pipeline.valve.Valve |
---|
initialize |
Field Detail |
---|
public static final String ACTION_IMAGE_EXTENSION_ATTR
public static final String IS_AJAX_DECORATION_REQUEST
protected static final org.apache.commons.logging.Log log
private final org.apache.jetspeed.decoration.DecorationFactory decorationFactory
private final org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor
private HashMap decoratorActionsAdapterCache
private DecoratorActionsFactory defaultDecoratorActionsFactory
private org.apache.jetspeed.cache.JetspeedContentCache cache
private boolean useSessionForThemeCaching
private boolean maxOnEdit
protected org.apache.jetspeed.security.SecurityAccessController accessController
Constructor Detail |
---|
public DecorationValve(org.apache.jetspeed.decoration.DecorationFactory decorationFactory, org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor, org.apache.jetspeed.security.SecurityAccessController accessController)
public DecorationValve(org.apache.jetspeed.decoration.DecorationFactory decorationFactory, org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor, org.apache.jetspeed.security.SecurityAccessController accessController, org.apache.jetspeed.cache.JetspeedContentCache cache)
public DecorationValve(org.apache.jetspeed.decoration.DecorationFactory decorationFactory, org.apache.jetspeed.container.window.PortletWindowAccessor windowAccessor, org.apache.jetspeed.security.SecurityAccessController accessController, org.apache.jetspeed.cache.JetspeedContentCache cache, boolean useSessionForThemeCaching)
Method Detail |
---|
public void invoke(org.apache.jetspeed.request.RequestContext requestContext, org.apache.jetspeed.pipeline.valve.ValveContext context) throws org.apache.jetspeed.pipeline.PipelineException
invoke
in interface org.apache.jetspeed.pipeline.valve.Valve
invoke
in class AbstractValve
org.apache.jetspeed.pipeline.PipelineException
public void initFragments(org.apache.jetspeed.request.RequestContext requestContext, boolean isAjaxRequest, List fragments)
protected boolean isSoloMode(org.apache.jetspeed.request.RequestContext requestContext)
protected boolean useCache()
public String toString()
toString
in class Object
public DecoratorActionsFactory getDecoratorActionsAdapter(org.apache.jetspeed.decoration.Decoration decoration)
protected boolean initActionsForFragment(org.apache.jetspeed.request.RequestContext requestContext, org.apache.jetspeed.om.page.ContentFragment fragment, PageActionAccess pageActionAccess, org.apache.jetspeed.decoration.Decoration decoration, boolean isAjaxRequest) throws org.apache.jetspeed.container.window.FailedToRetrievePortletWindow, org.apache.jetspeed.components.portletentity.PortletEntityNotStoredException
Fragment
.
requestContext
- RequestContext of the current portal request.fragment
- Fragment to initialize modes and states for.
org.apache.jetspeed.components.portletentity.PortletEntityNotStoredException
org.apache.jetspeed.container.window.FailedToRetrievePortletWindow
protected List getPageModes(org.apache.jetspeed.request.RequestContext requestContext, org.apache.pluto.om.window.PortletWindow window, org.apache.pluto.om.portlet.ContentTypeSet content, javax.portlet.PortletMode mode, javax.portlet.WindowState state, PageActionAccess pageActionAccess, org.apache.jetspeed.decoration.Decoration decoration, boolean isAjaxRequest)
fragment
excluding the portlet's current mode.
requestContext
- RequestContext of the current portal request.pageActionAccess
- mode
- content
- portletName
- window
- fragment
-
java.util.List
of modes excluding the current one.
org.apache.jetspeed.components.portletentity.PortletEntityNotStoredException
protected void initDepthFragments(org.apache.jetspeed.request.RequestContext requestContext, org.apache.jetspeed.decoration.Theme theme, org.apache.jetspeed.om.page.ContentFragment fragment, PageActionAccess pageActionAccess, boolean isAjaxRequest, List collectFragments)
requestContext
- RequestContext of the current portal request.theme
- fragment
- pageActionAccess
- protected boolean initFragment(org.apache.jetspeed.request.RequestContext requestContext, org.apache.jetspeed.decoration.Theme theme, org.apache.jetspeed.om.page.ContentFragment fragment, PageActionAccess pageActionAccess, boolean isAjaxRequest)
protected void initDepthFragmentDecorations(org.apache.jetspeed.request.RequestContext requestContext, org.apache.jetspeed.decoration.Theme theme, org.apache.jetspeed.om.page.ContentFragment fragment, PageActionAccess pageActionAccess, boolean isAjaxRequest, org.apache.jetspeed.decoration.ResourceValidator validator, org.apache.jetspeed.decoration.PathResolverCache pathResolverCache, boolean reloadActionList)
requestContext
- RequestContext of the current portal request.theme
- fragment
- pageActionAccess
- isAjaxRequest
- validator
- pathResolverCache
- public void setMaximizeOnEdit(boolean maxOnEdit)
public boolean getMaximizeOnEdit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |