Class PredicatesController

java.lang.Object
de.digitalcollections.commons.springmvc.controller.AbstractController
de.digitalcollections.cudami.admin.controller.AbstractPagingAndSortingController
de.digitalcollections.cudami.admin.controller.AbstractUniqueObjectController<de.digitalcollections.model.relation.Predicate>
de.digitalcollections.cudami.admin.controller.relation.PredicatesController

@Controller @SessionAttributes("predicate") public class PredicatesController extends AbstractUniqueObjectController<de.digitalcollections.model.relation.Predicate>
Controller for predicate management pages.
  • Constructor Details

  • Method Details

    • create

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

      @GetMapping("/predicates/{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}$}/delete") public String delete(@PathVariable UUID uuid, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • edit

      @GetMapping("/predicates/{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, de.digitalcollections.model.exception.ResourceNotFoundException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
      de.digitalcollections.model.exception.ResourceNotFoundException
    • list

      @GetMapping("/predicates") 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("/predicates/new") public String save(@ModelAttribute("formData") de.digitalcollections.model.relation.Predicate predicateFormData, @ModelAttribute @Valid @Valid de.digitalcollections.model.relation.Predicate predicate, 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("/predicates/{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 update(@PathVariable UUID uuid, @ModelAttribute("formData") de.digitalcollections.model.relation.Predicate predicateFormData, @ModelAttribute de.digitalcollections.model.relation.Predicate predicate, 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("/predicates/{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