Class CatalogAvailableContentTypeService

Extends the EPiServer.DataAbstraction.ContentTypeAvailabilityService with logic that enforces the ECF rules regarding data structure in the catalog. It will remove any NodeContent as an available child from any catalog content that isn't either a CatalogContent or another NodeContent.

Inheritance
System.Object
CatalogAvailableContentTypeService
Namespace: EPiServer.Commerce.Catalog.Provider
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
[Obsolete("This class is no longer used. Will remain at least until April 2017.")]
public class CatalogAvailableContentTypeService : DefaultContentTypeAvailablilityService

Constructors

CatalogAvailableContentTypeService(ServiceAccessor<IContentTypeRepository>, IAvailableModelSettingsRepository, IAvailableSettingsRepository)

Initializes a new instance of the CatalogAvailableContentTypeService class.

Declaration
[Obsolete("Use alternative constructor. Will remain at least until November 2016.")]
public CatalogAvailableContentTypeService(ServiceAccessor<IContentTypeRepository> contentTypeRepositoryAccessor, IAvailableModelSettingsRepository modelRepository, IAvailableSettingsRepository typeSettingsRepository)
Parameters
Type Name Description
EPiServer.ServiceLocation.ServiceAccessor<EPiServer.DataAbstraction.IContentTypeRepository> contentTypeRepositoryAccessor

The content type repository accessor.

EPiServer.DataAbstraction.RuntimeModel.IAvailableModelSettingsRepository modelRepository

The model repository.

EPiServer.DataAbstraction.IAvailableSettingsRepository typeSettingsRepository

The type settings repository.

CatalogAvailableContentTypeService(ServiceAccessor<IContentTypeRepository>, IAvailableModelSettingsRepository, IAvailableSettingsRepository, GroupDefinitionRepository, IContentLoader, ISynchronizedObjectInstanceCache)

Initializes a new instance of the CatalogAvailableContentTypeService class.

Declaration
public CatalogAvailableContentTypeService(ServiceAccessor<IContentTypeRepository> contentTypeRepositoryAccessor, IAvailableModelSettingsRepository modelRepository, IAvailableSettingsRepository typeSettingsRepository, GroupDefinitionRepository groupDefinitionRepository, IContentLoader contentLoader, ISynchronizedObjectInstanceCache cache)
Parameters
Type Name Description
EPiServer.ServiceLocation.ServiceAccessor<EPiServer.DataAbstraction.IContentTypeRepository> contentTypeRepositoryAccessor

The content type repository accessor to use

EPiServer.DataAbstraction.RuntimeModel.IAvailableModelSettingsRepository modelRepository

The model repository to use

EPiServer.DataAbstraction.IAvailableSettingsRepository typeSettingsRepository

The type setting repository to use

EPiServer.DataAbstraction.GroupDefinitionRepository groupDefinitionRepository

The group definition repository to use

EPiServer.IContentLoader contentLoader

The content loader to use

EPiServer.Framework.Cache.ISynchronizedObjectInstanceCache cache

The cache to use

Methods

GetSetting(String)

Gets the settings for available content types for a EPiServer.DataAbstraction.ContentType given by name contentTypeName. Will enforce ECF rules by remove and node content types if the content type is not a catalog or a node.

Declaration
public override AvailableSetting GetSetting(string contentTypeName)
Parameters
Type Name Description
System.String contentTypeName

Name of the content type.

Returns
Type Description
EPiServer.DataAbstraction.AvailableSetting

The settings for available content types