Class IdentifierTypeController


  • @Controller
    @SessionAttributes("identifierType")
    public class IdentifierTypeController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String create​(@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)  
      String create​(org.springframework.ui.Model model)  
      String edit​(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)  
      String edit​(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)  
      String list​(org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable)  
      protected String module()  
      • Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController

        verifyBinding
    • 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