Class CatalogManager
Catalog manager is a proxy between methods that call data layer functions and the facade layer. The methods here check if the appropriate security is set and cache the data.
Inheritance
Namespace: Mediachase.Commerce.Catalog.Managers
Assembly: Mediachase.Commerce.dll
Version: 14.26.0Syntax
public static class CatalogManager : Object
Methods
DeleteCatalog(IInventoryService, Int32)
Deletes a catalog and everything it contains, except for things that are also associated with another catalog.
Declaration
public static void DeleteCatalog(IInventoryService inventoryService, int catalogId)
Parameters
Type | Name | Description |
---|---|---|
IInventoryService | inventoryService | The currently configured inventory service. |
System.Int32 | catalogId | The catalog id. |
DeleteCatalog(Int32)
Deletes a catalog and everything it contains, except for things that are also associated with another catalog.
Declaration
public static void DeleteCatalog(int catalogId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | catalogId | The catalog id. |
GetCatalogDto(Guid)
Gets the catalog dto by site.
Declaration
public static CatalogDto GetCatalogDto(Guid siteId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | siteId |
Returns
Type | Description |
---|---|
CatalogDto |
GetCatalogDto(Int32, CatalogResponseGroup)
Gets the catalog dto, checks permissions and caches results.
Declaration
public static CatalogDto GetCatalogDto(int catalogId, CatalogResponseGroup responseGroup)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | catalogId | The catalog id. |
CatalogResponseGroup | responseGroup | The response group. |
Returns
Type | Description |
---|---|
CatalogDto |
GetSites(Int32)
Declaration
public static IList<string> GetSites(int catalogId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | catalogId |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<System.String> |
SaveCatalog(CatalogDto)
Saves the catalog.
Declaration
public static void SaveCatalog(CatalogDto dataset)
Parameters
Type | Name | Description |
---|---|---|
CatalogDto | dataset | The dto. |
SaveSites(Int32, IList<String>)
Declaration
public static void SaveSites(int catalogId, IList<string> siteIds)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | catalogId | |
System.Collections.Generic.IList<System.String> | siteIds |