Class FactorValueServiceImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractService<FactorValue>
ubic.gemma.persistence.service.AbstractFilteringVoEnabledService<FactorValue,FactorValueValueObject>
ubic.gemma.persistence.service.expression.experiment.FactorValueServiceImpl
- All Implemented Interfaces:
BaseImmutableService<FactorValue>
,BaseReadOnlyService<FactorValue>
,BaseService<FactorValue>
,BaseVoEnabledService<FactorValue,
,FactorValueValueObject> FactorValueService
,FilteringService<FactorValue>
,FilteringVoEnabledService<FactorValue,
FactorValueValueObject>
@Service
public class FactorValueServiceImpl
extends AbstractFilteringVoEnabledService<FactorValue,FactorValueValueObject>
implements FactorValueService
Spring Service base class for FactorValueService
, provides access
to all services and entities referenced by this service.
- Author:
- pavlidis, keshav
- See Also:
-
Field Summary
Fields inherited from class ubic.gemma.persistence.service.AbstractService
log
-
Constructor Summary
ConstructorsConstructorDescriptionFactorValueServiceImpl
(ExpressionExperimentService expressionExperimentService, AuditTrailService auditTrailService, AuditEventService auditEventService, FactorValueDao factorValueDao, StatementDao statementDao) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearNeedsAttentionFlag
(FactorValue factorValue, String note) Clear a needs attention flag on a given factor value.createStatement
(FactorValue factorValue, Statement statement) Create a given statement and add it to the given factor value.findByValue
(String valuePrefix, int maxResults) Deprecated.loadIdsWithNumberOfOldStyleCharacteristics
(Set<Long> excludedIds) Deprecated.Load aFactorValue
with an initialized experimental factor or fail.loadWithOldStyleCharacteristics
(Long id, boolean readOnly) Deprecated.void
markAsNeedsAttention
(FactorValue factorValue, String note) Mark a given factor value as needs attention.void
remove
(Collection<FactorValue> entities) Removes all the given entities from persistent storage.void
remove
(FactorValue entity) Removes the given entity from the persistent storage.void
removeStatement
(FactorValue fv, Statement statement) Remove a statement from a factor value.saveStatement
(FactorValue fv, Statement statement) Create a given statement as perFactorValueService.createStatement(FactorValue, Statement)
if it is transient, otherwise update an existing statement.saveStatementIgnoreAcl
(FactorValue fv, Statement statement) Save a statement ignoring ACLs.Methods inherited from class ubic.gemma.persistence.service.AbstractFilteringVoEnabledService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getIdentifierPropertyName, getSort, load, load, loadAllValueObjects, loadIds, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjects, 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, 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, remove
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
Methods inherited from interface ubic.gemma.persistence.service.BaseService
save, save
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
Methods inherited from interface ubic.gemma.persistence.service.expression.experiment.FactorValueService
findOrCreate, load, update, update
Methods inherited from interface ubic.gemma.persistence.service.FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getIdentifierPropertyName, getSort, load, load, loadIds
Methods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledService
loadValueObjects, loadValueObjects
-
Constructor Details
-
FactorValueServiceImpl
@Autowired public FactorValueServiceImpl(ExpressionExperimentService expressionExperimentService, AuditTrailService auditTrailService, AuditEventService auditEventService, FactorValueDao factorValueDao, StatementDao statementDao)
-
-
Method Details
-
loadWithExperimentalFactor
- Specified by:
loadWithExperimentalFactor
in interfaceFactorValueService
-
loadWithExperimentalFactorOrFail
Description copied from interface:FactorValueService
Load aFactorValue
with an initialized experimental factor or fail.- Specified by:
loadWithExperimentalFactorOrFail
in interfaceFactorValueService
-
loadWithOldStyleCharacteristics
@Deprecated @Transactional(readOnly=true) public FactorValue loadWithOldStyleCharacteristics(Long id, boolean readOnly) Deprecated.Description copied from interface:FactorValueService
Load aFactorValue
along with its old-style characteristics.- Specified by:
loadWithOldStyleCharacteristics
in interfaceFactorValueService
-
loadIdsWithNumberOfOldStyleCharacteristics
@Deprecated @Transactional(readOnly=true) public Map<Long,Integer> loadIdsWithNumberOfOldStyleCharacteristics(Set<Long> excludedIds) Deprecated.- Specified by:
loadIdsWithNumberOfOldStyleCharacteristics
in interfaceFactorValueService
- See Also:
-
findByValue
@Deprecated @Transactional(readOnly=true) public Collection<FactorValue> findByValue(String valuePrefix, int maxResults) Deprecated.- Specified by:
findByValue
in interfaceFactorValueService
-
createStatement
Description copied from interface:FactorValueService
Create a given statement and add it to the given factor value.- Specified by:
createStatement
in interfaceFactorValueService
- Parameters:
factorValue
- the factor value to add the statement tostatement
- the statement to be created and added to the factor value- Returns:
- the created statement
-
saveStatement
Description copied from interface:FactorValueService
Create a given statement as perFactorValueService.createStatement(FactorValue, Statement)
if it is transient, otherwise update an existing statement.- Specified by:
saveStatement
in interfaceFactorValueService
-
saveStatementIgnoreAcl
Description copied from interface:FactorValueService
Save a statement ignoring ACLs.This requires the
GROUP_ADMIN
authority.- Specified by:
saveStatementIgnoreAcl
in interfaceFactorValueService
-
removeStatement
Description copied from interface:FactorValueService
Remove a statement from a factor value.- Specified by:
removeStatement
in interfaceFactorValueService
-
remove
Description copied from interface:BaseImmutableService
Removes the given entity from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<FactorValue>
- Specified by:
remove
in interfaceFactorValueService
- Overrides:
remove
in classAbstractService<FactorValue>
- Parameters:
entity
- the entity to be removed.
-
remove
Description copied from interface:BaseImmutableService
Removes all the given entities from persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<FactorValue>
- Overrides:
remove
in classAbstractService<FactorValue>
- Parameters:
entities
- the entities to be removed.
-
markAsNeedsAttention
Description copied from interface:FactorValueService
Mark a given factor value as needs attention.- Specified by:
markAsNeedsAttention
in interfaceFactorValueService
- Parameters:
factorValue
- a factor value to mark as needs attentionnote
- note to use for theFactorValueNeedsAttentionEvent
-
clearNeedsAttentionFlag
Description copied from interface:FactorValueService
Clear a needs attention flag on a given factor value.- Specified by:
clearNeedsAttentionFlag
in interfaceFactorValueService
- Parameters:
factorValue
- a factor value whose needs flag will be clearednote
- a note to use for theDoesNotNeedAttentionEvent
if the dataset does not need attention for any other reason.
-