Class CategoryController
- java.lang.Object
-
- eu.dnetlib.uoamonitorservice.controllers.CategoryController
-
@RestController @CrossOrigin(origins="*") public class CategoryController extends Object
-
-
Constructor Summary
Constructors Constructor Description CategoryController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Category<SubCategory>buildCategory(Category<SubCategory> categoryFull)CategorychangeCategoryVisibility(String stakeholderId, String topicId, String categoryId, Visibility visibility, Boolean propagate)CategorychangeVisibilityTree(String categoryId, Visibility visibility, Boolean propagate)booleandeleteCategory(String stakeholderId, String topicId, String categoryId, String children)voiddeleteTree(Topic topic)voiddisConnectTree(Topic topic)booleanonDeleteDefaultCategory(String defaultCategoryId, String defaultTopicId, String children)voidonSaveDefaultCategory(Category<String> category, String topicId)voidonUpdateDefaultCategory(Category category, Category oldCategory)List<Category>reorderCategories(String stakeholderId, String topicId, List<String> categories)Category<SubCategory>saveCategory(String stakeholderId, String topicId, Category<SubCategory> categoryFull)
-
-
-
Method Detail
-
buildCategory
public Category<SubCategory> buildCategory(Category<SubCategory> categoryFull)
-
saveCategory
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/{topicId}/save", method=POST) public Category<SubCategory> saveCategory(@PathVariable("stakeholderId") String stakeholderId, @PathVariable("topicId") String topicId, @RequestBody Category<SubCategory> categoryFull)
-
onUpdateDefaultCategory
public void onUpdateDefaultCategory(Category category, Category oldCategory)
-
deleteCategory
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/delete", method=DELETE) public boolean deleteCategory(@PathVariable("stakeholderId") String stakeholderId, @PathVariable("topicId") String topicId, @PathVariable("categoryId") String categoryId, @RequestParam(required=false) String children)
-
onDeleteDefaultCategory
public boolean onDeleteDefaultCategory(String defaultCategoryId, String defaultTopicId, String children)
-
reorderCategories
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/{topicId}/reorder", method=POST) public List<Category> reorderCategories(@PathVariable("stakeholderId") String stakeholderId, @PathVariable("topicId") String topicId, @RequestBody List<String> categories)
-
changeCategoryVisibility
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/change-visibility", method=POST) public Category changeCategoryVisibility(@PathVariable("stakeholderId") String stakeholderId, @PathVariable("topicId") String topicId, @PathVariable("categoryId") String categoryId, @RequestParam("visibility") Visibility visibility, @RequestParam(required=false) Boolean propagate)
-
changeVisibilityTree
public Category changeVisibilityTree(String categoryId, Visibility visibility, Boolean propagate)
-
deleteTree
public void deleteTree(Topic topic)
-
disConnectTree
public void disConnectTree(Topic topic)
-
-