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 AbstractService
log -
Constructor Summary
ConstructorsConstructorDescriptionFactorValueServiceImpl(FactorValueDao factorValueDao, StatementDao statementDao, FactorValueReadService factorValueReadService) -
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) voidremove(FactorValue entity) 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 AbstractFilteringVoEnabledService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery, load, load, loadAllValueObjects, loadIds, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjects, loadValueObjects, loadValueObjectsByCursor, loadValueObjectsByIdsMethods inherited from class AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, save, save, streamAll, streamAll, update, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseReadOnlyService
countAll, getElementClass, loadOrFail, loadOrFailMethods inherited from interface FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubqueryMethods inherited from interface FilteringVoEnabledService
loadValueObjectsByCursorMethods inherited from interface SecurableBaseImmutableService
create, create, findOrCreateMethods inherited from interface SecurableBaseReadOnlyService
find, findOrFail, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface SecurableBaseService
save, save, update, updateMethods inherited from interface SecurableBaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from interface SecurableFilteringVoEnabledService
load, load, loadIds, loadValueObjects, loadValueObjects
-
Constructor Details
-
FactorValueServiceImpl
@Autowired public FactorValueServiceImpl(FactorValueDao factorValueDao, StatementDao statementDao, FactorValueReadService factorValueReadService)
-
-
Method Details
-
loadWithExperimentalFactor
- Specified by:
loadWithExperimentalFactorin interfaceFactorValueService
-
loadWithExperimentalFactorOrFail
@NonNull 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
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
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.Description copied from interface:FactorValueServiceLoad aFactorValuealong with its old-style characteristics.- Specified by:
loadWithOldStyleCharacteristicsin interfaceFactorValueService
-
loadIdsWithNumberOfOldStyleCharacteristics
@Deprecated 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 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
- Specified by:
removein interfaceBaseImmutableService<FactorValue>- Specified by:
removein interfaceSecurableBaseImmutableService<FactorValue>- Overrides:
removein classAbstractService<FactorValue>- See Also:
-
remove
- Specified by:
removein interfaceBaseImmutableService<FactorValue>- Specified by:
removein interfaceSecurableBaseImmutableService<FactorValue>- Overrides:
removein classAbstractService<FactorValue>- See Also:
-