Class IdentifierTypeController

java.lang.Object
de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>
de.digitalcollections.cudami.server.controller.identifiable.IdentifierTypeController

@RestController public class IdentifierTypeController extends AbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>
  • Constructor Details

    • IdentifierTypeController

      public IdentifierTypeController(IdentifierTypeService identifierTypeService)
  • Method Details

    • find

      @GetMapping(value="/v6/identifiertypes", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.IdentifierType> 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.IdentifierType>
      Throws:
      ServiceException
    • getByNamespace

      @GetMapping(value="/v6/identifiertypes/namespace/{namespace}", produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.IdentifierType> getByNamespace(@PathVariable String namespace) throws ServiceException
      Throws:
      ServiceException
    • getByUuid

      @GetMapping(value={"/v6/identifiertypes/{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/identifiertypes/{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}$}","/v2/identifiertypes/{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}$}","/latest/identifiertypes/{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.IdentifierType> getByUuid(@PathVariable UUID uuid) throws ServiceException
      Overrides:
      getByUuid in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>
      Throws:
      ServiceException
    • getService

      protected UniqueObjectService<de.digitalcollections.model.identifiable.IdentifierType> getService()
      Specified by:
      getService in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>
    • save

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

      @PutMapping(value={"/v6/identifiertypes/{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/identifiertypes/{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}$}","/v2/identifiertypes/{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}$}","/latest/identifiertypes/{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.IdentifierType update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException
      Overrides:
      update in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.IdentifierType>
      Throws:
      ServiceException
      ValidationException