|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.util.InactiveRecordsHidingUtils
public final class InactiveRecordsHidingUtils
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.
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 collection
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |