Class SubtopicsController


  • @Controller
    public class SubtopicsController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    Controller for subtopics management pages.
    • Method Detail

      • module

        @ModelAttribute("menu")
        protected String module()
      • create

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

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

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

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

        @PostMapping("/api/subtopics/new")
        public org.springframework.http.ResponseEntity save​(@RequestBody
                                                            de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic,
                                                            @RequestParam("parentType")
                                                            String parentType,
                                                            @RequestParam("parentUuid")
                                                            UUID parentUuid)
                                                     throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException
      • view

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