@Controller
@SessionAttributes(value="contentTree")
public class ContentTreesController
extends de.digitalcollections.commons.springmvc.controller.AbstractController
implements org.springframework.context.MessageSourceAware
| Constructor and Description |
|---|
ContentTreesController() |
| Modifier and Type | Method and Description |
|---|---|
String |
create(@Valid ContentTree 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) |
String |
create(org.springframework.ui.Model model) |
String |
edit(UUID pathUuid,
@Valid ContentTree 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) |
String |
edit(UUID uuid,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
String |
list(org.springframework.ui.Model model,
org.springframework.data.domain.Pageable pageable) |
protected String |
module() |
void |
setMessageSource(org.springframework.context.MessageSource messageSource) |
void |
setService(ContentTreeService contentTreeService) |
String |
view(UUID uuid,
org.springframework.ui.Model model) |
public void setMessageSource(org.springframework.context.MessageSource messageSource)
setMessageSource in interface org.springframework.context.MessageSourceAware@ModelAttribute(value="menu") protected String module()
@RequestMapping(value="/contenttrees/new",
method=GET)
public String create(org.springframework.ui.Model model)
@RequestMapping(value="/contenttrees/new",
method=POST)
public String create(@ModelAttribute @Valid
@Valid ContentTree 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)
@RequestMapping(value="/contenttrees/{uuid}/edit",
method=GET)
public String edit(@PathVariable
UUID uuid,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
@RequestMapping(value="/contenttrees/{pathUuid}/edit",
method=POST)
public String edit(@PathVariable
UUID pathUuid,
@ModelAttribute @Valid
@Valid ContentTree 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)
@RequestMapping(value="/contenttrees",
method=GET)
public String list(org.springframework.ui.Model model,
@PageableDefault(sort="lastModified",size=25)
org.springframework.data.domain.Pageable pageable)
@RequestMapping(value="/contenttrees/{uuid}",
method=GET)
public String view(@PathVariable
UUID uuid,
org.springframework.ui.Model model)
public void setService(ContentTreeService contentTreeService)
Copyright © 2018. All rights reserved.