Class BioMaterialReadServiceImpl
java.lang.Object
ubic.gemma.persistence.service.expression.biomaterial.BioMaterialReadServiceImpl
- All Implemented Interfaces:
BioMaterialReadService
@Service("bioMaterialReadService")
public class BioMaterialReadServiceImpl
extends Object
implements BioMaterialReadService
Implementation of
BioMaterialReadService.
All public methods are @Transactional(readOnly = true). ACL enforcement is the
responsibility of the facade BioMaterialService interface — this class is
unsecured at the AOP boundary on purpose, so intra-gemma-core callers can
bypass duplicate ACL checks once authenticated.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy(BioMaterial bioMaterial) Copy aBioMaterial.findByExperiment(ExpressionExperiment experiment) findByFactor(ExperimentalFactor experimentalFactor) findSiblings(BioMaterial bioMaterial) Find the siblings of a given biomaterial (other direct sub-materials of the same source).findSubBioMaterials(BioMaterial bioMaterial, boolean direct) Return theExpressionExperimentoccurrences of a given biomaterial, organized byBioAssay.<T extends Exception>
BioMaterialloadAndThawOrFail(Long bmId, Function<String, T> exceptionSupplier, String message) Load aBioMaterialby ID and thaw it eagerly, or throw the supplied exception if no such biomaterial exists.thaw(Collection<BioMaterial> bioMaterials) Thaw a collection ofBioMaterialfor full traversal.thaw(BioMaterial bioMaterial) Thaw a singleBioMaterialfor full traversal.
-
Constructor Details
-
BioMaterialReadServiceImpl
-
-
Method Details
-
copy
Description copied from interface:BioMaterialReadServiceCopy aBioMaterial.- Specified by:
copyin interfaceBioMaterialReadService- See Also:
-
findSubBioMaterials
@Transactional(readOnly=true) public Collection<BioMaterial> findSubBioMaterials(BioMaterial bioMaterial, boolean direct) - Specified by:
findSubBioMaterialsin interfaceBioMaterialReadService- See Also:
-
findSiblings
Description copied from interface:BioMaterialReadServiceFind the siblings of a given biomaterial (other direct sub-materials of the same source).- Specified by:
findSiblingsin interfaceBioMaterialReadService
-
findByExperiment
@Transactional(readOnly=true) public Collection<BioMaterial> findByExperiment(ExpressionExperiment experiment) - Specified by:
findByExperimentin interfaceBioMaterialReadService- See Also:
-
findByFactor
@Transactional(readOnly=true) public Collection<BioMaterial> findByFactor(ExperimentalFactor experimentalFactor) - Specified by:
findByFactorin interfaceBioMaterialReadService- See Also:
-
loadAndThawOrFail
@Transactional(readOnly=true) public <T extends Exception> BioMaterial loadAndThawOrFail(Long bmId, Function<String, T> exceptionSupplier, String message) throws TDescription copied from interface:BioMaterialReadServiceLoad aBioMaterialby ID and thaw it eagerly, or throw the supplied exception if no such biomaterial exists.- Specified by:
loadAndThawOrFailin interfaceBioMaterialReadService- Throws:
T
-
getExpressionExperiments
@Transactional(readOnly=true) public Map<BioMaterial, Map<BioAssay, ExpressionExperiment>> getExpressionExperiments(BioMaterial bm) Description copied from interface:BioMaterialReadServiceReturn theExpressionExperimentoccurrences of a given biomaterial, organized byBioAssay.- Specified by:
getExpressionExperimentsin interfaceBioMaterialReadService- See Also:
-
thaw
Description copied from interface:BioMaterialReadServiceThaw a singleBioMaterialfor full traversal.- Specified by:
thawin interfaceBioMaterialReadService
-
thaw
@Transactional(readOnly=true) public Collection<BioMaterial> thaw(Collection<BioMaterial> bioMaterials) Description copied from interface:BioMaterialReadServiceThaw a collection ofBioMaterialfor full traversal.- Specified by:
thawin interfaceBioMaterialReadService
-