Class InactiveRecordsHidingUtils

java.lang.Object
org.kuali.rice.kns.util.InactiveRecordsHidingUtils

@Deprecated public final class InactiveRecordsHidingUtils extends Object
Deprecated.
Only used in KNS classes, use KRAD.
Inquiry screens and maintenance documents may render a collection of BOs on a screen. These BOs may implement 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.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Method Details

    • getShowInactiveRecords

      public static boolean getShowInactiveRecords(Map<String,Boolean> inactiveRecordDisplay, String collectionName)
      Deprecated.
      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 setShowInactiveRecords(Map, String, boolean)
      collectionName - the name of the collection
      Returns:
    • setShowInactiveRecords

      public static void setShowInactiveRecords(Map<String,Boolean> inactiveRecordDisplay, String collectionName, boolean showInactive)
      Deprecated.
      Sets whether a method should show inactive records
      Parameters:
      inactiveRecordDisplay - a Map used to keep state between invocations of this method and getShowInactiveRecords(Map, String)
      collectionName - the name of the collection
      showInactive - whether to show inactive records
    • formatCollectionName

      public static String formatCollectionName(String collectionName)
      Deprecated.