Class PersonsController
- 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 client)
-
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.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.agent.Person>
find(int pageNumber, int pageSize, String searchTerm, List<de.digitalcollections.model.list.sorting.Order> sortBy)
de.digitalcollections.model.identifiable.entity.agent.Person
getByUuid(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)
-
-
-
Constructor Detail
-
PersonsController
@Autowired public PersonsController(LanguageSortingHelper languageSortingHelper, CudamiClient client)
-
-
Method Detail
-
create
@GetMapping("/persons/new") public String create(org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException
- Throws:
de.digitalcollections.model.exception.TechnicalException
-
create
@GetMapping("/api/persons/new") @ResponseBody public de.digitalcollections.model.identifiable.entity.agent.Person create() throws de.digitalcollections.model.exception.TechnicalException
- Throws:
de.digitalcollections.model.exception.TechnicalException
-
edit
@GetMapping("/persons/{uuid}/edit") public String edit(@PathVariable UUID uuid, @RequestParam(name="activeLanguage",required=false) Locale activeLanguage, org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException
- Throws:
de.digitalcollections.model.exception.TechnicalException
-
find
@GetMapping("/api/persons") @ResponseBody public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.agent.Person> find(@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, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy) throws de.digitalcollections.model.exception.TechnicalException
- Throws:
de.digitalcollections.model.exception.TechnicalException
-
getByUuid
@GetMapping("/api/persons/{uuid}") @ResponseBody public de.digitalcollections.model.identifiable.entity.agent.Person getByUuid(@PathVariable UUID uuid) throws de.digitalcollections.model.exception.TechnicalException
- Throws:
de.digitalcollections.model.exception.TechnicalException
-
list
@GetMapping("/persons") public String list(org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException
- Throws:
de.digitalcollections.model.exception.TechnicalException
-
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)
-
-