Class BioAssayServiceImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractService<BioAssay>
ubic.gemma.persistence.service.AbstractFilteringVoEnabledService<BioAssay, BioAssayValueObject>
ubic.gemma.persistence.service.expression.bioAssay.BioAssayServiceImpl
- All Implemented Interfaces:
BaseImmutableService<BioAssay>, BaseReadOnlyService<BioAssay>, BaseService<BioAssay>, BaseVoEnabledService<BioAssay, BioAssayValueObject>, SecurableBaseImmutableService<BioAssay>, SecurableBaseReadOnlyService<BioAssay>, SecurableBaseService<BioAssay>, SecurableBaseVoEnabledService<BioAssay, BioAssayValueObject>, SecurableFilteringVoEnabledService<BioAssay, BioAssayValueObject>, BioAssayService, FilteringService<BioAssay>, FilteringVoEnabledService<BioAssay, BioAssayValueObject>
@Service
public class BioAssayServiceImpl
extends AbstractFilteringVoEnabledService<BioAssay, BioAssayValueObject>
implements BioAssayService
- Author:
- pavlidis, keshav, joseph
- See Also:
-
Field Summary
Fields inherited from class AbstractService
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBioMaterialAssociation(BioAssay bioAssay, BioMaterial bioMaterial) Associates a bioMaterial with a specified bioAssay.findBioAssayDimensions(BioAssay bioAssay) Locate all BioAssayDimensions in which the selected BioAssay occursfindByAccession(String accession) findByShortName(String shortName) findSiblings(BioAssay bioAssay) findSubBioAssays(BioAssay bioAssay, boolean direct) getBioAssaySets(BioAssay bioAssay) Obtain all theBioAssaySetthat contain the givenBioAssay.loadValueObjects(Collection<BioAssay> entities, Map<BioAssay, BioAssay> assay2sourceAssayMap, boolean basic, boolean allFactorValues) loadValueObjectsByCursorForExpressionExperiment(ExpressionExperiment ee, Cursor cursor, int limit) Cursor-mode counterpart to the legacy unpaginatedBioAssayDaoEE-scoped sample listing — seeCURSOR_PAGINATION_STEP1_PLAN.mdstep 1k.loadValueObjectsByCursorForSubSet(ExpressionExperimentSubSet subset, Cursor cursor, int limit) Cursor-mode counterpart to the legacy unpaginated subset-scoped sample listing — seeCURSOR_PAGINATION_STEP1_PLAN.mdstep 1u.voidremoveBioMaterialAssociation(BioAssay bioAssay, BioMaterial bioMaterial) Removes the association between a specific bioMaterial and a bioAssay.thaw(Collection<BioAssay> bioAssays) Methods inherited from class AbstractFilteringVoEnabledService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery, load, load, loadAllValueObjects, loadIds, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjects, loadValueObjects, loadValueObjectsByCursor, loadValueObjectsByIdsMethods inherited from class AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, remove, remove, save, save, streamAll, streamAll, update, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseReadOnlyService
countAll, getElementClass, loadOrFail, loadOrFailMethods inherited from interface FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubqueryMethods inherited from interface FilteringVoEnabledService
loadValueObjectsByCursorMethods inherited from interface SecurableBaseImmutableService
create, create, findOrCreate, remove, removeMethods inherited from interface SecurableBaseReadOnlyService
find, findOrFail, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface SecurableBaseService
save, save, update, updateMethods inherited from interface SecurableBaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from interface SecurableFilteringVoEnabledService
load, load, loadIds, loadValueObjects, loadValueObjects
-
Constructor Details
-
BioAssayServiceImpl
-
-
Method Details
-
addBioMaterialAssociation
Description copied from interface:BioAssayServiceAssociates a bioMaterial with a specified bioAssay.- Specified by:
addBioMaterialAssociationin interfaceBioAssayService- Parameters:
bioAssay- bio assaybioMaterial- bio material
-
removeBioMaterialAssociation
Description copied from interface:BioAssayServiceRemoves the association between a specific bioMaterial and a bioAssay.- Specified by:
removeBioMaterialAssociationin interfaceBioAssayService- Parameters:
bioAssay- bio assaybioMaterial- bio material- See Also:
-
findBioAssayDimensions
Description copied from interface:BioAssayServiceLocate all BioAssayDimensions in which the selected BioAssay occurs- Specified by:
findBioAssayDimensionsin interfaceBioAssayService- Parameters:
bioAssay- bio assay- Returns:
- bio assay dimensions
- See Also:
-
findByShortName
- Specified by:
findByShortNamein interfaceBioAssayService
-
findByAccession
- Specified by:
findByAccessionin interfaceBioAssayService- Parameters:
accession- eg GSM12345.- Returns:
- BioAssays that match based on the plain accession (unconstrained by ExternalDatabase).
-
findSubBioAssays
- Specified by:
findSubBioAssaysin interfaceBioAssayService- See Also:
-
findSiblings
- Specified by:
findSiblingsin interfaceBioAssayService
-
getBioAssaySets
Description copied from interface:BioAssayServiceObtain all theBioAssaySetthat contain the givenBioAssay.- Specified by:
getBioAssaySetsin interfaceBioAssayService
-
thaw
- Specified by:
thawin interfaceBioAssayService
-
thaw
- Specified by:
thawin interfaceBioAssayService
-
loadValueObjects
public List<BioAssayValueObject> loadValueObjects(Collection<BioAssay> entities, @Nullable Map<BioAssay, BioAssay> assay2sourceAssayMap, boolean basic, boolean allFactorValues) - Specified by:
loadValueObjectsin interfaceBioAssayService- See Also:
-
loadValueObjectsByCursorForExpressionExperiment
public CursorPage<BioAssayValueObject> loadValueObjectsByCursorForExpressionExperiment(ExpressionExperiment ee, @Nullable Cursor cursor, int limit) Description copied from interface:BioAssayServiceCursor-mode counterpart to the legacy unpaginatedBioAssayDaoEE-scoped sample listing — seeCURSOR_PAGINATION_STEP1_PLAN.mdstep 1k. Always sorts by ascendingid(primary key, indexed and unique); the cursor DAO restricts cursors to single-component id sorts until the index audit lands.- Specified by:
loadValueObjectsByCursorForExpressionExperimentin interfaceBioAssayService- See Also:
-
loadValueObjectsByCursorForSubSet
public CursorPage<BioAssayValueObject> loadValueObjectsByCursorForSubSet(ExpressionExperimentSubSet subset, @Nullable Cursor cursor, int limit) Description copied from interface:BioAssayServiceCursor-mode counterpart to the legacy unpaginated subset-scoped sample listing — seeCURSOR_PAGINATION_STEP1_PLAN.mdstep 1u. Always sorts by ascendingid(primary key, indexed and unique). The service layer is responsible for populating anyassay2sourceAssayMapthe caller wants surfaced on the returnedBioAssayValueObjects after this call returns (the DAO does not build it).- Specified by:
loadValueObjectsByCursorForSubSetin interfaceBioAssayService- See Also:
-