Interface FactorValueService
- All Superinterfaces:
BaseImmutableService<FactorValue>,BaseReadOnlyService<FactorValue>,BaseService<FactorValue>,BaseVoEnabledService<FactorValue,,FactorValueValueObject> FilteringService<FactorValue>,FilteringVoEnabledService<FactorValue,,FactorValueValueObject> SecurableBaseImmutableService<FactorValue>,SecurableBaseReadOnlyService<FactorValue>,SecurableBaseService<FactorValue>,SecurableBaseVoEnabledService<FactorValue,,FactorValueValueObject> SecurableFilteringVoEnabledService<FactorValue,FactorValueValueObject>
- All Known Implementing Classes:
FactorValueServiceImpl
public interface FactorValueService
extends SecurableBaseService<FactorValue>, SecurableFilteringVoEnabledService<FactorValue,FactorValueValueObject>
- Author:
- kelsey
-
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.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.<T extends Exception>
FactorValueloadWithExperimentalFactorOrFail(Long id, Function<String, T> exceptionSupplier) Load aFactorValuewith an initialized experimental factor or fail.loadWithOldStyleCharacteristics(Long id, boolean readOnly) Deprecated.do not use this, it is only meant for the purpose of migrating old-style characteristics to statementsvoidremoveStatement(FactorValue fv, Statement c) Remove a statement from a factor value.saveStatement(FactorValue fv, Statement statement) Create a given statement as percreateStatement(FactorValue, Statement)if it is transient, otherwise update an existing statement.saveStatementIgnoreAcl(FactorValue fv, Statement statement) Deprecated.do not use this, it is meant for FactorValue migration onlyMethods 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, remove, remove, 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
-
Method Details
-
loadIgnoreAcls
LoadFactorValues by IDs, ignoring ACLs. -
loadAll
Load a slice ofFactorValues.Results are filtered by ACL on the owning
ExpressionExperiment.- See Also:
-
loadAllIds
Load all factor value IDs.Results are filtered by ACL on the owning
ExpressionExperiment.- See Also:
-
loadAllIds
Load a slice of the factor values IDs.Results are filtered by ACL on the owning
ExpressionExperiment.- See Also:
-
findByValueStartingWith
@Deprecated @Secured("IS_AUTHENTICATED_ANONYMOUSLY") Collection<FactorValue> findByValueStartingWith(String valuePrefix, int maxResults) Deprecated.becauseFactorValue.getValue()is deprecatedFind factor values by their value using a prefix match.Results are filtered by ACL on the owning
ExpressionExperiment.- See Also:
-
loadWithExperimentalFactor
@Nullable @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"}) FactorValue loadWithExperimentalFactor(Long id) -
loadWithExperimentalFactorOrFail
@Nonnull @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"}) <T extends Exception> FactorValue loadWithExperimentalFactorOrFail(Long id, Function<String, T> exceptionSupplier) throws TLoad aFactorValuewith an initialized experimental factor or fail.- Throws:
T
-
getExperimentalFactorCategoriesIgnoreAcls
Map<FactorValue,Characteristic> getExperimentalFactorCategoriesIgnoreAcls(Collection<FactorValue> factorValues) Obtain the categories of the given factor values.This can be used as a lightweight alternative to loading the full experimental factor.
-
getExpressionExperimentsIgnoreAcls
Map<FactorValue,ExpressionExperiment> getExpressionExperimentsIgnoreAcls(Collection<FactorValue> factorValues) For efficiency, only the ID, short name and name of the EEs are populated. -
loadWithOldStyleCharacteristics
@Nullable @Deprecated @Secured("GROUP_ADMIN") FactorValue loadWithOldStyleCharacteristics(Long id, boolean readOnly) Deprecated.do not use this, it is only meant for the purpose of migrating old-style characteristics to statementsLoad aFactorValuealong with its old-style characteristics. -
loadIdsWithNumberOfOldStyleCharacteristics
@Deprecated @Secured("GROUP_ADMIN") Map<Long,Integer> loadIdsWithNumberOfOldStyleCharacteristics(Set<Long> excludedIds) Deprecated.do not use, this is only for migrating old-style characteristics to statements and will be removed- See Also:
-
createStatement
@CheckReturnValue @Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) Statement createStatement(FactorValue factorValue, Statement statement) Create a given statement and add it to the given factor value.- 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
- Throws:
IllegalArgumentException- if the statement already exists
-
saveStatement
@CheckReturnValue @Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) Statement saveStatement(FactorValue fv, Statement statement) Create a given statement as percreateStatement(FactorValue, Statement)if it is transient, otherwise update an existing statement. -
saveStatementIgnoreAcl
@Deprecated @CheckReturnValue @Secured("GROUP_ADMIN") Statement saveStatementIgnoreAcl(FactorValue fv, Statement statement) Deprecated.do not use this, it is meant for FactorValue migration onlySave a statement ignoring ACLs.This requires the
GROUP_ADMINauthority. -
removeStatement
Remove a statement from a factor value.
-
FactorValue.getValue()is deprecated