Details
-
Improvement
-
Status: Approved
-
Could
-
Resolution: Fixed
-
None
-
Low
Description
Logged-in user session information can be fetched only from the web layer. If we want to get the currently logged-in user location information, then we need to call a given REST API .
It will be easy if we store this logged-in user location information into UserContext to provide the access to the API layers also.
Minor modification should be added into the UiSesssonContext to achieve this task.
private void setSessionLocationInUserContext(Location location) { if (userContext != null && userContext.getAuthenticatedUser() != null) { userContext.setLocationId(location.getLocationId()); } }