Package com.persequor.extension.user
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 Summary
Modifier and TypeMethodDescriptionReturns list of roles stored in SAGA.Returns logged in SAGA user including external authenticated users.getUsers()
Returns list of users stored in SAGA.
-
Method Details
-
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
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
Returns list of roles stored in SAGA.- Returns:
- list of roles.
-