Service class to execute CRUD operations on the Item object.
Method Summary
Modifier and Type | Method and Description |
---|---|
ItemService | getInstance() |
ItemService | getInstance(String version) |
void | getApiResponse() |
List<Item> | get(SearchRequest sr) |
void | getItem(Id itemId, Id contactId) |
void | getItem(Id itemId, Id contactId, Boolean getPackageItems) |
void | getItems(Set |
void | getItems(Set |
Method Detail
This class supports the following methods:
global static ItemService getInstance()
Get Instance of ItemService.
global static ItemService getInstance(String version)
Get Instance of ItemVersionedService.
Parameters
Name | Type | Description |
---|---|---|
version | String | undefined |
global ItemService ()
ItemService Constructor that should not be called directly.
global static void getApiResponse()
global virtual List<Item> get(SearchRequest sr)
Get list of Item objects using the SearchRequest object as criteria
Parameters
Name | Type | Description |
---|---|---|
sr | SearchRequest | SearchRequest |
global virtual Item getItem(Id itemId, Id contactId)
Parameters
Name | Type | Description |
---|---|---|
itemId | Id | undefined |
contactId | Id | undefined |
global virtual Item getItem(Id itemId, Id contactId, Boolean getPackageItems)
Parameters
Name | Type | Description |
---|---|---|
itemId | Id | undefined |
contactId | Id | undefined |
getPackageItems | Boolean | undefined |
global virtual Item[] getItems(Set<Id> itemIds, Id contactId)
Parameters
Name | Type | Description |
---|---|---|
itemIds | Set<Id> | undefined |
contactId | Id | undefined |
global virtual Item[] getItems(Set<Id> itemIds, Id contactId, Boolean getPriceRules, Boolean getSubscriptionPlans, Boolean getPackageItems)
Parameters
Name | Type | Description |
---|---|---|
itemIds | Set<Id> | undefined |
contactId | Id | undefined |
getPriceRules | Boolean | undefined |
getSubscriptionPlans | Boolean | undefined |
getPackageItems | Boolean | undefined |