Interface ProtocolService
- 
- All Superinterfaces:
- BaseImmutableService<Protocol>,- BaseReadOnlyService<Protocol>
 - All Known Implementing Classes:
- ProtocolServiceImpl
 
 public interface ProtocolService extends BaseImmutableService<Protocol> - Author:
- kelsey
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Protocolfind(Protocol protocol)Does a search for the entity in the persistent storageProtocolfindOrCreate(Protocol protocol)Does a search for the entity in the persistent storage, and if not found, creates it.ProtocolfindOrFail(Protocol protocol)Does a search for the entity in the persistent storage, raising aNullPointerExceptionif not found.Collection<Protocol>loadAll()Loads all the entities of specific type.voidremove(Long id)Removes the entity with given ID from the persistent storage.voidremove(Protocol protocol)Removes the given entity from the persistent storage.- 
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableServicecreate, create, remove
 - 
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyServicecountAll, 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:BaseReadOnlyServiceDoes a search for the entity in the persistent storage- Specified by:
- findin interface- BaseReadOnlyService<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:BaseReadOnlyServiceDoes a search for the entity in the persistent storage, raising aNullPointerExceptionif not found.- Specified by:
- findOrFailin interface- BaseReadOnlyService<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:BaseImmutableServiceDoes a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
- findOrCreatein interface- BaseImmutableService<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:BaseReadOnlyServiceLoads all the entities of specific type.- Specified by:
- loadAllin interface- BaseReadOnlyService<Protocol>
- Returns:
- collection of all entities currently available in the persistent storage.
 
 - 
remove@Secured("GROUP_ADMIN") void remove(Long id)Description copied from interface:BaseImmutableServiceRemoves the entity with given ID from the persistent storage.- Specified by:
- removein interface- BaseImmutableService<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:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
- removein interface- BaseImmutableService<Protocol>
- Parameters:
- protocol- the entity to be removed.
 
 
- 
 
-