Class ActionHelper
java.lang.Object
com.kingsrook.qqq.backend.core.actions.ActionHelper
Utility methods to be shared by all of the various Actions (e.g., InsertAction)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voideditFirstValue(List<Serializable> values, Function<String, String> editFunction) static voidvalidateSession(AbstractActionInput request) Validate the session using the appropriate authentication provider.
-
Constructor Details
-
ActionHelper
public ActionHelper()
-
-
Method Details
-
validateSession
Validate the session using the appropriate authentication provider.Resolves the authentication provider based on the session's context (e.g., API name stored in session). If the session was created with a scoped authentication provider (e.g., API-specific or route provider-specific), it will be validated using that same provider. Otherwise, falls back to instance default authentication.
This ensures that sessions created with fully anonymous authentication (or any other scoped provider) are validated using the same provider, maintaining proper server-side session management regardless of auth method.
- Parameters:
request- The action input (may be null)- Throws:
QException- If validation fails
-
editFirstValue
-