Interface ExperimentalFactorService
- All Superinterfaces:
BaseImmutableService<ExperimentalFactor>
,BaseReadOnlyService<ExperimentalFactor>
,BaseService<ExperimentalFactor>
,BaseVoEnabledService<ExperimentalFactor,
ExperimentalFactorValueObject>
- All Known Implementing Classes:
ExperimentalFactorServiceImpl
public interface ExperimentalFactorService
extends BaseService<ExperimentalFactor>, BaseVoEnabledService<ExperimentalFactor,ExperimentalFactorValueObject>
- Author:
- paul
-
Method Summary
Modifier and TypeMethodDescriptionfind
(ExperimentalFactor experimentalFactor) Does a search for the entity in the persistent storagefindOrCreate
(ExperimentalFactor experimentalFactor) Does a search for the entity in the persistent storage, and if not found, creates it.Loads object with given ID.load
(Collection<Long> ids) Loads objects with given ids.loadAll()
Loads all the entities of specific type.void
Removes the entity with given ID from the persistent storage.void
remove
(Collection<ExperimentalFactor> entities) Removes all the given entities from persistent storage.void
remove
(ExperimentalFactor experimentalFactor) Delete the factor, its associated factor values and all differential expression analyses in which it is used.void
update
(Collection<ExperimentalFactor> entities) Updates all entities in the given collection in the persistent storage.void
update
(ExperimentalFactor experimentalFactor) Updates the given entity in the persistent storage.Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, create
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, findOrFail, getElementClass, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
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
-
Method Details
-
remove
Delete the factor, its associated factor values and all differential expression analyses in which it is used.- Specified by:
remove
in interfaceBaseImmutableService<ExperimentalFactor>
- Parameters:
experimentalFactor
- the factor to be deleted
-
remove
@Secured({"GROUP_USER","ACL_SECURABLE_COLLECTION_EDIT"}) void remove(Collection<ExperimentalFactor> entities) Description copied from interface:BaseImmutableService
Removes all the given entities from persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<ExperimentalFactor>
- Parameters:
entities
- the entities to be removed.
-
remove
Description copied from interface:BaseImmutableService
Removes the entity with given ID from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<ExperimentalFactor>
- Parameters:
id
- the ID of entity to be removed.
-
find
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"}) ExperimentalFactor find(ExperimentalFactor experimentalFactor) Description copied from interface:BaseReadOnlyService
Does a search for the entity in the persistent storage- Specified by:
find
in interfaceBaseReadOnlyService<ExperimentalFactor>
- Parameters:
experimentalFactor
- the entity to be searched for- Returns:
- the version of entity retrieved from the persistent storage, if found, otherwise null.
-
findOrCreate
@Secured({"GROUP_USER","AFTER_ACL_READ"}) ExperimentalFactor findOrCreate(ExperimentalFactor experimentalFactor) Description copied from interface:BaseImmutableService
Does a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreate
in interfaceBaseImmutableService<ExperimentalFactor>
- Parameters:
experimentalFactor
- 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_COLLECTION_READ"}) Collection<ExperimentalFactor> load(Collection<Long> ids) Description copied from interface:BaseReadOnlyService
Loads objects with given ids.- Specified by:
load
in interfaceBaseReadOnlyService<ExperimentalFactor>
- Parameters:
ids
- the ids of objects to be loaded.- Returns:
- collection containing object with given IDs.
-
load
Description copied from interface:BaseReadOnlyService
Loads object with given ID.- Specified by:
load
in interfaceBaseReadOnlyService<ExperimentalFactor>
- 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
-
loadAll
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"}) Collection<ExperimentalFactor> loadAll()Description copied from interface:BaseReadOnlyService
Loads all the entities of specific type.- Specified by:
loadAll
in interfaceBaseReadOnlyService<ExperimentalFactor>
- Returns:
- collection of all entities currently available in the persistent storage.
-
update
Description copied from interface:BaseService
Updates the given entity in the persistent storage.- Specified by:
update
in interfaceBaseService<ExperimentalFactor>
- Parameters:
experimentalFactor
- the entity to be updated.
-
update
@Secured({"GROUP_USER","ACL_SECURABLE_COLLECTION_EDIT"}) void update(Collection<ExperimentalFactor> entities) Description copied from interface:BaseService
Updates all entities in the given collection in the persistent storage.- Specified by:
update
in interfaceBaseService<ExperimentalFactor>
- Parameters:
entities
- the entities to be updated.
-
thaw
-