Interface SecurableBaseImmutableService<C extends Securable>
- All Superinterfaces:
BaseImmutableService<C>,BaseReadOnlyService<C>,SecurableBaseReadOnlyService<C>
- All Known Subinterfaces:
ArrayDesignService,CoexpressionAnalysisService,DifferentialExpressionAnalysisService,ExperimentalDesignService,ExpressionExperimentService,FactorValueService,GeneDiffExMetaAnalysisService,ProtocolService,SecurableBaseService<C>
- All Known Implementing Classes:
ArrayDesignServiceImpl,CoexpressionAnalysisServiceImpl,DifferentialExpressionAnalysisServiceImpl,ExperimentalDesignServiceImpl,ExpressionExperimentServiceImpl,FactorValueServiceImpl,GeneDiffExMetaAnalysisServiceImpl,ProtocolServiceImpl
public interface SecurableBaseImmutableService<C extends Securable>
extends BaseImmutableService<C>, SecurableBaseReadOnlyService<C>
-
Method Summary
Modifier and TypeMethodDescriptionCreates the given entity in the persistent storage.create(Collection<C> entities) Creates all the given entities in a persistent storagefindOrCreate(C entity) Does a search for the entity in the persistent storage, and if not found, creates it.voidRemoves the given entity from the persistent storage.voidRemoves the entity with given ID from the persistent storage.voidremove(Collection<C> entities) Removes all the given entities from persistent storage.Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, getElementClass, loadOrFail, loadOrFailMethods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.SecurableBaseReadOnlyService
find, findOrFail, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
-
Method Details
-
findOrCreate
Description copied from interface:BaseImmutableServiceDoes a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreatein interfaceBaseImmutableService<C extends Securable>- Parameters:
entity- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
create
Description copied from interface:BaseImmutableServiceCreates all the given entities in a persistent storage- Specified by:
createin interfaceBaseImmutableService<C extends Securable>- Parameters:
entities- the entities to be created.- Returns:
- collection of objects referencing the persistent instances of given entities.
-
create
Description copied from interface:BaseImmutableServiceCreates the given entity in the persistent storage.- Specified by:
createin interfaceBaseImmutableService<C extends Securable>- Parameters:
entity- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
remove
Removes the entity with given ID from the persistent storage.Only administrator are allowed to remove entity by ID.
- Specified by:
removein interfaceBaseImmutableService<C extends Securable>- Parameters:
id- the ID of entity to be removed.
-
remove
Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<C extends Securable>- Parameters:
entity- the entity to be removed.
-
remove
Description copied from interface:BaseImmutableServiceRemoves all the given entities from persistent storage.- Specified by:
removein interfaceBaseImmutableService<C extends Securable>- Parameters:
entities- the entities to be removed.
-