Service class to execute CRUD operations on the Catalog object.

Method Summary

Modifier and Type Method and Description
CatalogService getInstance()
CatalogService getInstance(String version)
void getApiResponse()
List<Catalog> get(SearchRequest sr)
void getCatalogs(Id storeId,Id contactId)
void getCatalogItems(Set catalogIds,Id contactId)
void getCatalog(Id catalogId, Id contactId)

Method Detail

This class supports the following methods:

global static CatalogService getInstance()

Get Instance of CatalogService.


global static CatalogService getInstance(String version)

Get Instance of CatalogVersionedService.
Parameters

Name Type Description
version String undefined

global CatalogService ()

CatalogService Constructor that should not be called directly.


global static void getApiResponse()

global virtual List<Catalog> get(SearchRequest sr)

Get list of Catalog objects using the SearchRequest object as criteria
Parameters

Name Type Description
sr SearchRequest SearchRequest

global List<Catalog> getCatalogs(Id storeId,Id contactId)

Parameters

Name Type Description
storeId Id undefined
contactId Id undefined

global List<Item> getCatalogItems(Set<Id> catalogIds,Id contactId)

Parameters

Name Type Description
catalogIds Set<Id> undefined
contactId Id undefined

global Catalog getCatalog(Id catalogId, Id contactId)

Parameters

Name Type Description
catalogId Id undefined
contactId Id undefined