Class BlacklistedEntityServiceImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractService<BlacklistedEntity>
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 -
Method Summary
Modifier and TypeMethodDescriptionblacklistExpressionExperiment
(ExpressionExperiment dataset, String reason) Blacklist a given dataset.blacklistPlatform
(ArrayDesign platform, String reason) Blacklist a given platform.findByAccession
(String accession) boolean
isBlacklisted
(String accession) boolean
isBlacklisted
(ArrayDesign platform) boolean
isBlacklisted
(ExpressionExperiment dataset) int
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, streamAll, streamAll, 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, streamAll, streamAll
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Constructor Details
-
BlacklistedEntityServiceImpl
-
-
Method Details
-
isBlacklisted
- Specified by:
isBlacklisted
in interfaceBlacklistedEntityService
- See Also:
-
isBlacklisted
- Specified by:
isBlacklisted
in interfaceBlacklistedEntityService
- See Also:
-
isBlacklisted
- Specified by:
isBlacklisted
in interfaceBlacklistedEntityService
- See Also:
-
findByAccession
- Specified by:
findByAccession
in interfaceBlacklistedEntityService
- See Also:
-
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
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
-