Interface ProtocolService
-
- All Superinterfaces:
BaseImmutableService<Protocol>
,BaseReadOnlyService<Protocol>
- All Known Implementing Classes:
ProtocolServiceImpl
public interface ProtocolService extends BaseImmutableService<Protocol>
- Author:
- kelsey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Protocol
find(Protocol protocol)
Does a search for the entity in the persistent storageProtocol
findOrCreate(Protocol protocol)
Does a search for the entity in the persistent storage, and if not found, creates it.Protocol
findOrFail(Protocol protocol)
Does a search for the entity in the persistent storage, raising aNullPointerException
if not found.Collection<Protocol>
loadAll()
Loads all the entities of specific type.void
remove(Long id)
Removes the entity with given ID from the persistent storage.void
remove(Protocol protocol)
Removes the given entity from the persistent storage.-
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, create, remove
-
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, getElementClass, load, load, loadOrFail, loadOrFail, loadOrFail, loadOrFail
-
-
-
-
Method Detail
-
find
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"}) Protocol find(Protocol protocol)
Description copied from interface:BaseReadOnlyService
Does a search for the entity in the persistent storage- Specified by:
find
in interfaceBaseReadOnlyService<Protocol>
- Parameters:
protocol
- the entity to be searched for- Returns:
- the version of entity retrieved from the persistent storage, if found, otherwise null.
-
findOrFail
@Nonnull @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ"}) Protocol findOrFail(Protocol protocol)
Description copied from interface:BaseReadOnlyService
Does a search for the entity in the persistent storage, raising aNullPointerException
if not found.- Specified by:
findOrFail
in interfaceBaseReadOnlyService<Protocol>
- Parameters:
protocol
- the entity to be searched for- Returns:
- the version of entity retrieved from persistent storage
-
findOrCreate
@Secured({"GROUP_USER","AFTER_ACL_READ"}) Protocol findOrCreate(Protocol protocol)
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<Protocol>
- Parameters:
protocol
- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
loadAll
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"}) Collection<Protocol> loadAll()
Description copied from interface:BaseReadOnlyService
Loads all the entities of specific type.- Specified by:
loadAll
in interfaceBaseReadOnlyService<Protocol>
- Returns:
- collection of all entities currently available in the persistent storage.
-
remove
@Secured("GROUP_ADMIN") void remove(Long id)
Description copied from interface:BaseImmutableService
Removes the entity with given ID from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<Protocol>
- Parameters:
id
- the ID of entity to be removed.
-
remove
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void remove(Protocol protocol)
Description copied from interface:BaseImmutableService
Removes the given entity from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<Protocol>
- Parameters:
protocol
- the entity to be removed.
-
-