Class ELCollectionFilter

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

public class ELCollectionFilter extends Object implements CollectionFilter, Copyable
Collection filter that evaluates a configured el expression against each line
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • ELCollectionFilter

      public ELCollectionFilter()
  • Method Details

    • 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:
    • 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:
      valid el expression that evaluates to a boolean
    • setExpression

      public void setExpression(String expression)
      Setter for the expression to use for filtering
      Parameters:
      expression -
    • clone

      Description copied from interface: Copyable
      Override Object.clone() to assign the public modifier.
      Specified by:
      clone in interface Copyable
      Overrides:
      clone in class Object
      Returns:
      Object.clone()
      Throws:
      CloneNotSupportedException - If Cloneable is not implemented. This should not be possible when using this interface.
      See Also: