Class AnalysisServiceImpl
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.service.impl.CRUDServiceImpl<java.lang.Long,Analysis>
-
- ca.corefacility.bioinformatics.irida.service.impl.AnalysisServiceImpl
-
- All Implemented Interfaces:
AnalysisService
,CRUDService<java.lang.Long,Analysis>
@Service public class AnalysisServiceImpl extends CRUDServiceImpl<java.lang.Long,Analysis> implements AnalysisService
Implementation ofAnalysisService
.
-
-
Field Summary
-
Fields inherited from class ca.corefacility.bioinformatics.irida.service.impl.CRUDServiceImpl
CREATED_DATE_SORT_PROPERTY, repository, validator, valueType
-
-
Constructor Summary
Constructors Constructor Description AnalysisServiceImpl(AnalysisRepository analysisRepository, AnalysisOutputFileRepository analysisOutputFileRepository, javax.validation.Validator validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Analysis
create(Analysis analysis)
Create a new object in the persistence store.AnalysisFastQC
getFastQCAnalysisForSequenceFile(SequencingObject object, java.lang.Long fileId)
Analysis
read(java.lang.Long analysisId)
Read the object type by unique identifier.-
Methods inherited from class ca.corefacility.bioinformatics.irida.service.impl.CRUDServiceImpl
count, delete, exists, findAll, findRevisions, findRevisions, list, list, list, readMultiple, search, search, update, updateFields, updateMultiple
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.service.CRUDService
count, delete, exists, findAll, findRevisions, findRevisions, list, list, list, readMultiple, search, search, update, updateFields, updateMultiple
-
-
-
-
Constructor Detail
-
AnalysisServiceImpl
@Autowired public AnalysisServiceImpl(AnalysisRepository analysisRepository, AnalysisOutputFileRepository analysisOutputFileRepository, javax.validation.Validator validator)
-
-
Method Detail
-
read
@PreAuthorize("hasRole(\'ROLE_ADMIN\') or hasPermission(#analysisId, \'canReadAnalysis\')") public Analysis read(java.lang.Long analysisId)
Read the object type by unique identifier.- Specified by:
read
in interfaceCRUDService<java.lang.Long,Analysis>
- Overrides:
read
in classCRUDServiceImpl<java.lang.Long,Analysis>
- Parameters:
analysisId
- The unique identifier for this object.- Returns:
- The object corresponding to the unique identifier.
-
create
@PreAuthorize("hasRole(\'ROLE_USER\')") public Analysis create(Analysis analysis)
Create a new object in the persistence store.- Specified by:
create
in interfaceCRUDService<java.lang.Long,Analysis>
- Overrides:
create
in classCRUDServiceImpl<java.lang.Long,Analysis>
- Parameters:
analysis
- The object to persist.- Returns:
- The object as it was persisted in the database. May modify the identifier of the object when returned.
-
getFastQCAnalysisForSequenceFile
@PreAuthorize("hasAnyRole(\'ROLE_ADMIN\', \'ROLE_TECHNICIAN\') or hasPermission(#object, \'canReadSequencingObject\')") public AnalysisFastQC getFastQCAnalysisForSequenceFile(SequencingObject object, java.lang.Long fileId)
- Specified by:
getFastQCAnalysisForSequenceFile
in interfaceAnalysisService
- Parameters:
object
- theSequencingObject
fileId
- theSequenceFile
id within theSequencingObject
- Returns:
- the
AnalysisFastQC
for the givenSequenceFile
-
-