public final class InactiveRecordsHidingUtils extends Object
MutableInactivatable
, 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.Modifier and Type | Method and Description |
---|---|
static String |
formatCollectionName(String collectionName) |
static boolean |
getShowInactiveRecords(Map<String,Boolean> inactiveRecordDisplay,
String collectionName)
Returns whether a collection has been set to show inactive records.
|
static void |
setShowInactiveRecords(Map<String,Boolean> inactiveRecordDisplay,
String collectionName,
boolean showInactive)
Sets whether a method should show inactive records
|
public static boolean getShowInactiveRecords(Map<String,Boolean> inactiveRecordDisplay, String collectionName)
inactiveRecordDisplay
- a Map used to keep state between invocations of this method and setShowInactiveRecords(Map, String, boolean)
collectionName
- the name of the collectionpublic static void setShowInactiveRecords(Map<String,Boolean> inactiveRecordDisplay, String collectionName, boolean showInactive)
inactiveRecordDisplay
- a Map used to keep state between invocations of this method and getShowInactiveRecords(Map, String)
collectionName
- the name of the collectionshowInactive
- whether to show inactive recordspublic static String formatCollectionName(String collectionName)
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.