Class TopicsController
- java.lang.Object
-
- de.digitalcollections.commons.springmvc.controller.AbstractController
-
- de.digitalcollections.cudami.admin.controller.identifiable.entity.TopicsController
-
@Controller public class TopicsController extends de.digitalcollections.commons.springmvc.controller.AbstractController
Controller for topics management pages.
-
-
Constructor Summary
Constructors Constructor Description TopicsController(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.api.identifiable.entity.Topic
create()
String
create(org.springframework.ui.Model model)
String
edit(UUID uuid, Locale activeLanguage, org.springframework.ui.Model model)
de.digitalcollections.model.api.identifiable.entity.Topic
get(UUID uuid)
String
list(org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable)
protected String
module()
org.springframework.http.ResponseEntity
save(de.digitalcollections.model.api.identifiable.entity.Topic topic)
org.springframework.http.ResponseEntity
update(UUID uuid, de.digitalcollections.model.api.identifiable.entity.Topic topic)
String
view(UUID uuid, org.springframework.ui.Model model)
-
-
-
Constructor Detail
-
TopicsController
@Autowired public TopicsController(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient)
-
-
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)
-
view
@GetMapping("/topics/{uuid}") public String view(@PathVariable UUID uuid, org.springframework.ui.Model model) throws HttpException
- Throws:
HttpException
-
-