java.lang.Object
de.digitalcollections.commons.springmvc.controller.AbstractController
de.digitalcollections.cudami.admin.controller.identifiable.entity.parts.SubtopicsController

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

    Constructors
    Constructor Description
    SubtopicsController​(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient)  
  • Method Summary

    Modifier and Type Method Description
    de.digitalcollections.model.api.identifiable.entity.parts.Subtopic 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, java.util.Locale activeLanguage, org.springframework.ui.Model model)  
    de.digitalcollections.model.api.identifiable.entity.parts.Subtopic get​(java.util.UUID uuid)  
    protected java.lang.String module()  
    org.springframework.http.ResponseEntity save​(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, java.lang.String parentType, java.util.UUID parentUuid)  
    org.springframework.http.ResponseEntity update​(java.util.UUID uuid, de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)  
    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 Details

  • Method Details

    • module

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

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

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

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

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

      @PostMapping("/api/subtopics/new") public org.springframework.http.ResponseEntity save​(@RequestBody de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, @RequestParam("parentType") java.lang.String parentType, @RequestParam("parentUuid") java.util.UUID parentUuid)
    • update

      @PutMapping("/api/subtopics/{uuid}") public org.springframework.http.ResponseEntity update​(@PathVariable java.util.UUID uuid, @RequestBody de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)
    • view

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