Interface IUserService


public interface IUserService
Service responsible for loading the users stored in SAGA.

This service operates on sensitive data. Make sure you use it a secure manner while exposing to outside world (e.g. http endpoints)

  • Method Details

    • getUsers

      List<User> getUsers()
      Returns list of users stored in SAGA. In case SAGA is set-up to use external authorization/authentication empty result will be returned.
      Returns:
      list of users.
    • getLoggedInUser

      Optional<User> getLoggedInUser()
      Returns logged in SAGA user including external authenticated users. Optional is empty if no user is logged. Result is also empty if logged-in-user concept is not relevant (background job, etc)
      Returns:
      optional of logged in user.
    • getAllRoles

      List<User.Role> getAllRoles()
      Returns list of roles stored in SAGA.
      Returns:
      list of roles.