Class EntryAssetsHelper

Inheritance
System.Object
EntryAssetsHelper
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.Assets.Import
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public static class EntryAssetsHelper

Methods

AssociateAssetsWithCatalogNode(CatalogNodeDto, IEnumerable<AssetMapping>)

Associates the assets with catalog node.

Declaration
public static void AssociateAssetsWithCatalogNode(CatalogNodeDto catalogNodeDto, IEnumerable<AssetMapping> assets)
Parameters
Type Name Description
CatalogNodeDto catalogNodeDto

The catalog node dto.

System.Collections.Generic.IEnumerable<AssetMapping> assets

The assets.

AssociateAssetsWithEntries(CatalogEntryDto, Dictionary<String, List<AssetMapping>>)

Associates the assets with entries from a dictionary of EntryCode-List AssetMapping

Declaration
public static void AssociateAssetsWithEntries(CatalogEntryDto entryDto, Dictionary<string, List<AssetMapping>> mappings)
Parameters
Type Name Description
CatalogEntryDto entryDto

Container CatalogEntryDto which can contain multiple sub catalog entries

System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<AssetMapping>> mappings

Dictionary of EntryCode-List AssetMapping

AssociateAssetsWithEntry(CatalogEntryDto, IEnumerable<AssetMapping>)

Associates the assets with entry.

Declaration
[Obsolete("Obsolete, use AssociateAssetsWithEntries instead. Will remain at least until Jan 2017.")]
public static void AssociateAssetsWithEntry(CatalogEntryDto entryDto, IEnumerable<AssetMapping> assets)
Parameters
Type Name Description
CatalogEntryDto entryDto

The entry dto.

System.Collections.Generic.IEnumerable<AssetMapping> assets

The assets.

AssociateAssetsWithProduct(CatalogEntryDto, IEnumerable<AssetMapping>)

Associates the assets with product.

Declaration
[Obsolete("Obsolete, use AssociateAssetsWithCatalogEntry instead. Will remain at least until November 2016.")]
public static void AssociateAssetsWithProduct(CatalogEntryDto entryDto, IEnumerable<AssetMapping> assets)
Parameters
Type Name Description
CatalogEntryDto entryDto

The entry dto.

System.Collections.Generic.IEnumerable<AssetMapping> assets

The assets.

GetAssetType(String)

Gets the type of the asset.

Declaration
public static string GetAssetType(string assetName)
Parameters
Type Name Description
System.String assetName

Name of the asset.

Returns
Type Description
System.String