Class UserPreferencesAction
java.lang.Object
com.kingsrook.qqq.backend.core.actions.preferences.UserPreferencesAction
Session-scoped user preferences: visibility, validation and trusted persistence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSection(String name) Load the session user's section, or hide it with not found.List only visible installed sections, ordered by order then label.patchSection(String name, UserPreferenceChange change) Apply a typed partial change from an in-process caller.patchSection(String name, Map<String, ?> body) Validate the complete body without discarding unknown properties.Validate action inputs and row ownership before entering trusted provider code.
-
Constructor Details
-
UserPreferencesAction
public UserPreferencesAction()
-
-
Method Details
-
listSections
List only visible installed sections, ordered by order then label.- Throws:
QException
-
getSection
Load the session user's section, or hide it with not found.- Throws:
QException
-
patchSection
Validate the complete body without discarding unknown properties.- Throws:
QException
-
patchSection
public UserPreferenceSectionResult patchSection(String name, UserPreferenceChange change) throws QException Apply a typed partial change from an in-process caller.- Throws:
QException
-
runAction
public UserPreferenceActionResult runAction(String sectionName, String actionName, Map<String, ?> body) throws QExceptionValidate action inputs and row ownership before entering trusted provider code. Action results are transient: no logging or auditing of secret values occurs here.- Throws:
QException
-