Class SectionController
- java.lang.Object
-
- eu.dnetlib.uoamonitorservice.controllers.SectionController
-
@RestController @CrossOrigin(origins="*") public class SectionController extends Object
-
-
Constructor Summary
Constructors Constructor Description SectionController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Section<Indicator>buildSection(Section<Indicator> sectionFull)SectionchangeVisibilityTree(String sectionId, Visibility visibility)booleandeleteSection(String stakeholderId, String topicId, String categoryId, String subcategoryId, String sectionId, String children)voiddeleteTree(SubCategory subCategory)voiddisConnectTree(SubCategory subCategory)booleanonDeleteDefaultSection(String defaultSectionId, String defaultSubCategoryId, String children, String type)voidonSaveDefaultSection(Section section, String defaultTopicId, String defaultCategoryId, String defaultSubcategoryId, Stakeholder defaultStakeholder)voidonUpdateDefaultSection(Section section, Stakeholder stakeholder, Section oldSection)List<Section>reorderSections(String stakeholderId, String topicId, String categoryId, String subcategoryId, String type, List<String> sections)SectionsaveSection(String stakeholderId, String topicId, String categoryId, String subcategoryId, String index, Section<Indicator> sectionFull)voidtoggleSection(String stakeholderId, String topicId, String categoryId, String subcategoryId, Section section)
-
-
-
Method Detail
-
saveSection
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/save/{index}", method=POST) public Section saveSection(@PathVariable("stakeholderId") String stakeholderId, @PathVariable("topicId") String topicId, @PathVariable("categoryId") String categoryId, @PathVariable("subcategoryId") String subcategoryId, @PathVariable("index") String index, @RequestBody Section<Indicator> sectionFull)
-
onSaveDefaultSection
public void onSaveDefaultSection(Section section, String defaultTopicId, String defaultCategoryId, String defaultSubcategoryId, Stakeholder defaultStakeholder)
-
onUpdateDefaultSection
public void onUpdateDefaultSection(Section section, Stakeholder stakeholder, Section oldSection)
-
deleteSection
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/{sectionId}/delete", method=DELETE) public boolean deleteSection(@PathVariable("stakeholderId") String stakeholderId, @PathVariable("topicId") String topicId, @PathVariable("categoryId") String categoryId, @PathVariable("subcategoryId") String subcategoryId, @PathVariable("sectionId") String sectionId, @RequestParam(required=false) String children)
-
onDeleteDefaultSection
public boolean onDeleteDefaultSection(String defaultSectionId, String defaultSubCategoryId, String children, String type)
-
reorderSections
@PreAuthorize("isAuthenticated()") @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/{type}/reorder", method=POST) public List<Section> reorderSections(@PathVariable("stakeholderId") String stakeholderId, @PathVariable("topicId") String topicId, @PathVariable("categoryId") String categoryId, @PathVariable("subcategoryId") String subcategoryId, @PathVariable("type") String type, @RequestBody List<String> sections)
-
toggleSection
public void toggleSection(String stakeholderId, String topicId, String categoryId, String subcategoryId, Section section)
-
deleteTree
public void deleteTree(SubCategory subCategory)
-
disConnectTree
public void disConnectTree(SubCategory subCategory)
-
changeVisibilityTree
public Section changeVisibilityTree(String sectionId, Visibility visibility)
-
-