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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)Stringcreate(org.springframework.ui.Model model)Stringedit(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)Stringedit(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)Stringlist(org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable)protected Stringmodule()
-
-
-
Constructor Detail
-
IdentifierTypeController
@Autowired public IdentifierTypeController(org.springframework.context.MessageSource messageSource, CudamiClient cudamiClient)
-
-
Method Detail
-
module
@ModelAttribute("menu") protected String module()
-
create
@GetMapping("/identifiertypes/new") public String create(org.springframework.ui.Model model)
-
create
@PostMapping("/identifiertypes/new") public 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 String edit(@PathVariable 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 String edit(@PathVariable 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 String list(org.springframework.ui.Model model, @PageableDefault(sort="label",direction=ASC,size=25) org.springframework.data.domain.Pageable pageable) throws HttpException- Throws:
HttpException
-
-