Class WebpagesController


  • @Controller
    public class WebpagesController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    Controller for webpage management pages.
    • Constructor Summary

      Constructors 
      Constructor Description
      WebpagesController​(LanguageSortingHelper languageSortingHelper, de.digitalcollections.cudami.admin.backend.api.repository.LocaleRepository localeRepository, de.digitalcollections.cudami.admin.business.api.service.identifiable.entity.parts.WebpageService service)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.digitalcollections.model.api.identifiable.entity.parts.Webpage create()  
      java.lang.String create​(org.springframework.ui.Model model, java.lang.String parentType, java.lang.String parentUuid)  
      java.lang.String edit​(java.util.UUID uuid, org.springframework.ui.Model model)  
      de.digitalcollections.model.api.identifiable.entity.parts.Webpage get​(java.util.UUID uuid)  
      protected java.lang.String module()  
      org.springframework.http.ResponseEntity save​(de.digitalcollections.model.api.identifiable.entity.parts.Webpage webpage, java.lang.String parentType, java.util.UUID parentUuid)  
      org.springframework.http.ResponseEntity update​(java.util.UUID uuid, de.digitalcollections.model.api.identifiable.entity.parts.Webpage webpage)  
      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

        @Autowired
        public WebpagesController​(LanguageSortingHelper languageSortingHelper,
                                  de.digitalcollections.cudami.admin.backend.api.repository.LocaleRepository localeRepository,
                                  de.digitalcollections.cudami.admin.business.api.service.identifiable.entity.parts.WebpageService service)
    • Method Detail

      • module

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

        @GetMapping("/webpages/new")
        public java.lang.String create​(org.springframework.ui.Model model,
                                       @RequestParam("parentType")
                                       java.lang.String parentType,
                                       @RequestParam("parentUuid")
                                       java.lang.String parentUuid)
      • create

        @GetMapping("/api/webpages/new")
        @ResponseBody
        public de.digitalcollections.model.api.identifiable.entity.parts.Webpage create()
      • edit

        @GetMapping("/webpages/{uuid}/edit")
        public java.lang.String edit​(@PathVariable
                                     java.util.UUID uuid,
                                     org.springframework.ui.Model model)
      • get

        @GetMapping("/api/webpages/{uuid}")
        @ResponseBody
        public de.digitalcollections.model.api.identifiable.entity.parts.Webpage get​(@PathVariable
                                                                                     java.util.UUID uuid)
      • save

        @PostMapping("/api/webpages/new")
        public org.springframework.http.ResponseEntity save​(@RequestBody
                                                            de.digitalcollections.model.api.identifiable.entity.parts.Webpage webpage,
                                                            @RequestParam("parentType")
                                                            java.lang.String parentType,
                                                            @RequestParam("parentUuid")
                                                            java.util.UUID parentUuid)
                                                     throws de.digitalcollections.cudami.admin.business.api.service.exceptions.IdentifiableServiceException
        Throws:
        de.digitalcollections.cudami.admin.business.api.service.exceptions.IdentifiableServiceException
      • update

        @PutMapping("/api/webpages/{uuid}")
        public org.springframework.http.ResponseEntity update​(@PathVariable
                                                              java.util.UUID uuid,
                                                              @RequestBody
                                                              de.digitalcollections.model.api.identifiable.entity.parts.Webpage webpage)
                                                       throws de.digitalcollections.cudami.admin.business.api.service.exceptions.IdentifiableServiceException
        Throws:
        de.digitalcollections.cudami.admin.business.api.service.exceptions.IdentifiableServiceException
      • view

        @GetMapping("/webpages/{uuid}")
        public java.lang.String view​(@PathVariable
                                     java.util.UUID uuid,
                                     org.springframework.ui.Model model)