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)  
      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,
                                        IdentifierTypeService service)
    • 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)
      • 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)
      • list

        @GetMapping("/identifiertypes")
        public String list​(org.springframework.ui.Model model,
                           @PageableDefault(sort="lastModified",size=25)
                           org.springframework.data.domain.Pageable pageable)