Table of Contents

Class MediaLibraryEdit

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

Media library general edit page.

[UIPageLocation(PageLocationEnum.SidePanel)]
public sealed class MediaLibraryEdit : InfoEditPage<MediaLibraryInfo>, IPage
Inheritance
object
MediaLibraryEdit
Implements
Inherited Members
Extension Methods

Constructors

MediaLibraryEdit(IFormComponentMapper, IFormDataBinder, IPageLinkGenerator)

Initializes an instance of the MediaLibraryEdit class.

public MediaLibraryEdit(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IPageLinkGenerator pageLinkGenerator)

Parameters

formComponentMapper IFormComponentMapper
formDataBinder IFormDataBinder
pageLinkGenerator IPageLinkGenerator

Properties

ObjectId

ID of the object.

[PageParameter(typeof(IntPageModelBinder))]
public override int ObjectId { get; set; }

Property Value

int

Methods

ConfigurePage()

Set up page's configuration. Configures the submit action.

public override Task ConfigurePage()

Returns

Task

GetSubmitSuccessResponse(MediaLibraryInfo, ICollection<IFormItem>)

Response that has to be returned after successful form submission.

protected override Task<ICommandResponse> GetSubmitSuccessResponse(MediaLibraryInfo savedInfoObject, ICollection<IFormItem> items)

Parameters

savedInfoObject MediaLibraryInfo

Object info after persisting.

items ICollection<IFormItem>

Collection with updated form items.

Returns

Task<ICommandResponse>

SetFormData(MediaLibraryInfo, IFormFieldValueProvider)

Sets the infoObject.

protected override Task SetFormData(MediaLibraryInfo infoObject, IFormFieldValueProvider fieldValueProvider)

Parameters

infoObject MediaLibraryInfo

Info object to be set.

fieldValueProvider IFormFieldValueProvider

Provider of form field values.

Returns

Task