Class WebpagesController

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.MessageSourceAware

    @Controller
    @SessionAttributes("webpage")
    public class WebpagesController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    implements org.springframework.context.MessageSourceAware
    Controller for webpage management pages.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String addIdentifiable​(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.String create​(@Valid de.digitalcollections.model.impl.identifiable.entity.parts.WebpageImpl webpage, 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.String create​(org.springframework.ui.Model model, java.lang.String parentType, java.lang.String parentUuid)  
      java.lang.String edit​(java.util.UUID pathUuid, @Valid de.digitalcollections.model.impl.identifiable.entity.parts.WebpageImpl webpage, 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 edit​(java.util.UUID uuid, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)  
      java.lang.String list​(org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable)  
      protected java.lang.String module()  
      void setMessageSource​(org.springframework.context.MessageSource messageSource)  
      void setWebpageService​(de.digitalcollections.cudami.admin.business.api.service.identifiable.entity.parts.WebpageService webpageService)  
      java.lang.String view​(java.util.UUID uuid, org.springframework.ui.Model model)  
      • Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController

        verifyBinding
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebpagesController

        public WebpagesController()
    • Method Detail

      • setMessageSource

        public void setMessageSource​(org.springframework.context.MessageSource messageSource)
        Specified by:
        setMessageSource in interface org.springframework.context.MessageSourceAware
      • module

        @ModelAttribute("menu")
        protected java.lang.String module()
      • create

        @RequestMapping(value="/webpages/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="/webpages/new",
                        method=POST)
        public java.lang.String create​(@ModelAttribute @Valid
                                       @Valid de.digitalcollections.model.impl.identifiable.entity.parts.WebpageImpl webpage,
                                       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="/webpages/{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="/webpages/{pathUuid}/edit",
                        method=POST)
        public java.lang.String edit​(@PathVariable
                                     java.util.UUID pathUuid,
                                     @ModelAttribute @Valid
                                     @Valid de.digitalcollections.model.impl.identifiable.entity.parts.WebpageImpl webpage,
                                     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="/webpages",
                        method=GET)
        public java.lang.String list​(org.springframework.ui.Model model,
                                     @PageableDefault(sort="email",size=25)
                                     org.springframework.data.domain.Pageable pageable)
      • view

        @RequestMapping(value="/webpages/{uuid}",
                        method=GET)
        public java.lang.String view​(@PathVariable
                                     java.util.UUID uuid,
                                     org.springframework.ui.Model model)
      • addIdentifiable

        @RequestMapping(value="/webpages/{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)
      • setWebpageService

        public void setWebpageService​(de.digitalcollections.cudami.admin.business.api.service.identifiable.entity.parts.WebpageService webpageService)