Interface FactorValueService
-
- All Superinterfaces:
BaseImmutableService<FactorValue>,BaseReadOnlyService<FactorValue>,BaseService<FactorValue>,BaseVoEnabledService<FactorValue,FactorValueValueObject>,FilteringService<FactorValue>,FilteringVoEnabledService<FactorValue,FactorValueValueObject>
- All Known Implementing Classes:
FactorValueServiceImpl
public interface FactorValueService extends BaseService<FactorValue>, FilteringVoEnabledService<FactorValue,FactorValueValueObject>
- Author:
- kelsey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidclearNeedsAttentionFlag(FactorValue factorValue, String note)Clear a needs attention flag on a given factor value.StatementcreateStatement(FactorValue factorValue, Statement statement)Create a given statement and add it to the given factor value.Collection<FactorValue>findByValue(String valuePrefix)Deprecated.FactorValuefindOrCreate(FactorValue factorValue)Does a search for the entity in the persistent storage, and if not found, creates it.FactorValueload(Long id)Loads object with given ID.Map<Long,Integer>loadIdsWithNumberOfOldStyleCharacteristics(Set<Long> excludedIds)Deprecated.do not use, this is only for migrating old-style characteristics to statements and will be removedFactorValueloadWithExperimentalFactor(Long id)FactorValueloadWithExperimentalFactorOrFail(Long id)Load aFactorValuewith an initialized experimental factor or fail.FactorValueloadWithOldStyleCharacteristics(Long id, boolean readOnly)Deprecated.do not use this, it is only meant for the purpose of migrating old-style characteristics to statementsvoidmarkAsNeedsAttention(FactorValue factorValue, String note)Mark a given factor value as needs attention.voidremove(FactorValue factorValue)Removes the given entity from the persistent storage.voidremoveStatement(FactorValue fv, Statement c)Remove a statement from a factor value.StatementsaveStatement(FactorValue fv, Statement statement)Create a given statement as percreateStatement(FactorValue, Statement)if it is transient, otherwise update an existing statement.StatementsaveStatementIgnoreAcl(FactorValue fv, Statement statement)Deprecated.do not use this, it is meant for FactorValue migration onlyvoidupdate(Collection<FactorValue> factorValues)Updates all entities in the given collection in the persistent storage.voidupdate(FactorValue factorValue)Updates the given entity in the persistent storage.-
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, create, remove, remove
-
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail
-
Methods inherited from interface ubic.gemma.persistence.service.BaseService
save, save
-
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Methods inherited from interface ubic.gemma.persistence.service.FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getIdentifierPropertyName, getSort, load, load, loadIds
-
Methods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledService
loadValueObjects, loadValueObjects
-
-
-
-
Method Detail
-
findByValue
@Deprecated @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"}) Collection<FactorValue> findByValue(String valuePrefix)
Deprecated.
-
findOrCreate
@Secured({"GROUP_USER","AFTER_ACL_READ"}) FactorValue findOrCreate(FactorValue factorValue)Description copied from interface:BaseImmutableServiceDoes a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreatein interfaceBaseImmutableService<FactorValue>- Parameters:
factorValue- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
load
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"}) FactorValue load(Long id)Description copied from interface:BaseReadOnlyServiceLoads object with given ID.- Specified by:
loadin interfaceBaseReadOnlyService<FactorValue>- Parameters:
id- the ID of entity to be loaded.- Returns:
- the entity with matching ID, or null if the entity does not exist or if the passed ID was null
-
loadWithExperimentalFactor
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"}) FactorValue loadWithExperimentalFactor(Long id)
-
loadWithExperimentalFactorOrFail
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"}) FactorValue loadWithExperimentalFactorOrFail(Long id)Load aFactorValuewith an initialized experimental factor or fail.
-
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
-
remove
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void remove(FactorValue factorValue)Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<FactorValue>- Parameters:
factorValue- the entity to be removed.
-
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
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void removeStatement(FactorValue fv, Statement c)Remove a statement from a factor value.
-
update
@Secured({"GROUP_USER","ACL_SECURABLE_COLLECTION_EDIT"}) void update(Collection<FactorValue> factorValues)Description copied from interface:BaseServiceUpdates all entities in the given collection in the persistent storage.- Specified by:
updatein interfaceBaseService<FactorValue>- Parameters:
factorValues- the entities to be updated.
-
update
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void update(FactorValue factorValue)Description copied from interface:BaseServiceUpdates the given entity in the persistent storage.- Specified by:
updatein interfaceBaseService<FactorValue>- Parameters:
factorValue- the entity to be updated.
-
markAsNeedsAttention
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void markAsNeedsAttention(FactorValue factorValue, String note)Mark a given factor value as needs attention.- Parameters:
factorValue- a factor value to mark as needs attentionnote- note to use for theFactorValueNeedsAttentionEvent- Throws:
IllegalArgumentException- if the factor value already needs attention
-
clearNeedsAttentionFlag
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void clearNeedsAttentionFlag(FactorValue factorValue, String note)Clear a needs attention flag on a given factor value.- Parameters:
factorValue- a factor value whose needs flag will be clearednote- a note to use for theDoesNotNeedAttentionEventif the dataset does not need attention for any other reason.- Throws:
IllegalArgumentException- if the factor value does not need attention
-
-