Class PersonsController


  • @Controller
    public class PersonsController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    Controller for Person management pages.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.digitalcollections.model.identifiable.entity.agent.Person create()  
      String create​(org.springframework.ui.Model model)  
      String edit​(UUID uuid, Locale activeLanguage, org.springframework.ui.Model model)  
      de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.agent.Person> findAll​(int pageNumber, int pageSize, String searchTerm)  
      de.digitalcollections.model.identifiable.entity.agent.Person get​(UUID uuid)  
      String list​(org.springframework.ui.Model model)  
      protected String module()  
      org.springframework.http.ResponseEntity save​(de.digitalcollections.model.identifiable.entity.agent.Person person)  
      org.springframework.http.ResponseEntity update​(UUID uuid, de.digitalcollections.model.identifiable.entity.agent.Person person)  
      String view​(UUID uuid, org.springframework.ui.Model model)  
      • Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController

        verifyBinding
    • Method Detail

      • create

        @GetMapping("/api/persons/new")
        @ResponseBody
        public de.digitalcollections.model.identifiable.entity.agent.Person create()
      • edit

        @GetMapping("/persons/{uuid}/edit")
        public String edit​(@PathVariable
                           UUID uuid,
                           @RequestParam(name="activeLanguage",required=false)
                           Locale activeLanguage,
                           org.springframework.ui.Model model)
                    throws HttpException
        Throws:
        HttpException
      • findAll

        @GetMapping("/api/persons")
        @ResponseBody
        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.agent.Person> findAll​(@RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                                                                                     int pageNumber,
                                                                                                                                     @RequestParam(name="pageSize",required=false,defaultValue="25")
                                                                                                                                     int pageSize,
                                                                                                                                     @RequestParam(name="searchTerm",required=false)
                                                                                                                                     String searchTerm)
                                                                                                                              throws HttpException
        Throws:
        HttpException
      • get

        @GetMapping("/api/persons/{uuid}")
        @ResponseBody
        public de.digitalcollections.model.identifiable.entity.agent.Person get​(@PathVariable
                                                                                UUID uuid)
                                                                         throws HttpException
        Throws:
        HttpException
      • module

        @ModelAttribute("menu")
        protected String module()
      • save

        @PostMapping("/api/persons")
        public org.springframework.http.ResponseEntity save​(@RequestBody
                                                            de.digitalcollections.model.identifiable.entity.agent.Person person)
      • update

        @PutMapping("/api/persons/{uuid}")
        public org.springframework.http.ResponseEntity update​(@PathVariable
                                                              UUID uuid,
                                                              @RequestBody
                                                              de.digitalcollections.model.identifiable.entity.agent.Person person)