Class FactorValueReadServiceImpl
java.lang.Object
ubic.gemma.persistence.service.expression.experiment.FactorValueReadServiceImpl
- All Implemented Interfaces:
FactorValueReadService
@Service("factorValueReadService")
public class FactorValueReadServiceImpl
extends Object
implements FactorValueReadService
Implementation of
FactorValueReadService.
All public methods are @Transactional(readOnly = true). ACL enforcement is the
responsibility of the facade FactorValueService interface — this class is
unsecured at the AOP boundary on purpose, so intra-gemma-core callers can
bypass duplicate ACL checks once authenticated.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByValueStartingWith(String valuePrefix, int maxResults) getExperimentalFactorCategoriesIgnoreAcls(Collection<FactorValue> factorValues) Return the experimental factor categories of the given factor values.getExpressionExperimentsIgnoreAcls(Collection<FactorValue> factorValues) Return theExpressionExperimentthat owns each of the given factor values.loadAll(int offset, int limit) loadAllIds(int offset, int limit) loadIdsWithNumberOfOldStyleCharacteristics(Set<Long> excludedIds) loadIgnoreAcls(Set<Long> ids) LoadFactorValues by IDs, ignoring ACLs.Load aFactorValueby id and eagerly initialize its experimental factor.<T extends Exception>
FactorValueloadWithExperimentalFactorOrFail(Long id, Function<String, T> exceptionSupplier) Load aFactorValuewith an initialized experimental factor, or throw the supplied exception if no such factor value exists.loadWithOldStyleCharacteristics(Long id, boolean readOnly)
-
Constructor Details
-
FactorValueReadServiceImpl
-
-
Method Details
-
loadWithExperimentalFactor
Description copied from interface:FactorValueReadServiceLoad aFactorValueby id and eagerly initialize its experimental factor.- Specified by:
loadWithExperimentalFactorin interfaceFactorValueReadService
-
loadWithExperimentalFactorOrFail
@Transactional(readOnly=true) public <T extends Exception> FactorValue loadWithExperimentalFactorOrFail(Long id, Function<String, T> exceptionSupplier) throws TDescription copied from interface:FactorValueReadServiceLoad aFactorValuewith an initialized experimental factor, or throw the supplied exception if no such factor value exists.- Specified by:
loadWithExperimentalFactorOrFailin interfaceFactorValueReadService- Throws:
T
-
getExperimentalFactorCategoriesIgnoreAcls
@Transactional(readOnly=true) public Map<FactorValue, Characteristic> getExperimentalFactorCategoriesIgnoreAcls(Collection<FactorValue> factorValues) Description copied from interface:FactorValueReadServiceReturn the experimental factor categories of the given factor values.- Specified by:
getExperimentalFactorCategoriesIgnoreAclsin interfaceFactorValueReadService- See Also:
-
getExpressionExperimentsIgnoreAcls
@Transactional(readOnly=true) public Map<FactorValue, ExpressionExperiment> getExpressionExperimentsIgnoreAcls(Collection<FactorValue> factorValues) Description copied from interface:FactorValueReadServiceReturn theExpressionExperimentthat owns each of the given factor values.For efficiency, only the ID, short name and name of the EEs are populated.
- Specified by:
getExpressionExperimentsIgnoreAclsin interfaceFactorValueReadService- See Also:
-
loadWithOldStyleCharacteristics
@Transactional(readOnly=true) public FactorValue loadWithOldStyleCharacteristics(Long id, boolean readOnly) - Specified by:
loadWithOldStyleCharacteristicsin interfaceFactorValueReadService- See Also:
-
loadIdsWithNumberOfOldStyleCharacteristics
@Transactional(readOnly=true) public Map<Long,Integer> loadIdsWithNumberOfOldStyleCharacteristics(Set<Long> excludedIds) - Specified by:
loadIdsWithNumberOfOldStyleCharacteristicsin interfaceFactorValueReadService- See Also:
-
loadIgnoreAcls
Description copied from interface:FactorValueReadServiceLoadFactorValues by IDs, ignoring ACLs.- Specified by:
loadIgnoreAclsin interfaceFactorValueReadService
-
loadAll
- Specified by:
loadAllin interfaceFactorValueReadService- See Also:
-
loadAllIds
- Specified by:
loadAllIdsin interfaceFactorValueReadService- See Also:
-
loadAllIds
- Specified by:
loadAllIdsin interfaceFactorValueReadService- See Also:
-
findByValueStartingWith
@Transactional(readOnly=true) public Collection<FactorValue> findByValueStartingWith(String valuePrefix, int maxResults) - Specified by:
findByValueStartingWithin interfaceFactorValueReadService- See Also:
-