Class TopicsController


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

      • module

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

        @GetMapping("/topics/new")
        public String create​(org.springframework.ui.Model model)
                      throws Exception
        Throws:
        Exception
      • create

        @GetMapping("/api/topics/new")
        @ResponseBody
        public de.digitalcollections.model.api.identifiable.entity.Topic create()
      • edit

        @GetMapping("/topics/{uuid}/edit")
        public String edit​(@PathVariable
                           UUID uuid,
                           @RequestParam(name="activeLanguage",required=false)
                           Locale activeLanguage,
                           org.springframework.ui.Model model)
                    throws HttpException
        Throws:
        HttpException
      • get

        @GetMapping("/api/topics/{uuid}")
        @ResponseBody
        public de.digitalcollections.model.api.identifiable.entity.Topic get​(@PathVariable
                                                                             UUID uuid)
                                                                      throws HttpException
        Throws:
        HttpException
      • list

        @GetMapping("/topics")
        public String list​(org.springframework.ui.Model model,
                           @PageableDefault(size=25)
                           org.springframework.data.domain.Pageable pageable)
                    throws HttpException
        Throws:
        HttpException
      • save

        @PostMapping("/api/topics/new")
        public org.springframework.http.ResponseEntity save​(@RequestBody
                                                            de.digitalcollections.model.api.identifiable.entity.Topic topic)
      • update

        @PutMapping("/api/topics/{uuid}")
        public org.springframework.http.ResponseEntity update​(@PathVariable
                                                              UUID uuid,
                                                              @RequestBody
                                                              de.digitalcollections.model.api.identifiable.entity.Topic topic)