Interface BioMaterialService

    • Method Detail

      • copy

        @Secured({"GROUP_USER","ACL_SECURABLE_EDIT"})
        BioMaterial copy​(BioMaterial bioMaterial)
        Copies a bioMaterial.
        Parameters:
        bioMaterial - ba to copy
        Returns:
        the copy
      • findOrCreate

        @Secured({"GROUP_USER","AFTER_ACL_READ"})
        BioMaterial findOrCreate​(BioMaterial bioMaterial)
        Description copied from interface: BaseImmutableService
        Does a search for the entity in the persistent storage, and if not found, creates it.
        Specified by:
        findOrCreate in interface BaseImmutableService<BioMaterial>
        Parameters:
        bioMaterial - the entity to look for, and create if not found.
        Returns:
        the entity retrieved from the persistent storage, either found or created.
      • load

        @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"})
        BioMaterial load​(Long id)
        Description copied from interface: BaseReadOnlyService
        Loads object with given ID.
        Specified by:
        load in interface BaseReadOnlyService<BioMaterial>
        Parameters:
        id - the ID of entity to be loaded.
        Returns:
        the entity with matching ID, or null if the entity does not exist or if the passed ID was null
      • update

        @Secured({"GROUP_USER","ACL_SECURABLE_EDIT"})
        void update​(BioMaterial bioMaterial)
        Description copied from interface: BaseService
        Updates the given entity in the persistent storage.
        Specified by:
        update in interface BaseService<BioMaterial>
        Parameters:
        bioMaterial - the entity to be updated.
      • getExpressionExperiment

        @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"})
        ExpressionExperiment getExpressionExperiment​(Long id)
      • updateBioMaterials

        @Secured("GROUP_USER")
        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