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: 10.8.0
Syntax
public static class CatalogManager

Methods

DeleteCatalog(IWarehouseInventoryService, Int32)

Deletes a catalog and everything it contains, except for things that are also associated with another catalog.

Declaration
[Obsolete("Use DeleteCatalog(catalogId) instead. Will remain at least until October 2017.")]
public static void DeleteCatalog(IWarehouseInventoryService inventoryService, int catalogId)
Parameters
Type Name Description
IWarehouseInventoryService inventoryService

The currently configured inventory service.

System.Int32 catalogId

The catalog id.

DeleteCatalog(IInventoryService, Int32)

Deletes a catalog and everything it contains, except for things that are also associated with another catalog.

Declaration
[Obsolete("Use DeleteCatalog(catalogId). Will remain at least until Feb 2018.")]
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, CatalogResponseGroup)

Gets the catalog dto, checks permissions and caches results.

Declaration
[Obsolete("Site functionality no longer supported. Will remain at least until November 2016.")]
public static CatalogDto GetCatalogDto(Guid siteGuid, CatalogResponseGroup responseGroup)
Parameters
Type Name Description
System.Guid siteGuid

The site GUID.

CatalogResponseGroup responseGroup

The response group.

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

GetCatalogs(Guid, CatalogResponseGroup)

Returns the collection of catalogs with data populated that is specified in the responseGroup parameter. The data is cached according to the configuration.

Declaration
[Obsolete("Site functionality no longer supported. Will remain at least until November 2016.")]
public static SiteCatalogs GetCatalogs(Guid siteGuid, CatalogResponseGroup responseGroup)
Parameters
Type Name Description
System.Guid siteGuid

The site GUID.

CatalogResponseGroup responseGroup

The response group.

Returns
Type Description
SiteCatalogs

SaveCatalog(CatalogDto)

Saves the catalog.

Declaration
public static void SaveCatalog(CatalogDto dataset)
Parameters
Type Name Description
CatalogDto dataset

The dto.