java.lang.Object
de.digitalcollections.commons.springmvc.controller.AbstractController
de.digitalcollections.cudami.admin.controller.identifiable.entity.agent.PersonsController

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

    Constructors
    Constructor Description
    PersonsController​(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient)  
  • Method Summary

    Modifier and Type Method Description
    de.digitalcollections.model.api.identifiable.entity.agent.Person create()  
    java.lang.String create​(org.springframework.ui.Model model)  
    java.lang.String edit​(java.util.UUID uuid, java.util.Locale activeLanguage, org.springframework.ui.Model model)  
    de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.identifiable.entity.agent.PersonImpl> findAll​(int pageNumber, int pageSize)  
    de.digitalcollections.model.api.identifiable.entity.agent.Person get​(java.util.UUID uuid)  
    java.lang.String list()  
    protected java.lang.String module()  
    org.springframework.http.ResponseEntity save​(de.digitalcollections.model.api.identifiable.entity.agent.Person person)  
    org.springframework.http.ResponseEntity update​(java.util.UUID uuid, de.digitalcollections.model.api.identifiable.entity.agent.Person person)  
    java.lang.String view​(java.util.UUID uuid, org.springframework.ui.Model model)  

    Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController

    verifyBinding

    Methods inherited from class java.lang.Object

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

  • Method Details

    • create

      @GetMapping("/persons/new") public java.lang.String create​(org.springframework.ui.Model model) throws HttpException
      Throws:
      HttpException
    • create

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

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

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

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

      @GetMapping("/persons") public java.lang.String list()
    • module

      @ModelAttribute("menu") protected java.lang.String module()
    • save

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

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

      @GetMapping("/persons/{uuid}") public java.lang.String view​(@PathVariable java.util.UUID uuid, org.springframework.ui.Model model) throws HttpException
      Throws:
      HttpException