Class CurrentUserContextImpl

java.lang.Object
pro.taskana.common.internal.security.CurrentUserContextImpl
All Implemented Interfaces:
CurrentUserContext

public class CurrentUserContextImpl extends Object implements CurrentUserContext
  • Constructor Details

    • CurrentUserContextImpl

      public CurrentUserContextImpl(boolean shouldUseLowerCaseForAccessIds)
  • Method Details

    • getUserid

      public String getUserid()
      Description copied from interface: CurrentUserContext
      Returns the userid of the current user.
      Specified by:
      getUserid in interface CurrentUserContext
      Returns:
      String the userid. null if there is no JAAS subject.
    • getGroupIds

      public List<String> getGroupIds()
      Description copied from interface: CurrentUserContext
      Returns all groupIds of the current user.
      Specified by:
      getGroupIds in interface CurrentUserContext
      Returns:
      list containing all groupIds of the current user. Empty if the current user belongs to no groups or no JAAS Subject set.
    • getAccessIds

      public List<String> getAccessIds()
      Description copied from interface: CurrentUserContext
      Returns all accessIds of the current user. This combines the userId and all groupIds of the current user.
      Specified by:
      getAccessIds in interface CurrentUserContext
      Returns:
      list containing all accessIds of the current user. Empty if there is no JAAS subject.