Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-1503

Store the sessionLocation information into the UserContext to extend the API usage

    XMLWordPrintable

Details

    • 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());
         }
      }

      Gliffy Diagrams

        Attachments

          Activity

            People

              reubenv Reuben Varghese
              suthagar23 Suthagar Kailayapathy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: