java.lang.Object
de.digitalcollections.commons.springmvc.controller.AbstractController

@Controller @SessionAttributes("familyName") public class FamilynamesController extends AbstractIdentifiablesController<de.digitalcollections.model.identifiable.agent.FamilyName,CudamiFamilyNamesClient>
Controller for family names management pages.
  • Constructor Details

  • Method Details

    • create

      @GetMapping("/familynames/new") public String create(org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • edit

      @GetMapping("/familynames/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/edit") public String edit(@PathVariable UUID uuid, @RequestParam(name="activeLanguage",required=false) Locale activeLanguage, org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • list

      @GetMapping("/familynames") public String list(org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • module

      @ModelAttribute("menu") protected String module()
    • save

      @PostMapping("/familynames/new") public String save(@ModelAttribute("formData") de.digitalcollections.model.identifiable.agent.FamilyName familyNameFormData, @ModelAttribute @Valid @Valid de.digitalcollections.model.identifiable.agent.FamilyName familyName, 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) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • update

      @PostMapping("/familynames/{pathUuid}/edit") public String update(@PathVariable UUID pathUuid, @ModelAttribute("formData") de.digitalcollections.model.identifiable.agent.FamilyName familyNameFormData, @ModelAttribute de.digitalcollections.model.identifiable.agent.FamilyName familyName, 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) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • view

      @GetMapping("/familynames/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}") public String view(@PathVariable UUID uuid, @RequestParam(name="dataLanguage",required=false) String targetDataLanguage, org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException, de.digitalcollections.model.exception.ResourceNotFoundException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
      de.digitalcollections.model.exception.ResourceNotFoundException