Class AuthenticatedUserRef

java.lang.Object
com.bluebell.greenhouse.planter.resolvers.request.ref.AuthenticatedUserRef

public final class AuthenticatedUserRef extends Object
Identifies the authenticated user of a request.
Version:
3.0.5
Author:
Stephen Prizio
  • Method Details

    • of

      public static AuthenticatedUserRef of(Long userId, String username, String timeZone)
      Creates the reference.
      Parameters:
      userId - user id, null for a principal that has never been persisted
      username - username
      timeZone - user time zone
      Returns:
      AuthenticatedUserRef
    • userId

      public Long userId()
      Returns the user id.
      Returns:
      user id, null for a principal that has never been persisted
    • username

      public String username()
      Returns the username.
      Returns:
      username
    • timeZone

      public String timeZone()
      Returns the user time zone.
      Returns:
      time zone