November Happy Hour will be moved to Thursday December 5th.

Class ExcludedCatalogEntryMarketsField

Inheritance
System.Object
ExcludedCatalogEntryMarketsField
Implements
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
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
public class ExcludedCatalogEntryMarketsField : RequiredMetaFieldBase, IRequiredMetaField

Constructors

ExcludedCatalogEntryMarketsField()

Declaration
public ExcludedCatalogEntryMarketsField()

ExcludedCatalogEntryMarketsField(IMarketService)

Declaration
public ExcludedCatalogEntryMarketsField(IMarketService marketService)
Parameters
Type Name Description
IMarketService marketService

Fields

FieldName

Declaration
public const string FieldName = "_ExcludedCatalogEntryMarkets"
Field Value
Type Description
System.String

Properties

UseStandardEditControl

Declaration
public override bool UseStandardEditControl { get; }
Property Value
Type Description
System.Boolean
Overrides

Methods

GetMetaField(MetaDataContext)

Declaration
public override MetaField GetMetaField(MetaDataContext context)
Parameters
Type Name Description
MetaDataContext context
Returns
Type Description
MetaField
Overrides

IsValidForMarket(CatalogEntryDto.CatalogEntryRow, IMarket)

Determines whether or not the current catalog entry is available in a market

Declaration
public bool IsValidForMarket(CatalogEntryDto.CatalogEntryRow row, IMarket market)
Parameters
Type Name Description
CatalogEntryDto.CatalogEntryRow row

The catalog entry row being evaluated.

IMarket market

The market that is being checked for validity for the field.

Returns
Type Description
System.Boolean

true if the catalog entry is available in the passed market, or false if is it unavailable

Remarks

This method does not evaluate whether or not the IMarket is Active. We assume that if an inactive IMarket is passed in then it is a deliberate choice or does not affect the result that should be returned. Currently new entries are available in all markets by default. If this changes (e.g. via customization options) then this method may need to change as well.

UpdateMarketsDictionary(MetaDataContext)

Updates the dictionary associated with the metafield to have all market IDs. This does not delete any market IDs that are no longer active; delete functionality may be more difficult to maintain consistency with entries that may have a reference to the delete items.

Declaration
public void UpdateMarketsDictionary(MetaDataContext context)
Parameters
Type Name Description
MetaDataContext context

The meta data context to access the metadata system with.

Implements