Class UIAnalysesOutputsService
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.ria.web.services.UIAnalysesOutputsService
-
@Component @Scope("session") public class UIAnalysesOutputsService extends java.lang.Object
UI Service for all things related to project single sample analysis outputs.
-
-
Constructor Summary
Constructors Constructor Description UIAnalysesOutputsService(AnalysisSubmissionService analysisSubmissionService, IridaWorkflowsService workflowsService, UserService userService, AnalysisOutputFileDownloadManager analysisOutputFileDownloadManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
downloadAnalysisOutputsSelection(java.lang.String filename, javax.servlet.http.HttpServletResponse response)
Download the selectedAnalysisOutputFile
.void
downloadIndividualAnalysisOutputFile(java.lang.Long analysisSubmissionId, java.lang.Long fileId, java.lang.String filename, javax.servlet.http.HttpServletResponse response)
Download analysis output filejava.util.List<ProjectSampleAnalysisOutputInfo>
getAutomatedSingleSampleOutputs(java.lang.Long projectId)
Get all the automated single sample analysis outputs for the projectjava.util.List<ProjectSampleAnalysisOutputInfo>
getSharedSingleSampleOutputs(java.lang.Long projectId)
Get all the shared single sample analysis outputs for the projectjava.util.List<ProjectSampleAnalysisOutputInfo>
getUserSingleSampleOutputs()
Get all the logged in user single sample analysis outputsvoid
prepareAnalysisOutputsSelectionDownload(java.util.List<ProjectSampleAnalysisOutputInfo> outputs)
Prepare the download of multipleAnalysisOutputFile
by adding them to a selection.
-
-
-
Constructor Detail
-
UIAnalysesOutputsService
@Autowired public UIAnalysesOutputsService(AnalysisSubmissionService analysisSubmissionService, IridaWorkflowsService workflowsService, UserService userService, AnalysisOutputFileDownloadManager analysisOutputFileDownloadManager)
-
-
Method Detail
-
getSharedSingleSampleOutputs
public java.util.List<ProjectSampleAnalysisOutputInfo> getSharedSingleSampleOutputs(java.lang.Long projectId)
Get all the shared single sample analysis outputs for the project- Parameters:
projectId
-Project
id- Returns:
- a list of filtered
ProjectSampleAnalysisOutputInfo
single sample analysis outputs
-
getAutomatedSingleSampleOutputs
public java.util.List<ProjectSampleAnalysisOutputInfo> getAutomatedSingleSampleOutputs(java.lang.Long projectId)
Get all the automated single sample analysis outputs for the project- Parameters:
projectId
-Project
id- Returns:
- a list of filtered
ProjectSampleAnalysisOutputInfo
single sample analysis outputs
-
getUserSingleSampleOutputs
public java.util.List<ProjectSampleAnalysisOutputInfo> getUserSingleSampleOutputs()
Get all the logged in user single sample analysis outputs- Returns:
- a list of filtered
ProjectSampleAnalysisOutputInfo
single sample analysis outputs for the user
-
prepareAnalysisOutputsSelectionDownload
public void prepareAnalysisOutputsSelectionDownload(java.util.List<ProjectSampleAnalysisOutputInfo> outputs)
Prepare the download of multipleAnalysisOutputFile
by adding them to a selection.- Parameters:
outputs
- Info forAnalysisOutputFile
to download
-
downloadAnalysisOutputsSelection
public void downloadAnalysisOutputsSelection(java.lang.String filename, javax.servlet.http.HttpServletResponse response)
Download the selectedAnalysisOutputFile
.- Parameters:
filename
- Filename for file download.response
-HttpServletResponse
-
downloadIndividualAnalysisOutputFile
public void downloadIndividualAnalysisOutputFile(java.lang.Long analysisSubmissionId, java.lang.Long fileId, java.lang.String filename, javax.servlet.http.HttpServletResponse response)
Download analysis output file- Parameters:
analysisSubmissionId
- Id for aAnalysisSubmission
fileId
- the id of the file to downloadfilename
- Optional filename for file download.response
-HttpServletResponse
-
-