Service class to execute CRUD operations on the Contact object.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| ContactService | getInstance() |
| ContactService | getInstance(String version) |
| void | ContactService() |
| void | get() |
| List<Contact> | get(SearchRequest sr) |
| void | create(Contact con) |
Method Detail
This class supports the following methods:
global static ContactService getInstance()
Get Instance of ContactService.
global static ContactService getInstance(String version)
Get Instance of ContactService.
Parameters
| Name | Type | Description |
|---|---|---|
| version | String | undefined |
global ContactService()
ContactService Constructor that should not be called directly.
global static void get()
global virtual List<Contact> get(SearchRequest sr)
Get list of Contact objects using the SearchRequest object as criteria
Parameters
| Name | Type | Description |
|---|---|---|
| sr | SearchRequest | SearchRequest |
global virtual Contact create(Contact con)
Parameters
| Name | Type | Description |
|---|---|---|
| con | Contact | undefined |