Interface UserPreferenceProviderInterface
- All Known Implementing Classes:
KeyValueUserPreferenceProvider
public interface UserPreferenceProviderInterface
Storage SPI for a preference section.
-
Method Summary
Modifier and TypeMethodDescriptionload(UserPreferenceRequestContext context) Load the user's values and fixed rows.default UserPreferenceActionResultrunAction(UserPreferenceRequestContext context, UserPreferenceActionRequest request) Execute a validated action for the session user.voidstore(UserPreferenceRequestContext context, UserPreferenceChange change) Store only the supplied fields and rows using ordinary audited table actions.validate(UserPreferenceRequestContext context, UserPreferenceChange change) Add domain validation after core has validated and coerced the partial change.
-
Method Details
-
load
Load the user's values and fixed rows.- Throws:
QException
-
validate
default List<String> validate(UserPreferenceRequestContext context, UserPreferenceChange change) throws QException Add domain validation after core has validated and coerced the partial change.- Throws:
QException
-
store
Store only the supplied fields and rows using ordinary audited table actions.- Throws:
QException
-
runAction
default UserPreferenceActionResult runAction(UserPreferenceRequestContext context, UserPreferenceActionRequest request) throws QException Execute a validated action for the session user. Never log or audit secret values.- Throws:
QException
-