Class HeadwordEntryController


  • @RestController
    public class HeadwordEntryController
    extends AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.HeadwordEntry>
    • 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,
                                                                                                                                        @RequestParam(name="label",required=false)
                                                                                                                                        String labelTerm,
                                                                                                                                        @RequestParam(name="labelLanguage",required=false)
                                                                                                                                        Locale labelLanguage)
      • 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
      • 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()