Class FactorValueServiceImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.AbstractService<O>
-
- 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:
FactorValueService
-
-
Field Summary
-
Fields inherited from class ubic.gemma.persistence.service.AbstractService
log
-
-
Constructor Summary
Constructors Constructor Description FactorValueServiceImpl(ExpressionExperimentService expressionExperimentService, AuditTrailService auditTrailService, AuditEventService auditEventService, FactorValueDao factorValueDao, StatementDao statementDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclearNeedsAttentionFlag(FactorValue factorValue, String note)Clear a needs attention flag on a given factor value.StatementcreateStatement(FactorValue factorValue, Statement statement)Create a given statement and add it to the given factor value.Collection<FactorValue>findByValue(String valuePrefix)Deprecated.Map<Long,Integer>loadIdsWithNumberOfOldStyleCharacteristics(Set<Long> excludedIds)Deprecated.FactorValueloadWithExperimentalFactor(Long id)FactorValueloadWithExperimentalFactorOrFail(Long id)Load aFactorValuewith an initialized experimental factor or fail.FactorValueloadWithOldStyleCharacteristics(Long id, boolean readOnly)Deprecated.voidmarkAsNeedsAttention(FactorValue factorValue, String note)Mark a given factor value as needs attention.voidremove(Collection<FactorValue> entities)Removes all the given entities from persistent storage.voidremove(FactorValue entity)Removes the given entity from the persistent storage.voidremoveStatement(FactorValue fv, Statement statement)Remove a statement from a factor value.StatementsaveStatement(FactorValue fv, Statement statement)Create a given statement as perFactorValueService.createStatement(FactorValue, Statement)if it is transient, otherwise update an existing statement.StatementsaveStatementIgnoreAcl(FactorValue fv, Statement statement)Save a statement ignoring ACLs.-
Methods inherited from class ubic.gemma.persistence.service.AbstractFilteringVoEnabledService
count, 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, 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
-
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, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getIdentifierPropertyName, getSort, load, load, loadIds
-
Methods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledService
loadValueObjects, loadValueObjects
-
-
-
-
Constructor Detail
-
FactorValueServiceImpl
@Autowired public FactorValueServiceImpl(ExpressionExperimentService expressionExperimentService, AuditTrailService auditTrailService, AuditEventService auditEventService, FactorValueDao factorValueDao, StatementDao statementDao)
-
-
Method Detail
-
loadWithExperimentalFactor
@Transactional(readOnly=true) public FactorValue loadWithExperimentalFactor(Long id)
- Specified by:
loadWithExperimentalFactorin interfaceFactorValueService
-
loadWithExperimentalFactorOrFail
@Transactional(readOnly=true) public FactorValue loadWithExperimentalFactorOrFail(Long id)
Description copied from interface:FactorValueServiceLoad aFactorValuewith an initialized experimental factor or fail.- Specified by:
loadWithExperimentalFactorOrFailin interfaceFactorValueService
-
loadWithOldStyleCharacteristics
@Deprecated @Transactional(readOnly=true) public FactorValue loadWithOldStyleCharacteristics(Long id, boolean readOnly)
Deprecated.Description copied from interface:FactorValueServiceLoad aFactorValuealong with its old-style characteristics.- Specified by:
loadWithOldStyleCharacteristicsin interfaceFactorValueService
-
loadIdsWithNumberOfOldStyleCharacteristics
@Deprecated @Transactional(readOnly=true) public Map<Long,Integer> loadIdsWithNumberOfOldStyleCharacteristics(Set<Long> excludedIds)
Deprecated.- Specified by:
loadIdsWithNumberOfOldStyleCharacteristicsin interfaceFactorValueService- See Also:
FactorValueDao.loadIdsWithNumberOfOldStyleCharacteristics(Set)
-
findByValue
@Deprecated @Transactional(readOnly=true) public Collection<FactorValue> findByValue(String valuePrefix)
Deprecated.- Specified by:
findByValuein interfaceFactorValueService
-
createStatement
@Transactional public Statement createStatement(FactorValue factorValue, Statement statement)
Description copied from interface:FactorValueServiceCreate a given statement and add it to the given factor value.- Specified by:
createStatementin 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
@Transactional public Statement saveStatement(FactorValue fv, Statement statement)
Description copied from interface:FactorValueServiceCreate a given statement as perFactorValueService.createStatement(FactorValue, Statement)if it is transient, otherwise update an existing statement.- Specified by:
saveStatementin interfaceFactorValueService
-
saveStatementIgnoreAcl
@Transactional public Statement saveStatementIgnoreAcl(FactorValue fv, Statement statement)
Description copied from interface:FactorValueServiceSave a statement ignoring ACLs.This requires the
GROUP_ADMINauthority.- Specified by:
saveStatementIgnoreAclin interfaceFactorValueService
-
removeStatement
@Transactional public void removeStatement(FactorValue fv, Statement statement)
Description copied from interface:FactorValueServiceRemove a statement from a factor value.- Specified by:
removeStatementin interfaceFactorValueService
-
remove
@Transactional public void remove(FactorValue entity)
Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<FactorValue>- Specified by:
removein interfaceFactorValueService- Overrides:
removein classAbstractService<FactorValue>- Parameters:
entity- the entity to be removed.
-
remove
@Transactional public void remove(Collection<FactorValue> entities)
Description copied from interface:BaseImmutableServiceRemoves all the given entities from persistent storage.- Specified by:
removein interfaceBaseImmutableService<FactorValue>- Overrides:
removein classAbstractService<FactorValue>- Parameters:
entities- the entities to be removed.
-
markAsNeedsAttention
@Transactional public void markAsNeedsAttention(FactorValue factorValue, String note)
Description copied from interface:FactorValueServiceMark a given factor value as needs attention.- Specified by:
markAsNeedsAttentionin interfaceFactorValueService- Parameters:
factorValue- a factor value to mark as needs attentionnote- note to use for theFactorValueNeedsAttentionEvent
-
clearNeedsAttentionFlag
@Transactional public void clearNeedsAttentionFlag(FactorValue factorValue, String note)
Description copied from interface:FactorValueServiceClear a needs attention flag on a given factor value.- Specified by:
clearNeedsAttentionFlagin interfaceFactorValueService- Parameters:
factorValue- a factor value whose needs flag will be clearednote- a note to use for theDoesNotNeedAttentionEventif the dataset does not need attention for any other reason.
-
-