Class BlacklistedEntityServiceImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.AbstractService<O>
-
- ubic.gemma.persistence.service.AbstractVoEnabledService<BlacklistedEntity,BlacklistedValueObject>
-
- ubic.gemma.persistence.service.blacklist.BlacklistedEntityServiceImpl
-
- All Implemented Interfaces:
BaseImmutableService<BlacklistedEntity>
,BaseReadOnlyService<BlacklistedEntity>
,BaseService<BlacklistedEntity>
,BaseVoEnabledService<BlacklistedEntity,BlacklistedValueObject>
,BlacklistedEntityService
@Service public class BlacklistedEntityServiceImpl extends AbstractVoEnabledService<BlacklistedEntity,BlacklistedValueObject> implements BlacklistedEntityService
-
-
Field Summary
-
Fields inherited from class ubic.gemma.persistence.service.AbstractService
log
-
-
Constructor Summary
Constructors Constructor Description BlacklistedEntityServiceImpl(BlacklistedEntityDao voDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlacklistedExperiment
blacklistExpressionExperiment(ExpressionExperiment dataset, String reason)
Blacklist a given dataset.BlacklistedPlatform
blacklistPlatform(ArrayDesign platform, String reason)
Blacklist a given platform.BlacklistedEntity
findByAccession(String accession)
boolean
isBlacklisted(String accession)
boolean
isBlacklisted(ArrayDesign platform)
boolean
isBlacklisted(ExpressionExperiment dataset)
int
removeAll()
Remove all blacklisted platforms and experiments.-
Methods inherited from class ubic.gemma.persistence.service.AbstractVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
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, update, update
-
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, create, findOrCreate, remove, remove, remove
-
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail
-
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
-
-
-
Constructor Detail
-
BlacklistedEntityServiceImpl
@Autowired public BlacklistedEntityServiceImpl(BlacklistedEntityDao voDao)
-
-
Method Detail
-
isBlacklisted
@Transactional(readOnly=true) public boolean isBlacklisted(String accession)
- Specified by:
isBlacklisted
in interfaceBlacklistedEntityService
- See Also:
BlacklistedEntityDao.isBlacklisted(String)
-
isBlacklisted
@Transactional(readOnly=true) public boolean isBlacklisted(ArrayDesign platform)
- Specified by:
isBlacklisted
in interfaceBlacklistedEntityService
- See Also:
BlacklistedEntityDao.isBlacklisted(ArrayDesign)
-
isBlacklisted
@Transactional(readOnly=true) public boolean isBlacklisted(ExpressionExperiment dataset)
- Specified by:
isBlacklisted
in interfaceBlacklistedEntityService
- See Also:
BlacklistedEntityDao.isBlacklisted(ExpressionExperiment)
-
findByAccession
@Transactional(readOnly=true) public BlacklistedEntity findByAccession(String accession)
- Specified by:
findByAccession
in interfaceBlacklistedEntityService
- See Also:
BlacklistedEntityDao.findByAccession(String)
-
blacklistExpressionExperiment
@Transactional public BlacklistedExperiment blacklistExpressionExperiment(ExpressionExperiment dataset, String reason)
Description copied from interface:BlacklistedEntityService
Blacklist a given dataset.- Specified by:
blacklistExpressionExperiment
in interfaceBlacklistedEntityService
- Parameters:
dataset
- the dataset to blacklistreason
- a reason, which must be non-empty
-
blacklistPlatform
@Transactional public BlacklistedPlatform blacklistPlatform(ArrayDesign platform, String reason)
Description copied from interface:BlacklistedEntityService
Blacklist a given platform.If the platform has associated datasets, those are blacklisted as well as per
BlacklistedEntityService.blacklistExpressionExperiment(ExpressionExperiment, String)
. The reason will be adjusted to reflect the cascading through the platform.- Specified by:
blacklistPlatform
in interfaceBlacklistedEntityService
- Parameters:
platform
- the platform to blacklistreason
- a reason, which must be non-empty
-
removeAll
@Transactional public int removeAll()
Description copied from interface:BlacklistedEntityService
Remove all blacklisted platforms and experiments.- Specified by:
removeAll
in interfaceBlacklistedEntityService
-
-