Class ExpressionExperimentSetServiceImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.AbstractService<O>
-
- ubic.gemma.persistence.service.AbstractVoEnabledService<ExpressionExperimentSet,ExpressionExperimentSetValueObject>
-
- ubic.gemma.persistence.service.expression.experiment.ExpressionExperimentSetServiceImpl
-
- All Implemented Interfaces:
BaseImmutableService<ExpressionExperimentSet>,BaseReadOnlyService<ExpressionExperimentSet>,BaseService<ExpressionExperimentSet>,BaseVoEnabledService<ExpressionExperimentSet,ExpressionExperimentSetValueObject>,ExpressionExperimentSetService
@Service public class ExpressionExperimentSetServiceImpl extends AbstractVoEnabledService<ExpressionExperimentSet,ExpressionExperimentSetValueObject> implements ExpressionExperimentSetService
Spring Service base class forubic.gemma.model.analysis.expression.ExpressionExperimentSetService, provides access to all services and entities referenced by this service.- See Also:
ExpressionExperimentSetService
-
-
Field Summary
-
Fields inherited from class ubic.gemma.persistence.service.AbstractService
log
-
-
Constructor Summary
Constructors Constructor Description ExpressionExperimentSetServiceImpl(ExpressionExperimentSetDao expressionExperimentSetDao, ExpressionExperimentService expressionExperimentService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ExpressionExperimentSet>find(BioAssaySet bioAssaySet)Collection<ExpressionExperimentSet>findByName(String name)security at DAO levelCollection<Long>findIds(BioAssaySet bioAssaySet)security at DAO levelCollection<ExpressionExperiment>getExperimentsInSet(Long id)Get the (security-filtered) list of experiments in a set.Collection<ExpressionExperimentDetailsValueObject>getExperimentValueObjectsInSet(Long id)Get the member experiment value objects for the set id; security filtered.ExpressionExperimentSetinitAutomaticallyGeneratedExperimentSet(Collection<ExpressionExperiment> expressionExperiments, Taxon taxon)Instantiate non-persistent experiment set with description = "Automatically generated for ## EEs.".booleanisAutomaticallyGenerated(String experimentSetDescription)Determines if set was automatically generated by matching the description to that used in ubic.gemma.core.analysis.expression .coexpression.ExpressionExperimentSetService.AUTOMATICALLY_GENERATED_EXPERIMENT_GROUP_DESCRIPTIONCollection<ExpressionExperimentSet>loadAllExperimentSetsWithTaxon()Security at DAO level.Collection<ExpressionExperimentSetValueObject>loadAllExperimentSetValueObjects(boolean loadEEIds)Security filtering is handled by the call to load the set entities ubic.gemma.model.analysis.expression.ExpressionExperimentSetService.loadAllExperimentSetsWithTaxon()Collection<ExpressionExperimentSetValueObject>loadMySetValueObjects(boolean loadEEIds)load the user's setsExpressionExperimentSetValueObjectloadValueObjectById(Long id)ExpressionExperimentSetValueObjectloadValueObjectById(Long id, boolean loadEEIds)Get a value object for the id param.List<ExpressionExperimentSetValueObject>loadValueObjectsByIds(Collection<Long> eeSetIds)Load value objects by a given collection of IDs.intremoveFromSets(BioAssaySet bas)Remove an experiment from all sets it is in.ExpressionExperimentSetthaw(ExpressionExperimentSet expressionExperimentSet)voidupdate(Collection<ExpressionExperimentSet> entities)Updates all entities in the given collection in the persistent storage.voidupdate(ExpressionExperimentSet expressionExperimentSet)Updates the given entity in the persistent storage.-
Methods inherited from class ubic.gemma.persistence.service.AbstractVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjects
-
Methods inherited from class ubic.gemma.persistence.service.AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, remove, remove, remove, save, save
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, findOrCreate, remove, remove
-
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, loadOrFail, loadOrFail, loadOrFail, loadOrFail
-
Methods inherited from interface ubic.gemma.persistence.service.BaseService
save, save
-
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjects
-
-
-
-
Constructor Detail
-
ExpressionExperimentSetServiceImpl
@Autowired public ExpressionExperimentSetServiceImpl(ExpressionExperimentSetDao expressionExperimentSetDao, ExpressionExperimentService expressionExperimentService)
-
-
Method Detail
-
find
@Transactional(readOnly=true) public Collection<ExpressionExperimentSet> find(BioAssaySet bioAssaySet)
- Specified by:
findin interfaceExpressionExperimentSetService
-
findByName
@Transactional(readOnly=true) public Collection<ExpressionExperimentSet> findByName(String name)
Description copied from interface:ExpressionExperimentSetServicesecurity at DAO level- Specified by:
findByNamein interfaceExpressionExperimentSetService- Parameters:
name- name- Returns:
- collection of ee sets
-
findIds
@Transactional(readOnly=true) public Collection<Long> findIds(BioAssaySet bioAssaySet)
Description copied from interface:ExpressionExperimentSetServicesecurity at DAO level- Specified by:
findIdsin interfaceExpressionExperimentSetService- Parameters:
bioAssaySet- BA set- Returns:
- collection of IDs
-
getExperimentsInSet
@Transactional(readOnly=true) public Collection<ExpressionExperiment> getExperimentsInSet(Long id)
Description copied from interface:ExpressionExperimentSetServiceGet the (security-filtered) list of experiments in a set.- Specified by:
getExperimentsInSetin interfaceExpressionExperimentSetService- Parameters:
id- id- Returns:
- collection of ees
-
getExperimentValueObjectsInSet
@Transactional(readOnly=true) public Collection<ExpressionExperimentDetailsValueObject> getExperimentValueObjectsInSet(Long id)
Description copied from interface:ExpressionExperimentSetServiceGet the member experiment value objects for the set id; security filtered.- Specified by:
getExperimentValueObjectsInSetin interfaceExpressionExperimentSetService- Parameters:
id- id- Returns:
- value objects or an empty set
-
initAutomaticallyGeneratedExperimentSet
public ExpressionExperimentSet initAutomaticallyGeneratedExperimentSet(Collection<ExpressionExperiment> expressionExperiments, Taxon taxon)
Instantiate non-persistent experiment set with description = "Automatically generated for ## EEs.". Mostly for use in Gene2GenePopulationServiceImpl.intializeNewAnalysis(Collection, Taxon, Collection, String, int). By convention, these sets should not be modifiable.- Specified by:
initAutomaticallyGeneratedExperimentSetin interfaceExpressionExperimentSetService
-
isAutomaticallyGenerated
@Transactional(readOnly=true) public boolean isAutomaticallyGenerated(String experimentSetDescription)
Determines if set was automatically generated by matching the description to that used in ubic.gemma.core.analysis.expression .coexpression.ExpressionExperimentSetService.AUTOMATICALLY_GENERATED_EXPERIMENT_GROUP_DESCRIPTION- Specified by:
isAutomaticallyGeneratedin interfaceExpressionExperimentSetService- Returns:
- true if the set was automatically generated, false otherwise
-
loadAllExperimentSetsWithTaxon
@Transactional(readOnly=true) public Collection<ExpressionExperimentSet> loadAllExperimentSetsWithTaxon()
Description copied from interface:ExpressionExperimentSetServiceSecurity at DAO level.- Specified by:
loadAllExperimentSetsWithTaxonin interfaceExpressionExperimentSetService- Returns:
- ExpressionExperimentSets that have more than 1 experiment in them & have a taxon value.
-
loadAllExperimentSetValueObjects
@Transactional(readOnly=true) public Collection<ExpressionExperimentSetValueObject> loadAllExperimentSetValueObjects(boolean loadEEIds)
Description copied from interface:ExpressionExperimentSetServiceSecurity filtering is handled by the call to load the set entities ubic.gemma.model.analysis.expression.ExpressionExperimentSetService.loadAllExperimentSetsWithTaxon()- Specified by:
loadAllExperimentSetValueObjectsin interfaceExpressionExperimentSetService- Parameters:
loadEEIds- whether the returned value object should have the ExpressionExperimentIds collection populated. This might be a useful information, but loading the IDs takes slightly longer, so for larger amount of EESets this might want to be avoided.- Returns:
- ExpressionExperimentSets that have more than 1 experiment in them & have a taxon value.
-
loadMySetValueObjects
@Transactional(readOnly=true) public Collection<ExpressionExperimentSetValueObject> loadMySetValueObjects(boolean loadEEIds)
Description copied from interface:ExpressionExperimentSetServiceload the user's sets- Specified by:
loadMySetValueObjectsin interfaceExpressionExperimentSetService- Parameters:
loadEEIds- whether the returned value object should have the ExpressionExperimentIds collection populated. This might be a useful information, but loading the IDs takes slightly longer, so for larger amount of EESets this might want to be avoided.- Returns:
- colelction of EE set VOs
-
loadValueObjectById
@Transactional(readOnly=true) public ExpressionExperimentSetValueObject loadValueObjectById(Long id, boolean loadEEIds)
Description copied from interface:ExpressionExperimentSetServiceGet a value object for the id param.- Specified by:
loadValueObjectByIdin interfaceExpressionExperimentSetService- Parameters:
id- IDloadEEIds- whether the returned value object should have the ExpressionExperimentIds collection populated. This might be a useful information, but loading the IDs takes slightly longer, so for larger amount of EESets this might want to be avoided.- Returns:
- null if id doesn't match an experiment set
-
loadValueObjectById
@Transactional(readOnly=true) public ExpressionExperimentSetValueObject loadValueObjectById(Long id)
- Specified by:
loadValueObjectByIdin interfaceBaseVoEnabledService<ExpressionExperimentSet,ExpressionExperimentSetValueObject>- Specified by:
loadValueObjectByIdin interfaceExpressionExperimentSetService- Overrides:
loadValueObjectByIdin classAbstractVoEnabledService<ExpressionExperimentSet,ExpressionExperimentSetValueObject>- See Also:
BaseVoEnabledDao.loadValueObjectById(Long)
-
loadValueObjectsByIds
@Transactional(readOnly=true) public List<ExpressionExperimentSetValueObject> loadValueObjectsByIds(Collection<Long> eeSetIds)
Description copied from interface:BaseVoEnabledServiceLoad value objects by a given collection of IDs.- Specified by:
loadValueObjectsByIdsin interfaceBaseVoEnabledService<ExpressionExperimentSet,ExpressionExperimentSetValueObject>- Specified by:
loadValueObjectsByIdsin interfaceExpressionExperimentSetService- Overrides:
loadValueObjectsByIdsin classAbstractVoEnabledService<ExpressionExperimentSet,ExpressionExperimentSetValueObject>
-
thaw
@Transactional(readOnly=true) public ExpressionExperimentSet thaw(ExpressionExperimentSet expressionExperimentSet)
- Specified by:
thawin interfaceExpressionExperimentSetService
-
update
@Transactional public void update(ExpressionExperimentSet expressionExperimentSet)
Description copied from interface:BaseServiceUpdates the given entity in the persistent storage.- Specified by:
updatein interfaceBaseService<ExpressionExperimentSet>- Specified by:
updatein interfaceExpressionExperimentSetService- Overrides:
updatein classAbstractService<ExpressionExperimentSet>- Parameters:
expressionExperimentSet- the entity to be updated.- See Also:
ExpressionExperimentSetService.update(ExpressionExperimentSet)
-
update
@Transactional public void update(Collection<ExpressionExperimentSet> entities)
Description copied from interface:BaseServiceUpdates all entities in the given collection in the persistent storage.- Specified by:
updatein interfaceBaseService<ExpressionExperimentSet>- Overrides:
updatein classAbstractService<ExpressionExperimentSet>- Parameters:
entities- the entities to be updated.
-
removeFromSets
@Transactional public int removeFromSets(BioAssaySet bas)
Description copied from interface:ExpressionExperimentSetServiceRemove an experiment from all sets it is in.Using this allows one to bypass the requirement of "owning edit rights" on the set as long as the current user has the right to edit the experiment itself.
If a set ends-up empty as a result, it is removed as well.
- Specified by:
removeFromSetsin interfaceExpressionExperimentSetService- Returns:
- the number of sets this experiment was removed from
-
-