- All Superinterfaces:
BaseReadOnlyService<C>
- All Known Subinterfaces:
ArrayDesignService
, CoexpressionAnalysisService
, DifferentialExpressionAnalysisService
, ExpressionExperimentService
, GeneDiffExMetaAnalysisService
, ProtocolService
, SecurableBaseImmutableService<C>
, SecurableBaseService<C>
, SecurableBaseVoEnabledService<C,VO>
, SecurableFilteringVoEnabledService<C,VO>
- All Known Implementing Classes:
ArrayDesignServiceImpl
, CoexpressionAnalysisServiceImpl
, DifferentialExpressionAnalysisServiceImpl
, ExpressionExperimentServiceImpl
, GeneDiffExMetaAnalysisServiceImpl
, ProtocolServiceImpl
-
Method Summary
Does a search for the entity in the persistent storage
Does a search for the entity in the persistent storage, raising a
NullPointerException
if not found.
Loads object with given ID.
Loads objects with given ids.
Loads all the entities of specific type.
Load an entity or fail with the supplied exception; the message is generated automatically.
Load an entity or fail with the supplied exception and message.
Load an entity or fail with the supplied exception.
-
Method Details
-
find
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ_QUIET"})
C find(C entity)
Does a search for the entity in the persistent storage
- Specified by:
find
in interface BaseReadOnlyService<C extends Securable>
- Parameters:
entity
- the entity to be searched for
- Returns:
- the version of entity retrieved from the persistent storage, if found, otherwise null.
-
-
load
Loads objects with given ids.
- Specified by:
load
in interface BaseReadOnlyService<C extends Securable>
- Parameters:
ids
- the ids of objects to be loaded.
- Returns:
- collection containing object with given IDs.
-
load
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ_QUIET"})
C load(Long id)
Loads object with given ID.
- Specified by:
load
in interface BaseReadOnlyService<C extends Securable>
- 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
-
-
loadOrFail
@Nonnull
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"})
<T extends Exception> C loadOrFail(Long id,
Supplier<T> exceptionSupplier)
throws T
Load an entity or fail with the supplied exception.
- Specified by:
loadOrFail
in interface BaseReadOnlyService<C extends Securable>
- Throws:
T
- if the entity does not exist in the persistent storage
-
loadOrFail
Load an entity or fail with the supplied exception; the message is generated automatically.
- Specified by:
loadOrFail
in interface BaseReadOnlyService<C extends Securable>
- Throws:
T
- if the entity does not exist in the persistent storage
-
loadOrFail
Load an entity or fail with the supplied exception and message.
- Specified by:
loadOrFail
in interface BaseReadOnlyService<C extends Securable>
- Throws:
T
- if the entity does not exist in the persistent storage
-
loadAll
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"})
Collection<C> loadAll()
Loads all the entities of specific type.
- Specified by:
loadAll
in interface BaseReadOnlyService<C extends Securable>
- Returns:
- collection of all entities currently available in the persistent storage.
-
-