Class TopicController


  • @RestController
    @CrossOrigin(origins="*")
    public class TopicController
    extends Object
    • Constructor Detail

      • TopicController

        public TopicController()
    • Method Detail

      • saveTopic

        @PreAuthorize("isAuthenticated()")
        @RequestMapping(value="/{stakeholderId}/save",
                        method=POST)
        public Topic<Category> saveTopic​(@PathVariable("stakeholderId")
                                         String stakeholderId,
                                         @RequestBody
                                         Topic<Category> topicFull)
      • onSaveDefaultTopic

        public void onSaveDefaultTopic​(Topic topic,
                                       String stakeholderId)
      • onUpdateDefaultTopic

        public void onUpdateDefaultTopic​(Topic topic,
                                         Topic oldTopic)
      • deleteTopic

        @PreAuthorize("isAuthenticated()")
        @RequestMapping(value="/{stakeholderId}/{topicId}/delete",
                        method=DELETE)
        public boolean deleteTopic​(@PathVariable("stakeholderId")
                                   String stakeholderId,
                                   @PathVariable("topicId")
                                   String topicId,
                                   @RequestParam(required=false)
                                   String children)
      • onDeleteDefaultTopic

        public boolean onDeleteDefaultTopic​(String defaultTopicId,
                                            String defaultStakeholderId,
                                            String children)
      • reorderTopics

        @PreAuthorize("isAuthenticated()")
        @RequestMapping(value="/{stakeholderId}/reorder",
                        method=POST)
        public List<Topic> reorderTopics​(@PathVariable("stakeholderId")
                                         String stakeholderId,
                                         @RequestBody
                                         List<String> topics)
      • changeTopicVisibility

        @PreAuthorize("isAuthenticated()")
        @RequestMapping(value="/{stakeholderId}/{topicId}/change-visibility",
                        method=POST)
        public Topic changeTopicVisibility​(@PathVariable("stakeholderId")
                                           String stakeholderId,
                                           @PathVariable("topicId")
                                           String topicId,
                                           @RequestParam("visibility")
                                           Visibility visibility,
                                           @RequestParam(required=false)
                                           Boolean propagate)
      • deleteTree

        public void deleteTree​(Stakeholder stakeholder)