SaaS CMS has officially launched! Learn more now.

Class ContentDataMetadataProvider

Inheritance
System.Object
ContentDataMetadataProvider
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: EPiServer.Cms.Shell.UI.Internal
Assembly: EPiServer.Cms.Shell.UI.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(IncludeServiceAccessor = false)]
public class ContentDataMetadataProvider : IMetadataProvider, IMetadataHandler, IMetadataPropertyMappingProvider

Constructors

ContentDataMetadataProvider(MetadataHandlerRegistry, ServiceAccessor<IPropertyDefinitionRepository>, ITabDefinitionRepository, ContentTypeModelRepository, ContentMetaDataPropertiesInjector, IMetaDataResolver, IContentLoader, LocalizationService, ExtensibleMetadataProvider, ServiceAccessor<HttpContextBase>, IPropertyValidationSettingsRepository)

Declaration
public ContentDataMetadataProvider(MetadataHandlerRegistry editorRegistry, ServiceAccessor<IPropertyDefinitionRepository> propertyDefinitionRepository, ITabDefinitionRepository tabRepository, ContentTypeModelRepository contentTypeModelRepository, ContentMetaDataPropertiesInjector contentMetaDataPropertiesInjector, IMetaDataResolver resolver, IContentLoader contentLoader, LocalizationService localizationService, ExtensibleMetadataProvider provider, ServiceAccessor<HttpContextBase> httpContextAccessor, IPropertyValidationSettingsRepository propertyValidationSettingsRepository)
Parameters
Type Name Description
MetadataHandlerRegistry editorRegistry
ServiceAccessor<IPropertyDefinitionRepository> propertyDefinitionRepository
ITabDefinitionRepository tabRepository
ContentTypeModelRepository contentTypeModelRepository
ContentMetaDataPropertiesInjector contentMetaDataPropertiesInjector
IMetaDataResolver resolver
IContentLoader contentLoader
LocalizationService localizationService
ExtensibleMetadataProvider provider
ServiceAccessor<System.Web.HttpContextBase> httpContextAccessor
IPropertyValidationSettingsRepository propertyValidationSettingsRepository

Methods

CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String)

Declaration
public ExtendedMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Attribute> attributes
System.Type containerType
System.Func<System.Object> modelAccessor
System.Type modelType
System.String propertyName
Returns
Type Description
ExtendedMetadata

GetMetadataForProperties(Object, Type)

Declaration
public IEnumerable<ExtendedMetadata> GetMetadataForProperties(object container, Type containerType)
Parameters
Type Name Description
System.Object container
System.Type containerType
Returns
Type Description
System.Collections.Generic.IEnumerable<ExtendedMetadata>

GetPropertyMappings(Object)

Declaration
public IEnumerable<PropertyMapping> GetPropertyMappings(object container)
Parameters
Type Name Description
System.Object container
Returns
Type Description
System.Collections.Generic.IEnumerable<PropertyMapping>

Implements

Extension Methods