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 Contact
find(Contact contact)
Does a search for the entity in the persistent storageContact
findOrCreate(Contact contact)
Does a search for the entity in the persistent storage, and if not found, creates it.void
remove(Contact contact)
Removes the given entity from the persistent storage.void
update(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:BaseReadOnlyService
Does a search for the entity in the persistent storage- Specified by:
find
in 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:BaseImmutableService
Does a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreate
in 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:BaseImmutableService
Removes the given entity from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<Contact>
- Parameters:
contact
- the entity to be removed.
-
update
@Secured({"GROUP_USER","ACL_SECURABLE_EDIT"}) void update(Contact contact)
Description copied from interface:BaseService
Updates the given entity in the persistent storage.- Specified by:
update
in interfaceBaseService<Contact>
- Parameters:
contact
- the entity to be updated.
-
-