Interface BioAssayService
- All Superinterfaces:
BaseImmutableService<BioAssay>, BaseReadOnlyService<BioAssay>, BaseService<BioAssay>, BaseVoEnabledService<BioAssay, BioAssayValueObject>, FilteringService<BioAssay>, FilteringVoEnabledService<BioAssay, BioAssayValueObject>, SecurableBaseImmutableService<BioAssay>, SecurableBaseReadOnlyService<BioAssay>, SecurableBaseService<BioAssay>, SecurableBaseVoEnabledService<BioAssay, BioAssayValueObject>, SecurableFilteringVoEnabledService<BioAssay, BioAssayValueObject>
- All Known Implementing Classes:
BioAssayServiceImpl
@Service
public interface BioAssayService
extends SecurableBaseService<BioAssay>, SecurableFilteringVoEnabledService<BioAssay, BioAssayValueObject>
- Author:
- kelsey
-
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 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
-
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") @PostFilter("hasPermission(filterObject, 'READ') or hasPermission(filterObject, 'ADMINISTRATION')") 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") @PostFilter("hasPermission(filterObject, 'READ') or hasPermission(filterObject, 'ADMINISTRATION')") Collection<BioAssay> findSubBioAssays(BioAssay bioAssay, boolean direct) - See Also:
-
findSiblings
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") @PostFilter("hasPermission(filterObject, 'READ') or hasPermission(filterObject, 'ADMINISTRATION')") Collection<BioAssay> findSiblings(BioAssay bioAssay) -
getBioAssaySets
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") @PostFilter("hasPermission(filterObject, 'READ') or hasPermission(filterObject, 'ADMINISTRATION')") Collection<BioAssaySet> getBioAssaySets(BioAssay bioAssay) Obtain all theBioAssaySetthat 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
-
thaw
@CheckReturnValue @Secured("IS_AUTHENTICATED_ANONYMOUSLY") @PostFilter("hasPermission(filterObject, 'READ') or hasPermission(filterObject, 'ADMINISTRATION')") Collection<BioAssay> thaw(Collection<BioAssay> bioAssays) -
loadValueObjects
List<BioAssayValueObject> loadValueObjects(Collection<BioAssay> entities, @Nullable Map<BioAssay, BioAssay> assay2sourceAssayMap, boolean basic, boolean allFactorValues) - See Also:
-
loadValueObjectsByCursorForExpressionExperiment
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) CursorPage<BioAssayValueObject> loadValueObjectsByCursorForExpressionExperiment(ExpressionExperiment ee, @Nullable Cursor cursor, int limit) Cursor-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.- See Also:
-
loadValueObjectsByCursorForSubSet
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"}) CursorPage<BioAssayValueObject> loadValueObjectsByCursorForSubSet(ExpressionExperimentSubSet subset, @Nullable Cursor cursor, int limit) Cursor-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).- See Also:
-