Class IdentifierTypeController
java.lang.Object
de.digitalcollections.commons.springmvc.controller.AbstractController
de.digitalcollections.cudami.admin.controller.identifiable.IdentifierTypeController
@Controller
@SessionAttributes("identifierType")
public class IdentifierTypeController
extends de.digitalcollections.commons.springmvc.controller.AbstractController
-
Constructor Summary
Constructors Constructor Description IdentifierTypeController(org.springframework.context.MessageSource messageSource, CudamiClient cudamiClient) -
Method Summary
Modifier and Type Method Description java.lang.Stringcreate(@Valid de.digitalcollections.model.impl.identifiable.IdentifierTypeImpl identifierType, org.springframework.validation.BindingResult results, org.springframework.ui.Model model, org.springframework.web.bind.support.SessionStatus status, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)java.lang.Stringcreate(org.springframework.ui.Model model)java.lang.Stringedit(java.util.UUID pathUuid, @Valid de.digitalcollections.model.impl.identifiable.IdentifierTypeImpl identifierType, org.springframework.validation.BindingResult results, org.springframework.ui.Model model, org.springframework.web.bind.support.SessionStatus status, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)java.lang.Stringedit(java.util.UUID uuid, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.identifiable.IdentifierTypeImpl>find(int pageNumber, int pageSize)java.lang.Stringlist(org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable)protected java.lang.Stringmodule()
-
Constructor Details
-
IdentifierTypeController
@Autowired public IdentifierTypeController(org.springframework.context.MessageSource messageSource, CudamiClient cudamiClient)
-
-
Method Details
-
module
@ModelAttribute("menu") protected java.lang.String module() -
create
@GetMapping("/identifiertypes/new") public java.lang.String create(org.springframework.ui.Model model) -
create
@PostMapping("/identifiertypes/new") public java.lang.String create(@ModelAttribute @Valid @Valid de.digitalcollections.model.impl.identifiable.IdentifierTypeImpl identifierType, org.springframework.validation.BindingResult results, org.springframework.ui.Model model, org.springframework.web.bind.support.SessionStatus status, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) -
edit
@GetMapping("/identifiertypes/{uuid}/edit") public java.lang.String edit(@PathVariable java.util.UUID uuid, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws HttpException- Throws:
HttpException
-
edit
@PostMapping("/identifiertypes/{pathUuid}/edit") public java.lang.String edit(@PathVariable java.util.UUID pathUuid, @ModelAttribute @Valid @Valid de.digitalcollections.model.impl.identifiable.IdentifierTypeImpl identifierType, org.springframework.validation.BindingResult results, org.springframework.ui.Model model, org.springframework.web.bind.support.SessionStatus status, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) -
find
@GetMapping("/api/identifiertypes") @ResponseBody public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.identifiable.IdentifierTypeImpl> find(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize) throws HttpException- Throws:
HttpException
-
list
@GetMapping("/identifiertypes") public java.lang.String list(org.springframework.ui.Model model, @PageableDefault(sort="label",direction=ASC,size=25) org.springframework.data.domain.Pageable pageable) throws HttpException- Throws:
HttpException
-