Class UserPreferenceRequestContext

java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.preferences.UserPreferenceRequestContext

public class UserPreferenceRequestContext extends Object
Provider context bound to the signed-in user.
  • Constructor Details

    • UserPreferenceRequestContext

      public UserPreferenceRequestContext(UserPreferenceSectionMetaData section, QSession session)
      Bind the provider to the authenticated session; identity is never request data.
  • Method Details

    • getSection

      public UserPreferenceSectionMetaData getSection()
      Get the section.
    • getSession

      public QSession getSession()
      Get the original session, including its client channel.
    • getUserId

      public String getUserId()
      Get the identity from the session user only.
    • getUserEmailAddress

      public String getUserEmailAddress()
      Prefer the OAuth frontend user email, then an email-shaped session identity. Neither value comes from the preference request.