Class IndicatorController


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

      • IndicatorController

        public IndicatorController()
    • Method Detail

      • saveIndicator

        @PreAuthorize("isAuthenticated()")
        @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/{sectionId}/save",
                        method=POST)
        public Indicator saveIndicator​(@PathVariable("stakeholderId")
                                       String stakeholderId,
                                       @PathVariable("topicId")
                                       String topicId,
                                       @PathVariable("categoryId")
                                       String categoryId,
                                       @PathVariable("subcategoryId")
                                       String subcategoryId,
                                       @PathVariable("sectionId")
                                       String sectionId,
                                       @RequestBody
                                       Indicator indicator)
                                throws UnsupportedEncodingException
        Throws:
        UnsupportedEncodingException
      • urlEncode

        public String urlEncode​(String encodedIndicatorPathField)
      • deleteIndicator

        @PreAuthorize("isAuthenticated()")
        @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/{sectionId}/{indicatorId}/delete",
                        method=DELETE)
        public boolean deleteIndicator​(@PathVariable("stakeholderId")
                                       String stakeholderId,
                                       @PathVariable("topicId")
                                       String topicId,
                                       @PathVariable("categoryId")
                                       String categoryId,
                                       @PathVariable("subcategoryId")
                                       String subcategoryId,
                                       @PathVariable("sectionId")
                                       String sectionId,
                                       @PathVariable("indicatorId")
                                       String indicatorId,
                                       @RequestParam(required=false)
                                       String children)
      • onDeleteDefaultIndicator

        public boolean onDeleteDefaultIndicator​(String defaultIndicatorId,
                                                String defaultSectionId,
                                                String children)
      • reorderIndicators

        @PreAuthorize("isAuthenticated()")
        @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/{sectionId}/{type}/reorder",
                        method=POST)
        public List<Indicator> reorderIndicators​(@PathVariable("stakeholderId")
                                                 String stakeholderId,
                                                 @PathVariable("topicId")
                                                 String topicId,
                                                 @PathVariable("categoryId")
                                                 String categoryId,
                                                 @PathVariable("subcategoryId")
                                                 String subcategoryId,
                                                 @PathVariable("sectionId")
                                                 String sectionId,
                                                 @PathVariable("type")
                                                 String type,
                                                 @RequestBody
                                                 ReorderEvent reorderEvent)
      • changeIndicatorVisibility

        @PreAuthorize("isAuthenticated()")
        @RequestMapping(value="/{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/{sectionId}/{indicatorId}/change-visibility",
                        method=POST)
        public Indicator changeIndicatorVisibility​(@PathVariable("stakeholderId")
                                                   String stakeholderId,
                                                   @PathVariable("topicId")
                                                   String topicId,
                                                   @PathVariable("categoryId")
                                                   String categoryId,
                                                   @PathVariable("subcategoryId")
                                                   String subcategoryId,
                                                   @PathVariable("sectionId")
                                                   String sectionId,
                                                   @PathVariable("indicatorId")
                                                   String indicatorId,
                                                   @RequestParam("visibility")
                                                   Visibility visibility)
      • deleteTree

        public void deleteTree​(Section section)
      • disConnectTree

        public void disConnectTree​(Section section)