Table of Contents

Class MediaLibraryList

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

Media libraries listing page.

[Obsolete("Media libraries and their APIs are obsolete and will be discontinued in the future. Please migrate all media library files to Content hub and use their corresponding content item APIs.")]
public sealed class MediaLibraryList : ListingPage, IPage
Inheritance
object
MediaLibraryList
Implements
Inherited Members
Extension Methods

Constructors

MediaLibraryList(IUIPermissionEvaluator, IInfoProvider<MediaLibraryInfo>, ISchedulingExecutor, IInfoProvider<ScheduledTaskConfigurationInfo>, IAuthenticatedUserAccessor)

Initializes a new instance of the MediaLibraryList class.

public MediaLibraryList(IUIPermissionEvaluator uiPermissionEvaluator, IInfoProvider<MediaLibraryInfo> mediaLibraryInfoProvider, ISchedulingExecutor schedulingExecutor, IInfoProvider<ScheduledTaskConfigurationInfo> taskProvider, IAuthenticatedUserAccessor authenticatedUserAccessor)

Parameters

uiPermissionEvaluator IUIPermissionEvaluator
mediaLibraryInfoProvider IInfoProvider<MediaLibraryInfo>
schedulingExecutor ISchedulingExecutor
taskProvider IInfoProvider<ScheduledTaskConfigurationInfo>
authenticatedUserAccessor IAuthenticatedUserAccessor

Properties

ObjectType

Type of the info objects that are listed. Corresponds to the OBJECT_TYPE property of the info object or PredefinedObjectType.

protected override string ObjectType { get; }

Property Value

string

Methods

ConfigurePage()

Allows configure and share page specific values prior invocation of the ConfigureTemplateProperties(TClientProperties) or command method.

public override Task ConfigurePage()

Returns

Task

Delete(int)

Deletes listing item specified by the id parameter.

[PageCommand(Permission = "Delete")]
public override Task<ICommandResponse<RowActionResult>> Delete(int id)

Parameters

id int

Returns

Task<ICommandResponse<RowActionResult>>

MigrateMediaLibraries(CancellationToken)

Migrates media libraries.

[PageCommand(Permission = "MigrateMediaLibrary")]
public Task<ICommandResponse> MigrateMediaLibraries(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<ICommandResponse>