Interface BioAssayService
- All Superinterfaces:
BaseImmutableService<BioAssay>
,BaseReadOnlyService<BioAssay>
,BaseService<BioAssay>
,BaseVoEnabledService<BioAssay,
,BioAssayValueObject> FilteringService<BioAssay>
,FilteringVoEnabledService<BioAssay,
BioAssayValueObject>
- All Known Implementing Classes:
BioAssayServiceImpl
@Service
public interface BioAssayService
extends BaseService<BioAssay>, FilteringVoEnabledService<BioAssay,BioAssayValueObject>
- Author:
- kelsey
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBioMaterialAssociation
(BioAssay bioAssay, BioMaterial bioMaterial) Associates a bioMaterial with a specified bioAssay.Creates the given entity in the persistent storage.findBioAssayDimensions
(BioAssay bioAssay) Locate all BioAssayDimensions in which the selected BioAssay occursfindByAccession
(String accession) findByShortName
(String shortName) findOrCreate
(BioAssay bioAssay) Does a search for the entity in the persistent storage, and if not found, creates it.findSiblings
(BioAssay bioAssay) findSubBioAssays
(BioAssay bioAssay, boolean direct) getBioAssaySets
(BioAssay bioAssay) Obtain all theBioAssaySet
that contain the givenBioAssay
.Loads object with given ID.load
(Collection<Long> ids) Loads objects with given ids.loadAll()
Loads all the entities of specific type.loadValueObjects
(Collection<BioAssay> entities, Map<BioAssay, BioAssay> assay2sourceAssayMap, boolean basic, boolean allFactorValues) void
Removes the given entity from the persistent storage.void
removeBioMaterialAssociation
(BioAssay bioAssay, BioMaterial bioMaterial) Removes the association between a specific bioMaterial and a bioAssay.thaw
(Collection<BioAssay> bioAssays) void
Updates the given entity in the persistent storage.Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, remove, remove
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
Methods inherited from interface ubic.gemma.persistence.service.BaseService
save, save, update
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
Methods inherited from interface ubic.gemma.persistence.service.FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getIdentifierPropertyName, getSort, load, load, loadIds
Methods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledService
loadValueObjects, loadValueObjects
-
Method Details
-
addBioMaterialAssociation
@PreAuthorize("hasPermission(#bioAssay, \'write\') or hasPermission(#bioAssay, \'administration\')") void addBioMaterialAssociation(BioAssay bioAssay, BioMaterial bioMaterial) Associates a bioMaterial with a specified bioAssay.- Parameters:
bioAssay
- bio assaybioMaterial
- bio material
-
findBioAssayDimensions
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) Collection<BioAssayDimension> findBioAssayDimensions(BioAssay bioAssay) Locate all BioAssayDimensions in which the selected BioAssay occurs- Parameters:
bioAssay
- bio assay- Returns:
- bio assay dimensions
-
findByShortName
-
findByAccession
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"}) Collection<BioAssay> findByAccession(String accession) - Parameters:
accession
- eg GSM12345.- Returns:
- BioAssays that match based on the plain accession (unconstrained by ExternalDatabase).
-
findSubBioAssays
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"}) Collection<BioAssay> findSubBioAssays(BioAssay bioAssay, boolean direct) - See Also:
-
findSiblings
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"}) Collection<BioAssay> findSiblings(BioAssay bioAssay) -
findOrCreate
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 interfaceBaseImmutableService<BioAssay>
- Parameters:
bioAssay
- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
create
Description copied from interface:BaseImmutableService
Creates the given entity in the persistent storage.- Specified by:
create
in interfaceBaseImmutableService<BioAssay>
- Parameters:
bioAssay
- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
load
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"}) Collection<BioAssay> load(Collection<Long> ids) Description copied from interface:BaseReadOnlyService
Loads objects with given ids.- Specified by:
load
in interfaceBaseReadOnlyService<BioAssay>
- Parameters:
ids
- the ids of objects to be loaded.- Returns:
- collection containing object with given IDs.
-
load
Description copied from interface:BaseReadOnlyService
Loads object with given ID.- Specified by:
load
in interfaceBaseReadOnlyService<BioAssay>
- 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
-
loadAll
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"}) Collection<BioAssay> loadAll()Description copied from interface:BaseReadOnlyService
Loads all the entities of specific type.- Specified by:
loadAll
in interfaceBaseReadOnlyService<BioAssay>
- Returns:
- collection of all entities currently available in the persistent storage.
-
remove
Description copied from interface:BaseImmutableService
Removes the given entity from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<BioAssay>
- Parameters:
bioAssay
- the entity to be removed.
-
update
Description copied from interface:BaseService
Updates the given entity in the persistent storage.- Specified by:
update
in interfaceBaseService<BioAssay>
- Parameters:
bioAssay
- the entity to be updated.
-
getBioAssaySets
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"}) Collection<BioAssaySet> getBioAssaySets(BioAssay bioAssay) Obtain all theBioAssaySet
that contain the givenBioAssay
. -
removeBioMaterialAssociation
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeBioMaterialAssociation(BioAssay bioAssay, BioMaterial bioMaterial) Removes the association between a specific bioMaterial and a bioAssay.- Parameters:
bioAssay
- bio assaybioMaterial
- bio material
-
thaw
@CheckReturnValue @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) BioAssay thaw(BioAssay bioAssay) -
thaw
@CheckReturnValue @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"}) Collection<BioAssay> thaw(Collection<BioAssay> bioAssays) -
loadValueObjects
List<BioAssayValueObject> loadValueObjects(Collection<BioAssay> entities, @Nullable Map<BioAssay, BioAssay> assay2sourceAssayMap, boolean basic, boolean allFactorValues) - See Also:
-