Class DefaultPropertySettingsResolver
Resolves IPropertySettings from a property on IContentData
Namespace: EPiServer.Core.PropertySettings.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class DefaultPropertySettingsResolver : PropertySettingsResolver
Constructors
DefaultPropertySettingsResolver(ContentTypeModelRepository, IPropertySettingsRepository, IPropertyDefinitionRepository, IContentTypeRepository)
Declaration
public DefaultPropertySettingsResolver(ContentTypeModelRepository modelRepo, IPropertySettingsRepository propertySettingsRepository, IPropertyDefinitionRepository propertyDefinitionRepository, IContentTypeRepository contentTypeRepository)
Parameters
Type | Name | Description |
---|---|---|
ContentTypeModelRepository | modelRepo | |
IPropertySettingsRepository | propertySettingsRepository | |
IPropertyDefinitionRepository | propertyDefinitionRepository | |
IContentTypeRepository | contentTypeRepository |
Methods
GetSettings(Type, Int32)
Resolve settings for a property definition.
Declaration
public virtual IPropertySettings GetSettings(Type settingsType, int propertyDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
System.Type | settingsType | The type of settings. |
System.Int32 | propertyDefinitionId | The property definition to read settings for. |
Returns
Type | Description |
---|---|
IPropertySettings | The settings or |
GetSettings(Type, Type, String)
Resolve settings for a property
Declaration
public override IPropertySettings GetSettings(Type settingsType, Type modelType, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.Type | settingsType | The type of settings |
System.Type | modelType | The content type to read from the settings for |
System.String | propertyName | The property name to read settings for |
Returns
Type | Description |
---|---|
IPropertySettings | The settings or |
Overrides
GetSettingsWrapper(Guid, Type, PropertySettingsAttribute)
Gets the property setting wrapper for a given property and the attributes defined on the property.
Declaration
public virtual PropertySettingsWrapper GetSettingsWrapper(Guid settingsID, Type settingsType, PropertySettingsAttribute propertySettingsAttribute)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | settingsID | The settings identifier. |
System.Type | settingsType | Type of the settings. |
PropertySettingsAttribute | propertySettingsAttribute | The property settings attribute. |
Returns
Type | Description |
---|---|
PropertySettingsWrapper | The PropertySettingsWrapper for a given type and model property. |