Class UserController


  • @RestController
    @RequestMapping("/user")
    public class UserController
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.util.UUID id)  
      User get​(java.util.UUID id)  
      org.springframework.http.HttpEntity<org.springframework.hateoas.PagedResources<UserJsonEdit>> getBy​(java.lang.String name, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler assembler)  
      User getLoggedInUser()  
      java.lang.String resetPassword​(Password instance)  
      User update​(User instance)  
      • Methods inherited from class java.lang.Object

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

      • UserController

        @Autowired
        public UserController​(UserService userService)
    • Method Detail

      • get

        @ResponseStatus(OK)
        @RequestMapping(value="{id}",
                        method=GET)
        public User get​(@PathVariable("id")
                        java.util.UUID id)
      • getLoggedInUser

        @RequestMapping(value="",
                        method=GET)
        public User getLoggedInUser()
      • getBy

        @RequestMapping(value="/page/search",
                        method=GET,
                        produces="application/json")
        public org.springframework.http.HttpEntity<org.springframework.hateoas.PagedResources<UserJsonEdit>> getBy​(@RequestParam(value="name",defaultValue="%")
                                                                                                                   java.lang.String name,
                                                                                                                   org.springframework.data.domain.Pageable pageable,
                                                                                                                   org.springframework.data.web.PagedResourcesAssembler assembler)
      • delete

        @ResponseStatus(OK)
        @RequestMapping(value="/delete/{id}",
                        method=DELETE)
        public void delete​(@PathVariable("id")
                           java.util.UUID id)
      • update

        @ResponseStatus(OK)
        @RequestMapping(value="",
                        method=POST,
                        produces="application/json")
        public User update​(@RequestBody
                           User instance)
      • resetPassword

        @ResponseStatus(OK)
        @RequestMapping(value="/resetpassword",
                        method=POST,
                        produces="application/json")
        public java.lang.String resetPassword​(@RequestBody
                                              Password instance)