Class ActionHelper

java.lang.Object
com.kingsrook.qqq.backend.core.actions.ActionHelper

public class ActionHelper extends Object
Utility methods to be shared by all of the various Actions (e.g., InsertAction)
  • Constructor Details

    • ActionHelper

      public ActionHelper()
  • Method Details

    • validateSession

      public static void validateSession(AbstractActionInput request) throws QException
      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

      public static void editFirstValue(List<Serializable> values, Function<String,String> editFunction)