Class GivenNameController


  • @RestController
    public class GivenNameController
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.agent.GivenName> findAll​(int pageNumber, int pageSize, List<de.digitalcollections.model.paging.Order> sortBy, String language, String initial)  
      org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.agent.GivenName> findByIdentifier​(String namespace, String id)  
      org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.agent.GivenName> get​(UUID uuid, Locale pLocale)  
      org.springframework.http.ResponseEntity<Void> getByIdentifier​(String namespace, String id, javax.servlet.http.HttpServletRequest request)  
      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​(UUID uuid, de.digitalcollections.model.identifiable.agent.GivenName givenName, org.springframework.validation.BindingResult errors)  
    • Constructor Detail

      • GivenNameController

        public GivenNameController​(GivenNameService givenNameService)
    • Method Detail

      • 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)
                                                                                                                                 List<de.digitalcollections.model.paging.Order> sortBy,
                                                                                                                                 @RequestParam(name="language",required=false,defaultValue="de")
                                                                                                                                 String language,
                                                                                                                                 @RequestParam(name="initial",required=false)
                                                                                                                                 String initial)
      • findByIdentifier

        @GetMapping(value="/v5/givennames/identifier/{namespace}:{id}",
                    produces="application/json")
        public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.agent.GivenName> findByIdentifier​(@PathVariable
                                                                                                                                  String namespace,
                                                                                                                                  @PathVariable
                                                                                                                                  String id)
                                                                                                                           throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException
      • get

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

        @GetMapping(value="/v5/givennames/identifier",
                    produces="application/json")
        public org.springframework.http.ResponseEntity<Void> getByIdentifier​(@RequestParam(name="namespace",required=true)
                                                                             String namespace,
                                                                             @RequestParam(name="id",required=true)
                                                                             String id,
                                                                             javax.servlet.http.HttpServletRequest request)
                                                                      throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException