| java.lang.Object org.kuali.core.util.InactiveRecordsHidingUtils
InactiveRecordsHidingUtils | public class InactiveRecordsHidingUtils (Code) | | Inquiry screens and maintenance documents may render a collection of BOs on a screen. These
BOs may implement
org.kuali.core.bo.Inactivateable , which means that the BO has an active
flag of true or false. Some screens may give the user the ability to not render (i.e. hide) inactive
collection elements. This class has several utilities to control that behavior.
author: Kuali Rice Team (kuali-rice@googlegroups.com) |
formatCollectionName | public static String formatCollectionName(String collectionName)(Code) | | |
getShowInactiveRecords | public static boolean getShowInactiveRecords(Map<String, Boolean> inactiveRecordDisplay, String collectionName)(Code) | | Returns whether a collection has been set to show inactive records. Note that if a collection has not been set to show inactive inactive records, then
this method will return false.
Parameters: inactiveRecordDisplay - a Map used to keep state between invocations of this method and InactiveRecordsHidingUtils.setShowInactiveRecords(Map,String,boolean) Parameters: collectionName - the name of the collection |
setShowInactiveRecords | public static void setShowInactiveRecords(Map<String, Boolean> inactiveRecordDisplay, String collectionName, boolean showInactive)(Code) | | Sets whether a method should show inactive records
Parameters: inactiveRecordDisplay - a Map used to keep state between invocations of this method and InactiveRecordsHidingUtils.getShowInactiveRecords(Map,String) Parameters: collectionName - the name of the collection Parameters: showInactive - whether to show inactive records |
|
|