java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.agent.GivenNameController

@RestController
public class GivenNameController
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    GivenNameController​(GivenNameService givenNameService)  
  • Method Summary

    Modifier and Type Method Description
    de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.agent.GivenName> findAll​(int pageNumber, int pageSize, java.util.List<de.digitalcollections.model.paging.Order> sortBy, java.lang.String language, java.lang.String initial)  
    org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.agent.GivenName> get​(java.util.UUID uuid, java.util.Locale pLocale)  
    org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.agent.GivenName> getByIdentifier​(java.lang.String namespace, java.lang.String id)  
    de.digitalcollections.model.identifiable.agent.GivenName save​(de.digitalcollections.model.identifiable.agent.GivenName givenName, org.springframework.validation.BindingResult errors)  
    de.digitalcollections.model.identifiable.agent.GivenName update​(java.util.UUID uuid, de.digitalcollections.model.identifiable.agent.GivenName givenName, org.springframework.validation.BindingResult errors)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • findAll

      @GetMapping(value="/v5/givennames", produces="application/json") public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.agent.GivenName> findAll​(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") int pageSize, @RequestParam(name="sortBy",required=false) java.util.List<de.digitalcollections.model.paging.Order> sortBy, @RequestParam(name="language",required=false,defaultValue="de") java.lang.String language, @RequestParam(name="initial",required=false) java.lang.String initial)
    • get

      @GetMapping(value="/v5/givennames/{uuid}", produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.agent.GivenName> get​(@PathVariable("uuid") java.util.UUID uuid, @RequestParam(name="pLocale",required=false) java.util.Locale pLocale) throws IdentifiableServiceException
      Throws:
      IdentifiableServiceException
    • getByIdentifier

      @GetMapping(value="/v5/givennames/identifier", produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.agent.GivenName> getByIdentifier​(@RequestParam(name="namespace",required=true) java.lang.String namespace, @RequestParam(name="id",required=true) java.lang.String id) throws IdentifiableServiceException
      Throws:
      IdentifiableServiceException
    • save

      @PostMapping(value="/v5/givennames", produces="application/json") public de.digitalcollections.model.identifiable.agent.GivenName save​(@RequestBody de.digitalcollections.model.identifiable.agent.GivenName givenName, org.springframework.validation.BindingResult errors) throws IdentifiableServiceException
      Throws:
      IdentifiableServiceException
    • update

      @PutMapping(value="/v5/givennames/{uuid}", produces="application/json") public de.digitalcollections.model.identifiable.agent.GivenName update​(@PathVariable("uuid") java.util.UUID uuid, @RequestBody de.digitalcollections.model.identifiable.agent.GivenName givenName, org.springframework.validation.BindingResult errors) throws IdentifiableServiceException
      Throws:
      IdentifiableServiceException