Class IdentifierTypeController
- java.lang.Object
-
- de.digitalcollections.commons.springmvc.controller.AbstractController
-
- de.digitalcollections.cudami.admin.controller.identifiable.IdentifierTypeController
-
@Controller public class IdentifierTypeController extends de.digitalcollections.commons.springmvc.controller.AbstractControllerController for identifier type management pages.
-
-
Constructor Summary
Constructors Constructor Description IdentifierTypeController(CudamiClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcreate()de.digitalcollections.model.identifiable.IdentifierTypecreateModel()Stringedit(UUID uuid, org.springframework.ui.Model model)de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.IdentifierType>find(int pageNumber, int pageSize)de.digitalcollections.model.identifiable.IdentifierTypeget(UUID uuid)Stringlist()protected Stringmodule()org.springframework.http.ResponseEntitysave(de.digitalcollections.model.identifiable.IdentifierType identifierType)org.springframework.http.ResponseEntityupdate(UUID uuid, de.digitalcollections.model.identifiable.IdentifierType identifierType)
-
-
-
Constructor Detail
-
IdentifierTypeController
public IdentifierTypeController(CudamiClient client)
-
-
Method Detail
-
module
@ModelAttribute("menu") protected String module()
-
create
@GetMapping("/identifiertypes/new") public String create()
-
createModel
@GetMapping("/api/identifiertypes/new") @ResponseBody public de.digitalcollections.model.identifiable.IdentifierType createModel()
-
edit
@GetMapping("/identifiertypes/{uuid}/edit") public String edit(@PathVariable UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
find
@GetMapping("/api/identifiertypes") @ResponseBody public de.digitalcollections.model.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) throws HttpException- Throws:
HttpException
-
get
@GetMapping("/api/identifiertypes/{uuid}") @ResponseBody public de.digitalcollections.model.identifiable.IdentifierType get(@PathVariable UUID uuid) throws HttpException- Throws:
HttpException
-
list
@GetMapping("/identifiertypes") public String list()
-
save
@PostMapping("/api/identifiertypes") public org.springframework.http.ResponseEntity save(@RequestBody de.digitalcollections.model.identifiable.IdentifierType identifierType)
-
update
@PutMapping("/api/identifiertypes/{uuid}") public org.springframework.http.ResponseEntity update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.IdentifierType identifierType)
-
-