Class UserRestController


  • @RestController
    @RequestMapping(path="/ui/user",
                    produces="application/json")
    public class UserRestController
    extends java.lang.Object
    A helper RestController which allows the UI to request information about the current user.
    Since:
    4.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.fasterxml.jackson.databind.JsonNode getUserInfo​(javax.servlet.http.HttpServletRequest request)
      Get the information about the current session user.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserRestController

        public UserRestController()
    • Method Detail

      • getUserInfo

        @GetMapping
        public com.fasterxml.jackson.databind.JsonNode getUserInfo​(javax.servlet.http.HttpServletRequest request)
        Get the information about the current session user.
        Parameters:
        request - The http request to get a principal from
        Returns:
        The user information as a JSON object