Table of Contents

Class SingleObjectIdSelectorComponent

Namespace
Kentico.Xperience.Admin.Base.Forms
Assembly
Kentico.Xperience.Admin.Base.dll

Single object id selector.

public sealed class SingleObjectIdSelectorComponent : SingleObjectSelectorBase<SingleObjectSelectorProperties, int?>, IFormComponent, IFormItem<IFormComponentClientProperties>, IFormItem
Inheritance
object
SingleObjectIdSelectorComponent
Implements
Inherited Members
Extension Methods

Constructors

SingleObjectIdSelectorComponent(IObjectsRetriever, IObjectSelectorWhereConditionProviderActivator, ILocalizationService)

Constructor.

public SingleObjectIdSelectorComponent(IObjectsRetriever objectsRetriever, IObjectSelectorWhereConditionProviderActivator whereConditionProviderActivator, ILocalizationService localizationService)

Parameters

objectsRetriever IObjectsRetriever

Objects retriever.

whereConditionProviderActivator IObjectSelectorWhereConditionProviderActivator

WHERE condition provider activator.

localizationService ILocalizationService

Localization service.

Fields

IDENTIFIER

Single object id selector identifier.

public const string IDENTIFIER = "Kentico.Administration.SingleObjectIdSelector"

Field Value

string

Methods

ConfigureComponent()

Configures the form component. This method is called when all form component properties are set.

protected override void ConfigureComponent()

Remarks

Override this method to set component inner state, like additional component validation rules.

ConvertFormComponentValue(int?)

Extracts an array of selected object identifiers from component value for the sake of providing selected objects meta data to the client component.

protected override IEnumerable<string> ConvertFormComponentValue(int? value)

Parameters

value int?

Component value.

Returns

IEnumerable<string>

ExtractValue(IDataContainer, ObjectTypeInfo)

Enables IObjectsRetriever to create an element from a source data.

protected override int? ExtractValue(IDataContainer dataContainer, ObjectTypeInfo typeInfo)

Parameters

dataContainer IDataContainer

Source data.

typeInfo ObjectTypeInfo

Type info.

Returns

int?