Interface ContactService
-
- All Superinterfaces:
BaseImmutableService<Contact>,BaseReadOnlyService<Contact>,BaseService<Contact>
- All Known Implementing Classes:
ContactServiceImpl
public interface ContactService extends BaseService<Contact>
- Author:
- kelsey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Contactfind(Contact contact)Does a search for the entity in the persistent storageContactfindOrCreate(Contact contact)Does a search for the entity in the persistent storage, and if not found, creates it.voidremove(Contact contact)Removes the given entity from the persistent storage.voidupdate(Contact contact)Updates the given entity in the persistent storage.-
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, create, remove, remove
-
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail
-
Methods inherited from interface ubic.gemma.persistence.service.BaseService
save, save, update
-
-
-
-
Method Detail
-
find
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_READ_QUIET"}) Contact find(Contact contact)Description copied from interface:BaseReadOnlyServiceDoes a search for the entity in the persistent storage- Specified by:
findin interfaceBaseReadOnlyService<Contact>- Parameters:
contact- the entity to be searched for- Returns:
- the version of entity retrieved from the persistent storage, if found, otherwise null.
-
findOrCreate
@Secured("GROUP_USER") Contact findOrCreate(Contact contact)Description copied from interface:BaseImmutableServiceDoes a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreatein interfaceBaseImmutableService<Contact>- Parameters:
contact- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
remove
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void remove(Contact contact)Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<Contact>- Parameters:
contact- the entity to be removed.
-
update
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void update(Contact contact)Description copied from interface:BaseServiceUpdates the given entity in the persistent storage.- Specified by:
updatein interfaceBaseService<Contact>- Parameters:
contact- the entity to be updated.
-
-