Class ProjectSettingsAjaxController


  • @RestController
    @RequestMapping("/ajax/projects/{projectId}/settings")
    public class ProjectSettingsAjaxController
    extends java.lang.Object
    Controller to handle all asynchronous call from the project settings UI.
    • Constructor Detail

      • ProjectSettingsAjaxController

        @Autowired
        public ProjectSettingsAjaxController​(UIPipelineService pipelineService)
    • Method Detail

      • getProjectAnalysisTemplates

        @GetMapping("/analysis-templates")
        public java.util.List<AnalysisTemplate> getProjectAnalysisTemplates​(@PathVariable
                                                                            long projectId,
                                                                            java.util.Locale locale)
        Get all the automated workflow (analysis templates) for the current project
        Parameters:
        projectId - project identifier
        locale - current users locale
        Returns:
        list of automated templates on the current project
      • removeProjectAnalysisTemplates

        @DeleteMapping("/analysis-templates")
        public org.springframework.http.ResponseEntity<AjaxResponse> removeProjectAnalysisTemplates​(@RequestParam
                                                                                                    long templateId,
                                                                                                    @PathVariable
                                                                                                    long projectId,
                                                                                                    java.util.Locale locale)
        Remove an automated workflow (analysis templates) for the current project
        Parameters:
        templateId - identifier for an automated workflow
        projectId - identifier for a project
        locale - current users locale
        Returns:
        message to user about the outcome of the removal