Class KeyValueUserPreferenceProvider
java.lang.Object
com.kingsrook.qqq.backend.core.actions.preferences.KeyValueUserPreferenceProvider
- All Implemented Interfaces:
UserPreferenceProviderInterface
public class KeyValueUserPreferenceProvider
extends Object
implements UserPreferenceProviderInterface
Default scalar preferences provider using JSON-encoded values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionload(UserPreferenceRequestContext context) Load only rows owned by the session user and this section; absent rows use defaults.voidstore(UserPreferenceRequestContext context, UserPreferenceChange change) Write partial changes through standard actions, retaining audit attribution.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.kingsrook.qqq.backend.core.model.metadata.preferences.UserPreferenceProviderInterface
runAction, validate
-
Constructor Details
-
KeyValueUserPreferenceProvider
public KeyValueUserPreferenceProvider()
-
-
Method Details
-
load
Load only rows owned by the session user and this section; absent rows use defaults.- Specified by:
loadin interfaceUserPreferenceProviderInterface- Throws:
QException
-
store
public void store(UserPreferenceRequestContext context, UserPreferenceChange change) throws QException Write partial changes through standard actions, retaining audit attribution.- Specified by:
storein interfaceUserPreferenceProviderInterface- Throws:
QException
-