Class RemoteAccountResource

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @RestController
    @RequestMapping({"/app","/"})
    public class RemoteAccountResource
    extends Object
    implements org.springframework.beans.factory.InitializingBean
    • Constructor Detail

      • RemoteAccountResource

        public RemoteAccountResource​(org.springframework.beans.factory.ObjectProvider<CurrentUserProvider> currentUserProviders)
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • getAccount

        @GetMapping(value="/rest/account",
                    produces="application/json")
        public UserRepresentation getAccount​(org.springframework.security.core.Authentication authentication)
        GET /rest/account -> get the current user.