Interface FactorValueReadService
- All Known Implementing Classes:
FactorValueReadServiceImpl
FactorValue.
Phase 3 of the FactorValueService decomposition (strangler fig). This service
houses the read-side cluster previously implemented directly on the
FactorValueServiceImpl facade: loadWithExperimentalFactor,
loadWithExperimentalFactorOrFail, getExperimentalFactorCategoriesIgnoreAcls,
getExpressionExperimentsIgnoreAcls, loadWithOldStyleCharacteristics,
loadIdsWithNumberOfOldStyleCharacteristics, loadIgnoreAcls,
loadAll(int,int), loadAllIds(), loadAllIds(int,int), and
findByValueStartingWith. All methods delegate to FactorValueDao with no
orchestration of write-side collaborators.
Callers should generally keep using FactorValueService as the facade — the
facade delegates to this service. Direct injection is appropriate where a class would
otherwise create a Spring construction cycle through the heavier facade.
ACL / @Secured annotations live on FactorValueService (the
caller-facing facade interface); enforcement happens at the facade proxy boundary, so
this interface is intentionally unsecured.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfindByValueStartingWith(String valuePrefix, int maxResults) Deprecated.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) Deprecated.do not use, this is only for migrating old-style characteristics to statements and will be removedloadIgnoreAcls(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) Deprecated.do not use, this is only for migrating old-style characteristics to statements and will be removed
-
Method Details
-
loadWithExperimentalFactor
Load aFactorValueby id and eagerly initialize its experimental factor. -
loadWithExperimentalFactorOrFail
@NonNull <T extends Exception> FactorValue loadWithExperimentalFactorOrFail(Long id, Function<String, T> exceptionSupplier) throws TLoad aFactorValuewith an initialized experimental factor, or throw the supplied exception if no such factor value exists.- Throws:
T
-
getExperimentalFactorCategoriesIgnoreAcls
Map<FactorValue, Characteristic> getExperimentalFactorCategoriesIgnoreAcls(Collection<FactorValue> factorValues) Return the experimental factor categories of the given factor values.- See Also:
-
getExpressionExperimentsIgnoreAcls
Map<FactorValue, ExpressionExperiment> getExpressionExperimentsIgnoreAcls(Collection<FactorValue> factorValues) Return theExpressionExperimentthat owns each of the given factor values.For efficiency, only the ID, short name and name of the EEs are populated.
- See Also:
-
loadWithOldStyleCharacteristics
Deprecated.do not use, this is only for migrating old-style characteristics to statements and will be removed- See Also:
-
loadIdsWithNumberOfOldStyleCharacteristics
-
loadIgnoreAcls
LoadFactorValues by IDs, ignoring ACLs. -
loadAll
- See Also:
-
loadAllIds
Collection<Long> loadAllIds()- See Also:
-
loadAllIds
-
findByValueStartingWith
Deprecated.becauseFactorValue.getValue()is deprecated- See Also:
-
FactorValue.getValue()is deprecated