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
System.Object
CatalogManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Catalog.Managers
Assembly: Mediachase.Commerce.dll
Version: 13.30.0Syntax
public static class CatalogManager
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(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 |
SaveCatalog(CatalogDto)
Saves the catalog.
Declaration
public static void SaveCatalog(CatalogDto dataset)
Parameters
| Type | Name | Description |
|---|---|---|
| CatalogDto | dataset | The dto. |