@RestController public class HeadwordEntryController extends AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.HeadwordEntry>
  • Constructor Details

    • HeadwordEntryController

      public HeadwordEntryController(HeadwordEntryService headwordEntryService)
  • Method Details

    • count

      @GetMapping(value={"/v6/headwordentries/count","/v5/headwordentries/count"}, produces="application/json") public long count() throws ServiceException
      Overrides:
      count in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.HeadwordEntry>
      Throws:
      ServiceException
    • 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="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException
      Overrides:
      find in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.HeadwordEntry>
      Throws:
      ServiceException
    • 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 ServiceException
      Throws:
      ServiceException
    • getByIdentifier

      @GetMapping(value={"/v6/headwordentries/identifier/**","/v5/headwordentries/identifier/**"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.HeadwordEntry> getByIdentifier(javax.servlet.http.HttpServletRequest request) throws ServiceException, ValidationException
      Overrides:
      getByIdentifier in class AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.HeadwordEntry>
      Throws:
      ServiceException
      ValidationException
    • 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 ServiceException
      Throws:
      ServiceException
    • getLanguages

      @GetMapping(value={"/v6/headwordentries/languages","/v5/headwordentries/languages"}, produces="application/json") public List<Locale> getLanguages() throws ServiceException
      Overrides:
      getLanguages in class AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.HeadwordEntry>
      Throws:
      ServiceException
    • getService

      protected IdentifiableService<de.digitalcollections.model.identifiable.entity.HeadwordEntry> getService()
      Specified by:
      getService in class AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.HeadwordEntry>
    • save

      @PostMapping(value={"/v6/headwordentries","/v5/headwordentries"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.HeadwordEntry save(@RequestBody de.digitalcollections.model.identifiable.entity.HeadwordEntry headwordEntry, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException
      Overrides:
      save in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.HeadwordEntry>
      Throws:
      ServiceException
      ValidationException
    • update

      @PutMapping(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 de.digitalcollections.model.identifiable.entity.HeadwordEntry update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.HeadwordEntry headwordEntry, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException
      Overrides:
      update in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.HeadwordEntry>
      Throws:
      ServiceException
      ValidationException