Interface BioMaterialService
- All Superinterfaces:
BaseImmutableService<BioMaterial>,BaseReadOnlyService<BioMaterial>,BaseService<BioMaterial>,BaseVoEnabledService<BioMaterial,,BioMaterialValueObject> SecurableBaseImmutableService<BioMaterial>,SecurableBaseReadOnlyService<BioMaterial>,SecurableBaseService<BioMaterial>,SecurableBaseVoEnabledService<BioMaterial,BioMaterialValueObject>
- All Known Implementing Classes:
BioMaterialServiceImpl
public interface BioMaterialService
extends SecurableBaseService<BioMaterial>, SecurableBaseVoEnabledService<BioMaterial,BioMaterialValueObject>
- Author:
- kelsey
-
Method Summary
Modifier and TypeMethodDescriptionvoidWill persist the give vocab characteristic to the given biomaterial<T> voidassociateBatchFactor(Map<BioMaterial, T> descriptors, Map<T, FactorValue> d2fv) Associate dates with bioassays and any new factors with the biomaterials.copy(BioMaterial bioMaterial) Copies a bioMaterial.findByExperiment(ExpressionExperiment experiment) findByFactor(ExperimentalFactor experimentalFactor) findSiblings(BioMaterial bioMaterial) Find the siblings of a given biomaterial.findSubBioMaterials(BioMaterial bioMaterial, boolean direct) <T extends Exception>
BioMaterialloadAndThawOrFail(Long bmId, Function<String, T> exceptionSupplier, String message) voidRemove the given characteristic from the given biomaterialthaw(Collection<BioMaterial> bioMaterials) thaw(BioMaterial bioMaterial) updateBioMaterials(Collection<BioMaterialValueObject> valueObjects) Update the biomaterials that are described by the given valueObjects.Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, getElementClass, loadOrFail, loadOrFailMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableBaseImmutableService
create, create, findOrCreate, remove, removeMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableBaseReadOnlyService
find, findOrFail, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableBaseService
save, save, update, updateMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableBaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Method Details
-
copy
Copies a bioMaterial.- Parameters:
bioMaterial- ba to copy- Returns:
- the copy
-
findSubBioMaterials
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<BioMaterial> findSubBioMaterials(BioMaterial bioMaterial, boolean direct) - See Also:
-
findSiblings
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<BioMaterial> findSiblings(BioMaterial bioMaterial) Find the siblings of a given biomaterial. -
findByExperiment
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<BioMaterial> findByExperiment(ExpressionExperiment experiment) -
findByFactor
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<BioMaterial> findByFactor(ExperimentalFactor experimentalFactor) -
loadAndThawOrFail
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"}) <T extends Exception> BioMaterial loadAndThawOrFail(Long bmId, Function<String, T> exceptionSupplier, String message) throws T- Throws:
T
-
getExpressionExperiments
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_MAP_READ"}) Map<BioMaterial,Map<BioAssay, getExpressionExperimentsExpressionExperiment>> (BioMaterial bm) -
thaw
@CheckReturnValue @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE__READ"}) BioMaterial thaw(BioMaterial bioMaterial) -
thaw
@CheckReturnValue @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"}) Collection<BioMaterial> thaw(Collection<BioMaterial> bioMaterials) -
updateBioMaterials
@Secured("GROUP_ADMIN") Collection<BioMaterial> updateBioMaterials(Collection<BioMaterialValueObject> valueObjects) Update the biomaterials that are described by the given valueObjects. This is used to update experimental designs in particular.- Parameters:
valueObjects- VOs- Returns:
- the biomaterials that were modified.
-
associateBatchFactor
@Secured("GROUP_ADMIN") <T> void associateBatchFactor(Map<BioMaterial, T> descriptors, Map<T, FactorValue> d2fv) Associate dates with bioassays and any new factors with the biomaterials. Note we can have missing values.- Parameters:
d2fv- map of dates to factor values
-
addCharacteristic
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void addCharacteristic(BioMaterial bm, Characteristic vc) Will persist the give vocab characteristic to the given biomaterial- See Also:
-
removeCharacteristics
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeCharacteristics(BioMaterial bm, Collection<Characteristic> vc) Remove the given characteristic from the given biomaterial- Throws:
IllegalArgumentException- if the characteristic does not belong to the biomaterial
-