Class IndentifierTypeController


  • @RestController
    @Api(description="The identifier types controller",
         name="Identifier types controller")
    public class IndentifierTypeController
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.IdentifierType> findAll​(int pageNumber, int pageSize, String sortField, de.digitalcollections.model.api.paging.enums.Direction sortDirection, de.digitalcollections.model.api.paging.enums.NullHandling nullHandling)  
      de.digitalcollections.model.api.identifiable.IdentifierType findById​(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​(UUID uuid, de.digitalcollections.model.api.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult errors)  
    • Constructor Detail

      • IndentifierTypeController

        public IndentifierTypeController()
    • Method Detail

      • 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="5")
                                                                                                                                        int pageSize,
                                                                                                                                        @RequestParam(name="sortField",required=false,defaultValue="uuid")
                                                                                                                                        String sortField,
                                                                                                                                        @RequestParam(name="sortDirection",required=false,defaultValue="ASC")
                                                                                                                                        de.digitalcollections.model.api.paging.enums.Direction sortDirection,
                                                                                                                                        @RequestParam(name="nullHandling",required=false,defaultValue="NATIVE")
                                                                                                                                        de.digitalcollections.model.api.paging.enums.NullHandling nullHandling)
      • 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
                                                                                    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
                                                                                  UUID uuid,
                                                                                  @RequestBody
                                                                                  de.digitalcollections.model.api.identifiable.IdentifierType identifierType,
                                                                                  org.springframework.validation.BindingResult errors)