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.
-
Field Summary
Fields inherited from class de.digitalcollections.cudami.admin.controller.AbstractUniqueObjectController
service
Fields inherited from class de.digitalcollections.cudami.admin.controller.AbstractPagingAndSortingController
languageService
-
Constructor Summary
ConstructorDescriptionPredicatesController
(CudamiClient client, LanguageService languageService, org.springframework.context.MessageSource messageSource, LabelNotBlankValidator labelNotBlankValidator) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(org.springframework.ui.Model model) delete
(UUID uuid, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) list
(org.springframework.ui.Model model) protected String
module()
save
(de.digitalcollections.model.relation.Predicate predicateFormData, @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) update
(UUID uuid, de.digitalcollections.model.relation.Predicate predicateFormData, 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) Methods inherited from class de.digitalcollections.cudami.admin.controller.AbstractUniqueObjectController
find
Methods inherited from class de.digitalcollections.cudami.admin.controller.AbstractPagingAndSortingController
createBTRequest, createPageRequest, createPageRequest, getDataLanguage, getDataLanguage, getFieldType
Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController
verifyBinding
-
Constructor Details
-
PredicatesController
public PredicatesController(CudamiClient client, LanguageService languageService, org.springframework.context.MessageSource messageSource, LabelNotBlankValidator labelNotBlankValidator)
-
-
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
-
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
-