org.kuali.rice.krad.uif.container
Class ELCollectionFilter

java.lang.Object
  extended by org.kuali.rice.krad.uif.container.ELCollectionFilter
All Implemented Interfaces:
Serializable, CollectionFilter

public class ELCollectionFilter
extends Object
implements CollectionFilter

Collection filter that evaluates a configured el expression against each line

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Constructor Summary
ELCollectionFilter()
           
 
Method Summary
 List<Integer> filter(View view, Object model, CollectionGroup collectionGroup)
          Iterates through the collection and evaluates the el expression in context of the line.
 String getExpression()
          Expression that will be evaluated for each line to determine whether the line should be filtered
 ExpressionEvaluatorService getExpressionEvaluatorService()
           
 void setExpression(String expression)
          Setter for the expression to use for filtering
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ELCollectionFilter

public ELCollectionFilter()
Method Detail

filter

public List<Integer> filter(View view,
                            Object model,
                            CollectionGroup collectionGroup)
Iterates through the collection and evaluates the el expression in context of the line. If the expression evaluates to true, the line will remain, else be filtered out

Specified by:
filter in interface CollectionFilter
Parameters:
view - - view instance for the collection group
model - - object containing the view data and from which the collection should be pulled/updated
collectionGroup - - collection group instance containing configuration for the collection
Returns:
the list that contains valid row indexes
See Also:
CollectionFilter.filter(org.kuali.rice.krad.uif.view.View, Object, CollectionGroup)

getExpression

public String getExpression()
Expression that will be evaluated for each line to determine whether the line should be filtered

If expression passes, the line will remain in the collection, otherwise be filtered out. The expression given should evaluate to a boolean

Returns:
String valid el expression that evaluates to a boolean.

setExpression

public void setExpression(String expression)
Setter for the expression to use for filtering

Parameters:
expression -

getExpressionEvaluatorService

public ExpressionEvaluatorService getExpressionEvaluatorService()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.