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.AbstractControllerController for topics management pages.
-
-
Constructor Summary
Constructors Constructor Description TopicsController(LanguageSortingHelper languageSortingHelper, LocaleRepository localeRepository, TopicService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.api.identifiable.entity.Topiccreate()Stringcreate(org.springframework.ui.Model model)Stringedit(UUID uuid, org.springframework.ui.Model model)de.digitalcollections.model.api.identifiable.entity.Topicget(UUID uuid)Stringlist(org.springframework.ui.Model model, org.springframework.data.domain.Pageable pageable)protected Stringmodule()org.springframework.http.ResponseEntitysave(de.digitalcollections.model.api.identifiable.entity.Topic topic)org.springframework.http.ResponseEntityupdate(UUID uuid, de.digitalcollections.model.api.identifiable.entity.Topic topic)Stringview(UUID uuid, org.springframework.ui.Model model)
-
-
-
Constructor Detail
-
TopicsController
@Autowired public TopicsController(LanguageSortingHelper languageSortingHelper, LocaleRepository localeRepository, TopicService service)
-
-
Method Detail
-
module
@ModelAttribute("menu") protected String module()
-
create
@GetMapping("/topics/new") public String create(org.springframework.ui.Model model)
-
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, org.springframework.ui.Model model)
-
get
@GetMapping("/api/topics/{uuid}") @ResponseBody public de.digitalcollections.model.api.identifiable.entity.Topic get(@PathVariable UUID uuid)
-
list
@GetMapping("/topics") public String list(org.springframework.ui.Model model, @PageableDefault(sort="lastModified",size=25) org.springframework.data.domain.Pageable pageable)
-
save
@PostMapping("/api/topics/new") public org.springframework.http.ResponseEntity save(@RequestBody de.digitalcollections.model.api.identifiable.entity.Topic topic) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
update
@PutMapping("/api/topics/{uuid}") public org.springframework.http.ResponseEntity update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.api.identifiable.entity.Topic topic) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
-