org.apache.jetspeed.modules.actions.portlets
Class PortletBrowseAction

java.lang.Object
  extended byorg.apache.turbine.modules.Assembler
      extended byorg.apache.turbine.modules.Action
          extended byorg.apache.turbine.modules.ActionEvent
              extended byorg.apache.jetspeed.modules.actions.portlets.PortletActionEvent
                  extended byorg.apache.jetspeed.modules.actions.portlets.PortletAction
                      extended byorg.apache.jetspeed.modules.actions.portlets.GenericMVCAction
                          extended byorg.apache.jetspeed.modules.actions.portlets.RegistryBrowseAction
                              extended byorg.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

Field Summary
 
Fields inherited from class org.apache.jetspeed.modules.actions.portlets.RegistryBrowseAction
FILTER_FIELDS, FILTER_VALUES, FILTERED_RESULTS, PREFIX, REFRESH, RESULTS, START
 
Fields inherited from class org.apache.jetspeed.modules.actions.portlets.GenericMVCAction
logger
 
Fields inherited from class org.apache.turbine.modules.ActionEvent
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
 
Constructor Summary
PortletBrowseAction()
           
 
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.jetspeed.modules.actions.portlets.RegistryBrowseAction
doFilter
 
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.GenericMVCAction
buildConfigureContext, buildMaximizedContext, checkAdministrativeAction, doPerform, getAttribute, getAttribute, getPortletInstance, perform, setAttribute
 
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.PortletAction
doPerform, getContext, getPortlet, getTemplate, resetTemplate, setTemplate, setTemplate
 
Methods inherited from class org.apache.jetspeed.modules.actions.portlets.PortletActionEvent
executeEvents, fireEvent
 
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
 

Constructor Detail

PortletBrowseAction

public PortletBrowseAction()
Method Detail

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 names
values - 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.