Interface BioMaterialReadService
- All Known Implementing Classes:
BioMaterialReadServiceImpl
BioMaterial.
Phase 3 of the BioMaterialService decomposition (strangler fig). This service
houses the read-side cluster previously implemented directly on the
BioMaterialServiceImpl facade: copy, findSubBioMaterials,
findSiblings, findByExperiment, findByFactor,
loadAndThawOrFail, getExpressionExperiments, and the thaw
variants. All methods delegate to BioMaterialDao (and
Thaws for eager-loading) with no orchestration of
write-side collaborators.
Callers should generally keep using BioMaterialService as the facade — the
facade delegates to this service. Direct injection is appropriate where a class would
otherwise create a Spring construction cycle through the heavier facade.
ACL / @Secured annotations live on BioMaterialService (the
caller-facing facade interface); enforcement happens at the facade proxy boundary, so
this interface is intentionally unsecured.
- See Also:
-
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.
-
Method Details
-
copy
-
findSubBioMaterials
- See Also:
-
findSiblings
Find the siblings of a given biomaterial (other direct sub-materials of the same source). -
findByExperiment
- See Also:
-
findByFactor
- See Also:
-
loadAndThawOrFail
<T extends Exception> BioMaterial loadAndThawOrFail(Long bmId, Function<String, T> exceptionSupplier, String message) throws TLoad aBioMaterialby ID and thaw it eagerly, or throw the supplied exception if no such biomaterial exists.- Throws:
T
-
getExpressionExperiments
Return theExpressionExperimentoccurrences of a given biomaterial, organized byBioAssay.- See Also:
-
thaw
Thaw a singleBioMaterialfor full traversal. -
thaw
Thaw a collection ofBioMaterialfor full traversal.
-