Class ProjectSettingsAjaxController
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.ria.web.ajax.projects.settings.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 Summary
Constructors Constructor Description ProjectSettingsAjaxController(UIPipelineService pipelineService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AnalysisTemplate>
getProjectAnalysisTemplates(long projectId, java.util.Locale locale)
Get all the automated workflow (analysis templates) for the current projectorg.springframework.http.ResponseEntity<AjaxResponse>
removeProjectAnalysisTemplates(long templateId, long projectId, java.util.Locale locale)
Remove an automated workflow (analysis templates) for the current project
-
-
-
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 identifierlocale
- 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 workflowprojectId
- identifier for a projectlocale
- current users locale- Returns:
- message to user about the outcome of the removal
-
-