Class SubtopicsController
- 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.AbstractControllerController for subtopics management pages.
-
-
Constructor Summary
Constructors Constructor Description SubtopicsController(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.api.identifiable.entity.parts.Subtopiccreate()Stringcreate(org.springframework.ui.Model model, String parentType, String parentUuid)Stringedit(UUID uuid, Locale activeLanguage, org.springframework.ui.Model model)de.digitalcollections.model.api.identifiable.entity.parts.Subtopicget(UUID uuid)protected Stringmodule()org.springframework.http.ResponseEntitysave(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, String parentType, UUID parentUuid)org.springframework.http.ResponseEntityupdate(UUID uuid, de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)Stringview(UUID uuid, org.springframework.ui.Model model)
-
-
-
Constructor Detail
-
SubtopicsController
@Autowired public SubtopicsController(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient)
-
-
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) 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 String edit(@PathVariable UUID uuid, @RequestParam(name="activeLanguage",required=false) 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 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") String parentType, @RequestParam("parentUuid") UUID parentUuid)
-
update
@PutMapping("/api/subtopics/{uuid}") public org.springframework.http.ResponseEntity update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)
-
view
@GetMapping("/subtopics/{uuid}") public String view(@PathVariable UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
-