Class QInstanceHelpContentManager
java.lang.Object
com.kingsrook.qqq.backend.core.instances.QInstanceHelpContentManager
Utility methods for working with (dynamic, from a table) HelpContent - and
putting it into meta-data in a QInstance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String, List<QHelpContent>> cloneHelpContent(Map<String, List<QHelpContent>> contents) Deep copy help slots when metadata is cloned.static voidloadHelpContent(QInstance qInstance) static voidprocessHelpContentRecord(QInstance qInstance, QRecord record) static voidputHelpContentInList(QHelpContent helpContent, List<QHelpContent> helpContents) add a help content object to a list - replacing an entry in the list with the same roles if one is found.static voidreloadHelpContent(QInstance instance) Replace data-applied help, restoring any code declaration it had overridden.static voidreloadIfChanged(QInstance instance) Reload only after the table's count/max-modifyDate signature changes.static voidremoveHelpContentByRoleSetFromList(Set<HelpRole> roles, List<QHelpContent> helpContents) Remove any helpContent entries in a list if they have a set of roles that matches the input set.static voidsetReloadIntervalMillis(long intervalMillis) Configure the per-instance poll throttle; zero is useful for deterministic tests.
-
Constructor Details
-
QInstanceHelpContentManager
public QInstanceHelpContentManager()
-
-
Method Details
-
loadHelpContent
-
processHelpContentRecord
-
putHelpContentInList
add a help content object to a list - replacing an entry in the list with the same roles if one is found. -
removeHelpContentByRoleSetFromList
public static void removeHelpContentByRoleSetFromList(Set<HelpRole> roles, List<QHelpContent> helpContents) Remove any helpContent entries in a list if they have a set of roles that matches the input set. -
setReloadIntervalMillis
public static void setReloadIntervalMillis(long intervalMillis) Configure the per-instance poll throttle; zero is useful for deterministic tests. -
reloadIfChanged
Reload only after the table's count/max-modifyDate signature changes. Polling is internal metadata maintenance, independent of the viewing user's permissions on the authoring table. The user's context is always restored. -
reloadHelpContent
Replace data-applied help, restoring any code declaration it had overridden. -
cloneHelpContent
public static Map<String,List<QHelpContent>> cloneHelpContent(Map<String, List<QHelpContent>> contents) Deep copy help slots when metadata is cloned.
-