Class MaintenanceActiveCollectionFilter
java.lang.Object
org.kuali.rice.krad.uif.container.MaintenanceActiveCollectionFilter
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()OverrideObject.clone()to assign the public modifier.filter(View view, Object model, CollectionGroup collectionGroup) Iterates through the collection and if the collection line type implementsInactivatableactive indexes are added to the show indexes listGives the binding path to the old data object for comparison, used to get the active status of the old objectvoidsetOldBindingObjectPath(String oldBindingObjectPath) Setter for the path to the old data object
-
Constructor Details
-
MaintenanceActiveCollectionFilter
public MaintenanceActiveCollectionFilter()
-
-
Method Details
-
filter
Iterates through the collection and if the collection line type implementsInactivatableactive indexes are added to the show indexes listIn 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:
filterin interfaceCollectionFilter- Parameters:
view- - view instance for the collection groupmodel- - object containing the view data and from which the collection should be pulled/updatedcollectionGroup- - collection group instance containing configuration for the collection- Returns:
- the list that contains valid row indexes
-
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
Setter for the path to the old data object- Parameters:
oldBindingObjectPath-
-
clone
Description copied from interface:CopyableOverrideObject.clone()to assign the public modifier.- Specified by:
clonein interfaceCopyable- Overrides:
clonein classObject- Returns:
Object.clone()- Throws:
CloneNotSupportedException- IfCloneableis not implemented. This should not be possible when using this interface.- See Also:
-