Table of Contents

Class MediaLibraryCreate

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

Media library creation page.

public sealed class MediaLibraryCreate : CreatePage<MediaLibraryInfo, MediaLibraryEditSection>, IPage
Inheritance
object
MediaLibraryCreate
Implements
Inherited Members
Extension Methods

Constructors

MediaLibraryCreate(IFormComponentMapper, IFormDataBinder, IPageLinkGenerator, IAssetFolderNameValidator)

Initializes an instance of the MediaLibraryCreate class.

public MediaLibraryCreate(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IPageLinkGenerator pageLinkGenerator, IAssetFolderNameValidator assetFolderNameValidator)

Parameters

formComponentMapper IFormComponentMapper
formDataBinder IFormDataBinder
pageLinkGenerator IPageLinkGenerator
assetFolderNameValidator IAssetFolderNameValidator

Methods

ConfigurePage()

Set up page's configuration. Configures UI page.

public override Task ConfigurePage()

Returns

Task

FinalizeInfoObject(MediaLibraryInfo, IFormFieldValueProvider, CancellationToken)

Allows to modify values of infoObject before validation and saving.

protected override Task FinalizeInfoObject(MediaLibraryInfo infoObject, IFormFieldValueProvider fieldValueProvider, CancellationToken cancellationToken)

Parameters

infoObject MediaLibraryInfo

Info object to be set.

fieldValueProvider IFormFieldValueProvider

Provider of form field values.

cancellationToken CancellationToken

The cancellation instruction.

Returns

Task

GetFormItems()

Prepares form items for editing object of the specified ObjectType.

protected override Task<ICollection<IFormItem>> GetFormItems()

Returns

Task<ICollection<IFormItem>>

Returns the collection of form items.