Details
-
Type:
Improvement
-
Status: Accepted
-
Priority:
Could
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Reference Application 2.9.0
-
Component/s: App UI
-
Labels:
-
Complexity: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()); } }