|
||||||||||
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 SecurityAccessController |
accessController
For security constraint checks |
static java.lang.String |
ACTION_IMAGE_EXTENSION_ATTR
|
static java.lang.String |
IS_AJAX_DECORATION_REQUEST
|
protected static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
DecorationValve(DecorationFactory decorationFactory,
PortletWindowAccessor windowAccessor,
SecurityAccessController accessController)
|
|
DecorationValve(DecorationFactory decorationFactory,
PortletWindowAccessor windowAccessor,
SecurityAccessController accessController,
JetspeedContentCache cache)
|
|
DecorationValve(DecorationFactory decorationFactory,
PortletWindowAccessor windowAccessor,
SecurityAccessController accessController,
JetspeedContentCache cache,
boolean useSessionForThemeCaching)
|
Method Summary | |
---|---|
boolean |
getAutoSwitchingForConfigMode()
|
boolean |
getAutoSwitchingToEditDefaultsModes()
|
DecoratorActionsFactory |
getDecoratorActionsAdapter(Decoration decoration)
|
boolean |
getMaximizeOnConfig()
|
boolean |
getMaximizeOnEdit()
|
boolean |
getMaximizeOnEditDefaults()
|
protected java.util.List |
getPageModes(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,
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(RequestContext requestContext,
ContentFragment fragment,
PageActionAccess pageActionAccess,
Decoration decoration,
boolean isAjaxRequest)
Builds and assigns a list of available portlet modes and window states for the target Fragment . |
protected void |
initDepthFragmentDecorations(RequestContext requestContext,
Theme theme,
ContentFragment fragment,
PageActionAccess pageActionAccess,
boolean isAjaxRequest,
ResourceValidator validator,
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(RequestContext requestContext,
Theme theme,
ContentFragment fragment,
PageActionAccess pageActionAccess,
boolean isAjaxRequest,
java.util.List collectFragments)
Intializes all fragments with there decorations and portlet modes and winodw states. |
protected boolean |
initFragment(RequestContext requestContext,
Theme theme,
ContentFragment fragment,
PageActionAccess pageActionAccess,
boolean isAjaxRequest)
|
void |
initFragments(RequestContext requestContext,
boolean isAjaxRequest,
java.util.List fragments)
|
void |
invoke(RequestContext requestContext,
ValveContext context)
|
protected boolean |
isSoloMode(RequestContext requestContext)
|
void |
setAutoSwitchingForConfigMode(boolean autoSwitchingForConfigMode)
|
void |
setAutoSwitchingToEditDefaultsModes(boolean autoSwitchingToEditDefaultsModes)
|
void |
setMaximizeOnConfig(boolean maxOnConfig)
|
void |
setMaximizeOnEdit(boolean maxOnEdit)
|
void |
setMaximizeOnEditDefaults(boolean maxOnEditDefaults)
|
java.lang.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 java.lang.String ACTION_IMAGE_EXTENSION_ATTR
public static final java.lang.String IS_AJAX_DECORATION_REQUEST
protected static final org.apache.commons.logging.Log log
protected SecurityAccessController accessController
Constructor Detail |
---|
public DecorationValve(DecorationFactory decorationFactory, PortletWindowAccessor windowAccessor, SecurityAccessController accessController)
public DecorationValve(DecorationFactory decorationFactory, PortletWindowAccessor windowAccessor, SecurityAccessController accessController, JetspeedContentCache cache)
public DecorationValve(DecorationFactory decorationFactory, PortletWindowAccessor windowAccessor, SecurityAccessController accessController, JetspeedContentCache cache, boolean useSessionForThemeCaching)
Method Detail |
---|
public void invoke(RequestContext requestContext, ValveContext context) throws PipelineException
invoke
in interface Valve
invoke
in class AbstractValve
PipelineException
public void initFragments(RequestContext requestContext, boolean isAjaxRequest, java.util.List fragments)
protected boolean isSoloMode(RequestContext requestContext)
protected boolean useCache()
public java.lang.String toString()
toString
in class java.lang.Object
public DecoratorActionsFactory getDecoratorActionsAdapter(Decoration decoration)
protected boolean initActionsForFragment(RequestContext requestContext, ContentFragment fragment, PageActionAccess pageActionAccess, Decoration decoration, boolean isAjaxRequest) throws FailedToRetrievePortletWindow, PortletEntityNotStoredException
Fragment
.
requestContext
- RequestContext of the current portal request.fragment
- Fragment to initialize modes and states for.
PortletEntityNotStoredException
FailedToRetrievePortletWindow
protected java.util.List getPageModes(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, 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.
PortletEntityNotStoredException
protected void initDepthFragments(RequestContext requestContext, Theme theme, ContentFragment fragment, PageActionAccess pageActionAccess, boolean isAjaxRequest, java.util.List collectFragments)
requestContext
- RequestContext of the current portal request.theme
- fragment
- pageActionAccess
- protected boolean initFragment(RequestContext requestContext, Theme theme, ContentFragment fragment, PageActionAccess pageActionAccess, boolean isAjaxRequest)
protected void initDepthFragmentDecorations(RequestContext requestContext, Theme theme, ContentFragment fragment, PageActionAccess pageActionAccess, boolean isAjaxRequest, ResourceValidator validator, 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()
public void setMaximizeOnConfig(boolean maxOnConfig)
public boolean getMaximizeOnConfig()
public void setMaximizeOnEditDefaults(boolean maxOnEditDefaults)
public boolean getMaximizeOnEditDefaults()
public void setAutoSwitchingToEditDefaultsModes(boolean autoSwitchingToEditDefaultsModes)
public boolean getAutoSwitchingToEditDefaultsModes()
public void setAutoSwitchingForConfigMode(boolean autoSwitchingForConfigMode)
public boolean getAutoSwitchingForConfigMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |