|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.modules.actions.portlets.PortletFilter
An abstract class with helper methods for filtering Portlets.
Constructor Summary | |
PortletFilter()
|
Method Summary | |
static java.util.List |
buildCategoryList(java.util.List portlets)
Builds a list of all portlet categories |
static java.util.List |
buildParentList(java.util.List portlets)
Method that returns a list of parents from the provided list of portlets. |
static java.util.List |
filterPortlets(java.util.List portlets,
java.lang.String[] fields,
java.lang.String[] values)
Method that filters a list of portlets based on certain criteria. |
static java.util.List |
filterPortlets(java.util.List portlets,
java.lang.String field,
java.lang.String value)
Method that filters a list of portlets based on a give filter name/value. |
static java.util.List |
getAllPortlets()
Method to return all portlets in the Portlet Registry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PortletFilter()
Method Detail |
public static java.util.List filterPortlets(java.util.List portlets, java.lang.String field, java.lang.String value)
portlets
- List of portlets to filterfield
- The name of the filtervalue
- The value of the filter
public static java.util.List filterPortlets(java.util.List portlets, java.lang.String[] fields, java.lang.String[] values)
portlets
- The list of portlets to filterfields
- The list of fieldsvalues
- The list of values. This should be in a 1:1 ratio with the fields.
public static java.util.List buildCategoryList(java.util.List portlets)
public static java.util.List getAllPortlets()
public static java.util.List buildParentList(java.util.List portlets)
portlets
- List of portlets to search for parents
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |