Class HeadwordEntryController


  • @RestController
    public class HeadwordEntryController
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long count()  
      de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.HeadwordEntry> find​(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, String searchTerm)  
      List<de.digitalcollections.model.identifiable.entity.HeadwordEntry> getByHeadword​(UUID uuid)  
      de.digitalcollections.model.identifiable.entity.HeadwordEntry getByIdentifier​(String namespace, String id)  
      org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.HeadwordEntry> getByUuid​(UUID uuid, Locale pLocale)  
      List<Locale> getLanguages()  
      de.digitalcollections.model.identifiable.entity.HeadwordEntry save​(de.digitalcollections.model.identifiable.entity.HeadwordEntry headwordEntry, org.springframework.validation.BindingResult errors)  
      de.digitalcollections.model.identifiable.entity.HeadwordEntry update​(UUID uuid, de.digitalcollections.model.identifiable.entity.HeadwordEntry headwordEntry, org.springframework.validation.BindingResult errors)  
    • Constructor Detail

      • HeadwordEntryController

        public HeadwordEntryController​(HeadwordEntryService headwordEntryService)
    • Method Detail

      • count

        @GetMapping(value={"/v6/headwordentries/count","/v5/headwordentries/count"},
                    produces="application/json")
        public long count()
      • find

        @GetMapping(value="/v6/headwordentries",
                    produces="application/json")
        public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.HeadwordEntry> find​(@RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                                                                                        int pageNumber,
                                                                                                                                        @RequestParam(name="pageSize",required=false,defaultValue="25")
                                                                                                                                        int pageSize,
                                                                                                                                        @RequestParam(name="sortBy",required=false)
                                                                                                                                        List<de.digitalcollections.model.list.sorting.Order> sortBy,
                                                                                                                                        @RequestParam(name="searchTerm",required=false)
                                                                                                                                        String searchTerm)
      • getByHeadword

        @GetMapping(value={"/v6/headwordentries/headword/{uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}}","/v5/headwordentries/headword/{uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}}"},
                    produces="application/json")
        public List<de.digitalcollections.model.identifiable.entity.HeadwordEntry> getByHeadword​(@PathVariable("uuid")
                                                                                                 UUID uuid)
                                                                                          throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException
      • getByIdentifier

        @GetMapping(value={"/v6/headwordentries/identifier/{namespace}:{id}","/v6/headwordentries/identifier/{namespace}:{id}.json","/v5/headwordentries/identifier/{namespace}:{id}","/v5/headwordentries/identifier/{namespace}:{id}.json"},
                    produces="application/json")
        public de.digitalcollections.model.identifiable.entity.HeadwordEntry getByIdentifier​(@PathVariable("namespace")
                                                                                             String namespace,
                                                                                             @PathVariable("id")
                                                                                             String id)
                                                                                      throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException
      • getByUuid

        @GetMapping(value={"/v6/headwordentries/{uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}}","/v5/headwordentries/{uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}}"},
                    produces="application/json")
        public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.HeadwordEntry> getByUuid​(@PathVariable("uuid")
                                                                                                                                UUID uuid,
                                                                                                                                @RequestParam(name="pLocale",required=false)
                                                                                                                                Locale pLocale)
                                                                                                                         throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException
      • getLanguages

        @GetMapping(value={"/v6/headwordentries/languages","/v5/headwordentries/languages"},
                    produces="application/json")
        public List<Locale> getLanguages()