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

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

public class MaintenanceActiveCollectionFilter
extends Object
implements CollectionFilter

Collection filter for maintenance groups that removes inactive lines if certain conditions are met

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

Constructor Summary
MaintenanceActiveCollectionFilter()
           
 
Method Summary
 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
 String getOldBindingObjectPath()
          Gives the binding path to the old data object for comparison, used to get the active status of the old object
 void setOldBindingObjectPath(String oldBindingObjectPath)
          Setter for the path to the old data object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaintenanceActiveCollectionFilter

public MaintenanceActiveCollectionFilter()
Method Detail

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

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, org.kuali.rice.krad.uif.container.CollectionGroup)

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:
String binding path

setOldBindingObjectPath

public void setOldBindingObjectPath(String oldBindingObjectPath)
Setter for the path to the old data object

Parameters:
oldBindingObjectPath -


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