Class RESTProjectAnalysisController
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.web.controller.api.projects.RESTProjectAnalysisController
-
@Controller public class RESTProjectAnalysisController extends java.lang.Object
Controller for managing relationships betweenProject
andAnalysisSubmission
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RESTProjectAnalysisController()
RESTProjectAnalysisController(ProjectService projectService, AnalysisSubmissionService analysisSubmissionService, IridaWorkflowsService iridaWorkflowsService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseResource<ResourceCollection<AnalysisSubmission>>
getProjectAnalyses(java.lang.Long projectId)
Get the list ofAnalysisSubmission
s associated with thisProject
.ResponseResource<ResourceCollection<AnalysisSubmission>>
getProjectAnalysesByType(java.lang.Long projectId, java.lang.String type)
Get the list ofAnalysisSubmission
s for thisProject
by type of analysis.
-
-
-
Constructor Detail
-
RESTProjectAnalysisController
protected RESTProjectAnalysisController()
-
RESTProjectAnalysisController
@Autowired public RESTProjectAnalysisController(ProjectService projectService, AnalysisSubmissionService analysisSubmissionService, IridaWorkflowsService iridaWorkflowsService)
-
-
Method Detail
-
getProjectAnalyses
@RequestMapping(value="/api/projects/{projectId}/analyses", method=GET) public ResponseResource<ResourceCollection<AnalysisSubmission>> getProjectAnalyses(@PathVariable java.lang.Long projectId)
Get the list ofAnalysisSubmission
s associated with thisProject
.- Parameters:
projectId
- the identifier of theProject
to get theAnalysisSubmission
s for.- Returns:
- the list of
AnalysisSubmission
s associated with thisProject
.
-
getProjectAnalysesByType
@RequestMapping(value="/api/projects/{projectId}/analyses/{type}", method=GET) public ResponseResource<ResourceCollection<AnalysisSubmission>> getProjectAnalysesByType(@PathVariable java.lang.Long projectId, @PathVariable java.lang.String type) throws IridaWorkflowNotFoundException
Get the list ofAnalysisSubmission
s for thisProject
by type of analysis.- Parameters:
projectId
- TheProject
to search.type
- The analysis type to search for.- Returns:
- A list of
AnalysisSubmission
s for the givenProject
by the given type. - Throws:
IridaWorkflowNotFoundException
- If theAnalysisSubmission
is linked to a workflow not found in IRIDA.
-
-