Class ActiveCollectionFilter

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

public class ActiveCollectionFilter extends Object implements CollectionFilter
Collection filter that removes inactive lines from a collection whose line types implement the Inactivatable interface
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • ActiveCollectionFilter

      public ActiveCollectionFilter()
  • Method Details

    • filter

      public List<Integer> filter(View view, Object model, CollectionGroup collectionGroup)
      Iterates through the collection and if the collection line type implements Inactivatable, active indexes are added to the show indexes list Invoked to filter the collection data before the collection group is built. Note the collection should be retrieved from the model and the valid row indexes must be returned in the return list
      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