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> SecurableBaseImmutableService<FactorValue>,SecurableBaseReadOnlyService<FactorValue>,SecurableBaseService<FactorValue>,SecurableBaseVoEnabledService<FactorValue,,FactorValueValueObject> SecurableFilteringVoEnabledService<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(FactorValueDao factorValueDao, StatementDao statementDao) -
Method Summary
Modifier and TypeMethodDescriptioncreateStatement(FactorValue factorValue, Statement statement) Create a given statement and add it to the given factor value.findByValueStartingWith(String valuePrefix, int maxResults) Deprecated.getExperimentalFactorCategoriesIgnoreAcls(Collection<FactorValue> factorValues) Obtain the categories of the given factor values.getExpressionExperimentsIgnoreAcls(Collection<FactorValue> factorValues) For efficiency, only the ID, short name and name of the EEs are populated.loadAll(int offset, int limit) Load a slice ofFactorValues.Load all factor value IDs.loadAllIds(int offset, int limit) Load a slice of the factor values IDs.loadIdsWithNumberOfOldStyleCharacteristics(Set<Long> excludedIds) Deprecated.loadIgnoreAcls(Set<Long> ids) LoadFactorValues by IDs, ignoring ACLs.<T extends Exception>
FactorValueloadWithExperimentalFactorOrFail(Long id, Function<String, T> exceptionSupplier) Load aFactorValuewith an initialized experimental factor or fail.loadWithOldStyleCharacteristics(Long id, boolean readOnly) Deprecated.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.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, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery, load, load, loadAllValueObjects, loadIds, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjects, loadValueObjects, loadValueObjectsByIdsMethods inherited from class ubic.gemma.persistence.service.AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, remove, save, save, streamAll, streamAll, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, getElementClass, loadOrFail, loadOrFailMethods inherited from interface ubic.gemma.persistence.service.FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubqueryMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableBaseImmutableService
create, create, findOrCreate, removeMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableBaseReadOnlyService
find, findOrFail, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableBaseService
save, save, update, updateMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableBaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableFilteringVoEnabledService
load, load, loadIds, loadValueObjects, loadValueObjects
-
Constructor Details
-
FactorValueServiceImpl
-
-
Method Details
-
loadWithExperimentalFactor
- Specified by:
loadWithExperimentalFactorin interfaceFactorValueService
-
loadWithExperimentalFactorOrFail
@Nonnull @Transactional(readOnly=true) public <T extends Exception> FactorValue loadWithExperimentalFactorOrFail(Long id, Function<String, T> exceptionSupplier) throws TDescription copied from interface:FactorValueServiceLoad aFactorValuewith an initialized experimental factor or fail.- Specified by:
loadWithExperimentalFactorOrFailin interfaceFactorValueService- Throws:
T
-
getExperimentalFactorCategoriesIgnoreAcls
@Transactional(readOnly=true) public Map<FactorValue,Characteristic> getExperimentalFactorCategoriesIgnoreAcls(Collection<FactorValue> factorValues) Description copied from interface:FactorValueServiceObtain the categories of the given factor values.This can be used as a lightweight alternative to loading the full experimental factor.
- Specified by:
getExperimentalFactorCategoriesIgnoreAclsin interfaceFactorValueService
-
getExpressionExperimentsIgnoreAcls
@Transactional(readOnly=true) public Map<FactorValue,ExpressionExperiment> getExpressionExperimentsIgnoreAcls(Collection<FactorValue> factorValues) Description copied from interface:FactorValueServiceFor efficiency, only the ID, short name and name of the EEs are populated.- Specified by:
getExpressionExperimentsIgnoreAclsin 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:
-
loadIgnoreAcls
Description copied from interface:FactorValueServiceLoadFactorValues by IDs, ignoring ACLs.- Specified by:
loadIgnoreAclsin interfaceFactorValueService
-
loadAll
Description copied from interface:FactorValueServiceLoad a slice ofFactorValues.Results are filtered by ACL on the owning
ExpressionExperiment.- Specified by:
loadAllin interfaceFactorValueService- See Also:
-
loadAllIds
Description copied from interface:FactorValueServiceLoad all factor value IDs.Results are filtered by ACL on the owning
ExpressionExperiment.- Specified by:
loadAllIdsin interfaceFactorValueService- See Also:
-
loadAllIds
Description copied from interface:FactorValueServiceLoad a slice of the factor values IDs.Results are filtered by ACL on the owning
ExpressionExperiment.- Specified by:
loadAllIdsin interfaceFactorValueService- See Also:
-
findByValueStartingWith
@Deprecated @Transactional(readOnly=true) public Collection<FactorValue> findByValueStartingWith(String valuePrefix, int maxResults) Deprecated.Description copied from interface:FactorValueServiceFind factor values by their value using a prefix match.Results are filtered by ACL on the owning
ExpressionExperiment.- Specified by:
findByValueStartingWithin interfaceFactorValueService- See Also:
-
createStatement
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
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
Description copied from interface:FactorValueServiceSave a statement ignoring ACLs.This requires the
GROUP_ADMINauthority.- Specified by:
saveStatementIgnoreAclin interfaceFactorValueService
-
removeStatement
Description copied from interface:FactorValueServiceRemove a statement from a factor value.- Specified by:
removeStatementin interfaceFactorValueService
-
remove
Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<FactorValue>- Specified by:
removein interfaceSecurableBaseImmutableService<FactorValue>- Overrides:
removein classAbstractService<FactorValue>- Parameters:
entity- the entity to be removed.
-
remove
Description copied from interface:BaseImmutableServiceRemoves all the given entities from persistent storage.- Specified by:
removein interfaceBaseImmutableService<FactorValue>- Specified by:
removein interfaceSecurableBaseImmutableService<FactorValue>- Overrides:
removein classAbstractService<FactorValue>- Parameters:
entities- the entities to be removed.
-