Class IdentifierTypeController

java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.IdentifierTypeController

@RestController
@Api(description="The identifier types controller",
     name="Identifier types controller")
public class IdentifierTypeController
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    IdentifierTypeController()  
  • Method Summary

    Modifier and Type Method Description
    de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.IdentifierType> findAll​(int pageNumber, int pageSize, java.util.List<de.digitalcollections.model.api.paging.Order> sortBy)  
    de.digitalcollections.model.api.identifiable.IdentifierType findById​(java.util.UUID uuid)  
    de.digitalcollections.model.api.identifiable.IdentifierType save​(de.digitalcollections.model.api.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult errors)  
    de.digitalcollections.model.api.identifiable.IdentifierType update​(java.util.UUID uuid, de.digitalcollections.model.api.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult errors)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IdentifierTypeController

      public IdentifierTypeController()
  • Method Details

    • findAll

      @ApiMethod(description="Get all identifier types") @GetMapping(value={"/latest/identifiertypes","/v2/identifiertypes"}, produces="application/json") @ApiResponseObject public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.IdentifierType> findAll​(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize, @RequestParam(name="sortBy",required=false) java.util.List<de.digitalcollections.model.api.paging.Order> sortBy)
    • findById

      @ApiMethod(description="get identifier type by uuid") @GetMapping(value={"/latest/identifiertypes/{uuid}","/v2/identifiertypes/{uuid}"}, produces="application/json") @ApiResponseObject public de.digitalcollections.model.api.identifiable.IdentifierType findById​(@PathVariable java.util.UUID uuid)
    • save

      @ApiMethod(description="save a newly created identifier type") @PostMapping(value={"/latest/identifiertypes","/v2/identifiertypes"}, produces="application/json") @ApiResponseObject public de.digitalcollections.model.api.identifiable.IdentifierType save​(@RequestBody de.digitalcollections.model.api.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult errors)
    • update

      @ApiMethod(description="update an identifier type") @PutMapping(value={"/latest/identifiertypes/{uuid}","/v2/identifiertypes/{uuid}"}, produces="application/json") @ApiResponseObject public de.digitalcollections.model.api.identifiable.IdentifierType update​(@PathVariable java.util.UUID uuid, @RequestBody de.digitalcollections.model.api.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult errors)