Class ContentTreesController
- java.lang.Object
-
- de.digitalcollections.commons.springmvc.controller.AbstractController
-
- de.digitalcollections.cudami.admin.controller.identifiable.entity.ContentTreesController
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware
@Controller @SessionAttributes("contentTree") public class ContentTreesController extends de.digitalcollections.commons.springmvc.controller.AbstractController implements org.springframework.context.MessageSourceAwareController for content trees management pages.
-
-
Constructor Summary
Constructors Constructor Description ContentTreesController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcreate(@Valid de.digitalcollections.model.impl.identifiable.entity.ContentTreeImpl contentTree, 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.Stringcreate(org.springframework.ui.Model model)java.lang.Stringedit(java.util.UUID pathUuid, @Valid de.digitalcollections.model.impl.identifiable.entity.ContentTreeImpl contentTree, 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()voidsetMessageSource(org.springframework.context.MessageSource messageSource)voidsetService(de.digitalcollections.cudami.admin.business.api.service.identifiable.entity.ContentTreeService contentTreeService)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="/contenttrees/new", method=GET) public java.lang.String create(org.springframework.ui.Model model)
-
create
@RequestMapping(value="/contenttrees/new", method=POST) public java.lang.String create(@ModelAttribute @Valid @Valid de.digitalcollections.model.impl.identifiable.entity.ContentTreeImpl contentTree, 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
@RequestMapping(value="/contenttrees/{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="/contenttrees/{pathUuid}/edit", method=POST) public java.lang.String edit(@PathVariable java.util.UUID pathUuid, @ModelAttribute @Valid @Valid de.digitalcollections.model.impl.identifiable.entity.ContentTreeImpl contentTree, 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="/contenttrees", method=GET) public java.lang.String list(org.springframework.ui.Model model, @PageableDefault(sort="lastModified",size=25) org.springframework.data.domain.Pageable pageable)
-
view
@RequestMapping(value="/contenttrees/{uuid}", method=GET) public java.lang.String view(@PathVariable java.util.UUID uuid, org.springframework.ui.Model model)
-
setService
public void setService(de.digitalcollections.cudami.admin.business.api.service.identifiable.entity.ContentTreeService contentTreeService)
-
-