Class AnalysisSubmissionRepositoryImpl
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.repositories.analysis.submission.AnalysisSubmissionRepositoryImpl
-
- All Implemented Interfaces:
AnalysisSubmissionRepositoryCustom
@Repository public class AnalysisSubmissionRepositoryImpl extends java.lang.Object implements AnalysisSubmissionRepositoryCustom
Implementation ofAnalysisSubmissionRepositoryCustom
with methods using native SQL queries to getAnalysisOutputFile
info forProject
andUser
-
-
Constructor Summary
Constructors Constructor Description AnalysisSubmissionRepositoryImpl(javax.sql.DataSource dataSource, java.nio.file.Path outputFileBaseDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ProjectSampleAnalysisOutputInfo>
getAllAnalysisOutputInfoSharedWithProject(java.lang.Long projectId, java.util.Set<java.util.UUID> workflowIds)
Get allProjectSampleAnalysisOutputInfo
shared with aProject
.java.util.List<ProjectSampleAnalysisOutputInfo>
getAllAutomatedAnalysisOutputInfoForAProject(java.lang.Long projectId, java.util.Set<java.util.UUID> workflowIds)
Get all automatedProjectSampleAnalysisOutputInfo
for aProject
.java.util.List<ProjectSampleAnalysisOutputInfo>
getAllUserAnalysisOutputInfo(java.lang.Long userId)
Get allUser
generated analysis output information.
-
-
-
Method Detail
-
getAllAnalysisOutputInfoSharedWithProject
public java.util.List<ProjectSampleAnalysisOutputInfo> getAllAnalysisOutputInfoSharedWithProject(java.lang.Long projectId, java.util.Set<java.util.UUID> workflowIds)
Get allProjectSampleAnalysisOutputInfo
shared with aProject
.- Specified by:
getAllAnalysisOutputInfoSharedWithProject
in interfaceAnalysisSubmissionRepositoryCustom
- Parameters:
projectId
-Project
idworkflowIds
- Workflow UUIDs of workflow pipelines to get output files for- Returns:
- a list of
ProjectSampleAnalysisOutputInfo
-
getAllAutomatedAnalysisOutputInfoForAProject
public java.util.List<ProjectSampleAnalysisOutputInfo> getAllAutomatedAnalysisOutputInfoForAProject(java.lang.Long projectId, java.util.Set<java.util.UUID> workflowIds)
Get all automatedProjectSampleAnalysisOutputInfo
for aProject
.- Specified by:
getAllAutomatedAnalysisOutputInfoForAProject
in interfaceAnalysisSubmissionRepositoryCustom
- Parameters:
projectId
-Project
idworkflowIds
- Workflow UUIDs of workflow pipelines to get output files for- Returns:
- a list of
ProjectSampleAnalysisOutputInfo
-
getAllUserAnalysisOutputInfo
public java.util.List<ProjectSampleAnalysisOutputInfo> getAllUserAnalysisOutputInfo(java.lang.Long userId)
Get allUser
generated analysis output information.- Specified by:
getAllUserAnalysisOutputInfo
in interfaceAnalysisSubmissionRepositoryCustom
- Parameters:
userId
-User
id- Returns:
- a list of
ProjectSampleAnalysisOutputInfo
-
-