Class CatalogContentLanguageSettingsHandler

Extends the default language settings handler with logic for catalog content. The logic is as follows:

  • No replacement languages
  • No fallback languages
  • All languages that are enabled for a catalog are active, the others are not.
Inheritance
System.Object
CatalogContentLanguageSettingsHandler
Implements
EPiServer.Core.IContentLanguageSettingsHandler
Namespace: EPiServer.Commerce.Catalog
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
[Obsolete("Use EPiServer.Commerce.Catalog.CatalogLanguageSettingsHandler instead. Will remain at least until May 2016.")]
public class CatalogContentLanguageSettingsHandler : CatalogLanguageSettingsHandler, IContentLanguageSettingsHandler

Constructors

CatalogContentLanguageSettingsHandler(IContentEvents, ILanguageBranchRepository, IContentProviderManager, ReferenceConverter, ContentLanguageSettingRepository, Func<IContentLoader>)

Creates an instance of CatalogContentLanguageSettingsHandler.

Declaration
public CatalogContentLanguageSettingsHandler(IContentEvents contentEvents, ILanguageBranchRepository languageBranchRepository, IContentProviderManager contentProviderManager, ReferenceConverter referenceConverter, ContentLanguageSettingRepository contentLanguageSettingsRepository, Func<IContentLoader> contentLoaderAccessor)
Parameters
Type Name Description
EPiServer.Core.IContentEvents contentEvents

The content events

EPiServer.DataAbstraction.ILanguageBranchRepository languageBranchRepository

The language branch repository

EPiServer.Core.IContentProviderManager contentProviderManager

The content provider manager

ReferenceConverter referenceConverter

The reference converter

EPiServer.DataAbstraction.ContentLanguageSettingRepository contentLanguageSettingsRepository

The content language settings repository.

System.Func<EPiServer.IContentLoader> contentLoaderAccessor

The accessor to use when calling IContentLoader.

CatalogContentLanguageSettingsHandler(IContentRepository, IContentEvents, ILanguageBranchRepository, IContentProviderManager, ReferenceConverter)

Creates an instance of CatalogContentLanguageSettingsHandler.

Declaration
[Obsolete("Update your dependencies. This constructor will be removed in Commerce 10.")]
public CatalogContentLanguageSettingsHandler(IContentRepository contentRepository, IContentEvents contentEvents, ILanguageBranchRepository languageBranchRepository, IContentProviderManager contentProviderManager, ReferenceConverter referenceConverter)
Parameters
Type Name Description
EPiServer.IContentRepository contentRepository

The content repository

EPiServer.Core.IContentEvents contentEvents

The content events

EPiServer.DataAbstraction.ILanguageBranchRepository languageBranchRepository

The language branch repository

EPiServer.Core.IContentProviderManager contentProviderManager

The content provider manager

ReferenceConverter referenceConverter

The reference converter

Methods

Get(ContentReference)

Gets the settings for all languages for the specified content link.

Declaration
[Obsolete("Do not use this method, it has the wrong return type. Cast to IContentLanguageSettingsHandler and use that Get method. This method will be removed in Commerce 10.")]
public virtual ContentLanguageSetting[] Get(ContentReference contentLink)
Parameters
Type Name Description
EPiServer.Core.ContentReference contentLink

The content link.

Returns
Type Description
EPiServer.DataAbstraction.ContentLanguageSetting[]

A ContentLanguageSetting[] with the language settings for the given content.

Implements

EPiServer.Core.IContentLanguageSettingsHandler