Class IndentifierTypeController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.identifiable.IndentifierTypeController
-
@RestController @Api(description="The identifier types controller", name="Identifier types controller") public class IndentifierTypeController extends Object
-
-
Constructor Summary
Constructors Constructor Description IndentifierTypeController()
-
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.IdentifierTypefindById(UUID uuid)de.digitalcollections.model.api.identifiable.IdentifierTypesave(de.digitalcollections.model.api.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult errors)de.digitalcollections.model.api.identifiable.IdentifierTypeupdate(UUID uuid, de.digitalcollections.model.api.identifiable.IdentifierType identifierType, org.springframework.validation.BindingResult errors)
-
-
-
Method Detail
-
findAll
@ApiMethod(description="Get all identifier types") @RequestMapping(value={"/latest/identifiertypes","/v2/identifiertypes"}, produces="application/json", method=GET) @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") @RequestMapping(value={"/latest/identifiertypes/{uuid}","/v2/identifiertypes/{uuid}"}, produces="application/json", method=GET) @ApiResponseObject public de.digitalcollections.model.api.identifiable.IdentifierType findById(@PathVariable UUID uuid)
-
save
@ApiMethod(description="save a newly created identifier type") @RequestMapping(value={"/latest/identifiertypes","/v2/identifiertypes"}, produces="application/json", method=POST) @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") @RequestMapping(value={"/latest/identifiertypes/{uuid}","/v2/identifiertypes/{uuid}"}, produces="application/json", method=PUT) @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)
-
-