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

Class AdministrationSettingsService

Handles administration settings for content types and properties.

Inheritance
System.Object
AdministrationSettingsService
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.DataAbstraction
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[ServiceConfiguration]
public class AdministrationSettingsService

Constructors

AdministrationSettingsService()

Declaration
public AdministrationSettingsService()

AdministrationSettingsService(IContentTypeRepository, ContentTypeModelRepository, PropertyDefinitionSynchronizer)

Declaration
public AdministrationSettingsService(IContentTypeRepository contentTypeRepository, ContentTypeModelRepository contentTypeModelRepository, PropertyDefinitionSynchronizer propertyDefinitionSynchronizer)
Parameters
Type Name Description
IContentTypeRepository contentTypeRepository
ContentTypeModelRepository contentTypeModelRepository
PropertyDefinitionSynchronizer propertyDefinitionSynchronizer

Methods

GetAdministrationSettings(ContentType)

Get administration settings if content type is found or just default values

Declaration
public virtual AdministrationSettingsAttribute GetAdministrationSettings(ContentType contentType)
Parameters
Type Name Description
ContentType contentType

The content type

Returns
Type Description
AdministrationSettingsAttribute

Administration settings

GetAdministrationSettings(PropertyDefinition)

Get administration settings if content type is found or just default values

Declaration
public virtual AdministrationSettingsAttribute GetAdministrationSettings(PropertyDefinition propertyDefinition)
Parameters
Type Name Description
PropertyDefinition propertyDefinition

The property definition

Returns
Type Description
AdministrationSettingsAttribute

Administration settings

GetEnabledFields(ContentType)

Gets the settings indicating what fields that should enabled/disabled when administrating the specified ContentType.

Declaration
public virtual ContentTypeFields GetEnabledFields(ContentType contentType)
Parameters
Type Name Description
ContentType contentType

The content type the fields are regarding.

Returns
Type Description
ContentTypeFields

The fields that should be available for administration.

GetEnabledFields(PropertyDefinition)

Gets the settings indicating what fields that should enabled/disabled when administrating the specified PropertyDefinition.

Declaration
public virtual PropertyDefinitionFields GetEnabledFields(PropertyDefinition propertyDefinition)
Parameters
Type Name Description
PropertyDefinition propertyDefinition

The property definition to get the enabled field for.

Returns
Type Description
PropertyDefinitionFields

The fields that should be available for administration.

Extension Methods