Class TopicController
- java.lang.Object
-
- eu.dnetlib.uoamonitorservice.controllers.TopicController
-
@RestController @CrossOrigin(origins="*") public class TopicController extends Object
-
-
Constructor Summary
Constructors Constructor Description TopicController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Topic<Category>buildTopic(Topic<Category> topicFull)TopicchangeTopicVisibility(String stakeholderId, String topicId, Visibility visibility, Boolean propagate)TopicchangeVisibilityTree(String topicId, Visibility visibility, Boolean propagate)booleandeleteTopic(String stakeholderId, String topicId, String children)voiddeleteTree(Stakeholder stakeholder)booleanonDeleteDefaultTopic(String defaultTopicId, String defaultStakeholderId, String children)voidonSaveDefaultTopic(Topic topic, String stakeholderId)voidonUpdateDefaultTopic(Topic topic, Topic oldTopic)List<Topic>reorderTopics(String stakeholderId, List<String> topics)Topic<Category>saveTopic(String stakeholderId, Topic<Category> topicFull)
-
-
-
Method Detail
-
saveTopic
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/save", method=POST) public Topic<Category> saveTopic(@PathVariable("stakeholderId") String stakeholderId, @RequestBody Topic<Category> topicFull)
-
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)
-
changeVisibilityTree
public Topic changeVisibilityTree(String topicId, Visibility visibility, Boolean propagate)
-
deleteTree
public void deleteTree(Stakeholder stakeholder)
-
-