Interface CurrentUserContext

  • All Known Implementing Classes:
    CurrentUserContextImpl

    public interface CurrentUserContext
    Provides the context information about the current (calling) user. The context is gathered from the JAAS subject.
    • Method Detail

      • getUserid

        String getUserid()
        Returns the userid of the current user.
        Returns:
        String the userid. null if there is no JAAS subject.
      • getGroupIds

        List<String> getGroupIds()
        Returns all groupIds of the current user.
        Returns:
        list containing all groupIds of the current user. Empty if the current user belongs to no groups or no JAAS Subject set.
      • getAccessIds

        List<String> getAccessIds()
        Returns all accessIds of the current user. This combines the userId and all groupIds of the current user.
        Returns:
        list containing all accessIds of the current user. Empty if there is no JAAS subject.