Class SectionController


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

      • SectionController

        public SectionController()
    • 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)
      • deleteTree

        public void deleteTree​(SubCategory subCategory)
      • disConnectTree

        public void disConnectTree​(SubCategory subCategory)