Class MaintenanceActiveCollectionFilter

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

public class MaintenanceActiveCollectionFilter extends Object implements CollectionFilter, Copyable
Collection filter for maintenance groups that removes inactive lines if certain conditions are met
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • MaintenanceActiveCollectionFilter

      public MaintenanceActiveCollectionFilter()
  • 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

      In the case of a new line being added, the user is not allowed to hide the record (even if it is inactive). Likewise in the case of an edit where the active flag has changed between the old and new side, the user is not allowed to hide

      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
    • getOldBindingObjectPath

      public String getOldBindingObjectPath()
      Gives the binding path to the old data object for comparison, used to get the active status of the old object
      Returns:
      binding path
    • setOldBindingObjectPath

      public void setOldBindingObjectPath(String oldBindingObjectPath)
      Setter for the path to the old data object
      Parameters:
      oldBindingObjectPath -
    • 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: