Class ContentNodesController
- java.lang.Object
-
- de.digitalcollections.commons.springmvc.controller.AbstractController
-
- de.digitalcollections.cudami.admin.controller.identifiable.entity.parts.ContentNodesController
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware
@Controller @SessionAttributes("contentNode") public class ContentNodesController extends de.digitalcollections.commons.springmvc.controller.AbstractController implements org.springframework.context.MessageSourceAwareController for content node management pages.
-
-
Constructor Summary
Constructors Constructor Description ContentNodesController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaddIdentifiable(java.util.UUID uuid, java.util.UUID identifiableUuid, org.springframework.ui.Model model, org.springframework.web.bind.support.SessionStatus status, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)java.lang.Stringcreate(@Valid de.digitalcollections.model.impl.identifiable.entity.parts.ContentNodeImpl contentNode, 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, java.lang.String parentType, java.util.UUID parentUuid)java.lang.Stringcreate(org.springframework.ui.Model model, java.lang.String parentType, java.lang.String parentUuid)java.lang.Stringedit(java.util.UUID uuid, @Valid de.digitalcollections.model.impl.identifiable.entity.parts.ContentNodeImpl contentNode, 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)java.lang.Stringedit(java.util.UUID uuid, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)java.lang.Stringlist(org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable)protected java.lang.Stringmodule()voidsetContentNodeService(de.digitalcollections.cudami.admin.business.api.service.identifiable.entity.parts.ContentNodeService contentNodeService)voidsetMessageSource(org.springframework.context.MessageSource messageSource)java.lang.Stringview(java.util.UUID uuid, org.springframework.ui.Model model)
-
-
-
Method Detail
-
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource)
- Specified by:
setMessageSourcein interfaceorg.springframework.context.MessageSourceAware
-
module
@ModelAttribute("menu") protected java.lang.String module()
-
create
@RequestMapping(value="/contentnodes/new", method=GET) public java.lang.String create(org.springframework.ui.Model model, @RequestParam("parentType") java.lang.String parentType, @RequestParam("parentUuid") java.lang.String parentUuid)
-
create
@RequestMapping(value="/contentnodes/new", method=POST) public java.lang.String create(@ModelAttribute @Valid @Valid de.digitalcollections.model.impl.identifiable.entity.parts.ContentNodeImpl contentNode, 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, @RequestParam("parentType") java.lang.String parentType, @RequestParam("parentUuid") java.util.UUID parentUuid)
-
edit
@RequestMapping(value="/contentnodes/{uuid}/edit", method=GET) public java.lang.String edit(@PathVariable java.util.UUID uuid, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
-
edit
@RequestMapping(value="/contentnodes/{uuid}/edit", method=POST) public java.lang.String edit(@PathVariable java.util.UUID uuid, @ModelAttribute @Valid @Valid de.digitalcollections.model.impl.identifiable.entity.parts.ContentNodeImpl contentNode, 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
@RequestMapping(value="/contentnodes", method=GET) public java.lang.String list(org.springframework.ui.Model model, @PageableDefault(sort="uuid") org.springframework.data.domain.Pageable pageable)
-
view
@RequestMapping(value="/contentnodes/{uuid}", method=GET) public java.lang.String view(@PathVariable java.util.UUID uuid, org.springframework.ui.Model model)
-
addIdentifiable
@RequestMapping(value="/contentnodes/{uuid}/identifiables", method=POST) public java.lang.String addIdentifiable(@PathVariable java.util.UUID uuid, @RequestParam(name="identifiableUuid") java.util.UUID identifiableUuid, org.springframework.ui.Model model, org.springframework.web.bind.support.SessionStatus status, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
-
setContentNodeService
public void setContentNodeService(de.digitalcollections.cudami.admin.business.api.service.identifiable.entity.parts.ContentNodeService contentNodeService)
-
-