org.apache.jetspeed.modules.actions.portlets
Class PortletBrowseAction
java.lang.Object
org.apache.turbine.modules.Assembler
org.apache.turbine.modules.Action
org.apache.turbine.modules.ActionEvent
org.apache.jetspeed.modules.actions.portlets.PortletActionEvent
org.apache.jetspeed.modules.actions.portlets.PortletAction
org.apache.jetspeed.modules.actions.portlets.GenericMVCAction
org.apache.jetspeed.modules.actions.portlets.RegistryBrowseAction
org.apache.jetspeed.modules.actions.portlets.PortletBrowseAction
- public class PortletBrowseAction
- extends RegistryBrowseAction
This action extends the RegistryBrowseAction to provide filtering for portlets
and add extra information into the context
- Version:
- $Id: PortletBrowseAction.java,v 1.2 2004/02/23 02:56:58 jford Exp $
- Author:
- Jeremy Ford
Fields inherited from class org.apache.turbine.modules.ActionEvent |
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX |
Method Summary |
protected void |
buildNormalContext(Portlet portlet,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData rundata)
Build the normal state content for this portlet. |
protected java.util.List |
filter(java.util.List entries,
java.lang.String[] fields,
java.lang.String[] values)
Filter portlets by using the PortletFilter helper class |
Methods inherited from class org.apache.turbine.modules.ActionEvent |
executeEvents, formatString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletBrowseAction
public PortletBrowseAction()
buildNormalContext
protected void buildNormalContext(Portlet portlet,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData rundata)
- Build the normal state content for this portlet.
- Overrides:
buildNormalContext
in class RegistryBrowseAction
- Parameters:
portlet
- The velocity-based portlet that is being built.context
- The velocity context for this request.rundata
- The turbine rundata context for this request.
filter
protected java.util.List filter(java.util.List entries,
java.lang.String[] fields,
java.lang.String[] values)
- Filter portlets by using the PortletFilter helper class
- Overrides:
filter
in class RegistryBrowseAction
- Parameters:
entries
- The list of registry entries to filter.fields
- The array of filter namesvalues
- The array of filter values. This should be in a 1:1 ratio with the fitler names.
- Returns:
- The list of filtered portlets.
- See Also:
RegistryBrowseAction.filter(java.util.List, java.lang.String[], java.lang.String[])
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.