Table of Contents

Class MediaLibraryFilesTab

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

Media library files page.

public sealed class MediaLibraryFilesTab : Page<MediaLibraryFilesClientProperties>, IPage
Inheritance
object
MediaLibraryFilesTab
Implements
Inherited Members
Extension Methods

Constructors

MediaLibraryFilesTab(IInfoProvider<MediaLibraryInfo>)

Initializes a new instance of MediaLibraryFilesTab.

public MediaLibraryFilesTab(IInfoProvider<MediaLibraryInfo> mediaLibraryProvider)

Parameters

mediaLibraryProvider IInfoProvider<MediaLibraryInfo>

Properties

LibraryId

ID of the library.

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

Property Value

int

Methods

ConfigureTemplateProperties(MediaLibraryFilesClientProperties)

Gets the object representing client side template properties.

public override Task<MediaLibraryFilesClientProperties> ConfigureTemplateProperties(MediaLibraryFilesClientProperties properties)

Parameters

properties MediaLibraryFilesClientProperties

Initialized properties object.

Returns

Task<MediaLibraryFilesClientProperties>

CreateAssetFolder(AssetFolderFormSubmissionCommandArguments, CancellationToken)

Creates asset folders.

public Task<ICommandResponse<AssetFolderFormSubmissionCommandResult>> CreateAssetFolder(AssetFolderFormSubmissionCommandArguments args, CancellationToken cancellationToken)

Parameters

args AssetFolderFormSubmissionCommandArguments
cancellationToken CancellationToken

Returns

Task<ICommandResponse<AssetFolderFormSubmissionCommandResult>>

DeleteAsset(AssetCommandArguments)

Deletes asset from media library.

public Task<ICommandResponse> DeleteAsset(AssetCommandArguments args)

Parameters

args AssetCommandArguments

Returns

Task<ICommandResponse>

DeleteAssetFolder(DeleteAssetFolderCommandArguments)

Deletes asset folder.

public Task<ICommandResponse> DeleteAssetFolder(DeleteAssetFolderCommandArguments args)

Parameters

args DeleteAssetFolderCommandArguments

Returns

Task<ICommandResponse>

GetAssetFolderForm(CancellationToken)

Creates form items for asset folder creation.

public Task<ICommandResponse<GetAssetFolderFormCommandResult>> GetAssetFolderForm(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task<ICommandResponse<GetAssetFolderFormCommandResult>>

LoadAssetFolders(LoadAssetFoldersCommandArguments)

Loads asset folders.

public Task<ICommandResponse<LoadAssetFoldersResult>> LoadAssetFolders(LoadAssetFoldersCommandArguments args)

Parameters

args LoadAssetFoldersCommandArguments

Returns

Task<ICommandResponse<LoadAssetFoldersResult>>

LoadAssetItems(LoadAssetItemsCommandArguments)

Loads asset items.

public Task<ICommandResponse<LoadAssetItemsResult>> LoadAssetItems(LoadAssetItemsCommandArguments args)

Parameters

args LoadAssetItemsCommandArguments

Returns

Task<ICommandResponse<LoadAssetItemsResult>>

MoveAsset(MoveAssetCommandArguments)

Moves specified asset to specified location.

public Task<ICommandResponse<MoveAssetCommandResult>> MoveAsset(MoveAssetCommandArguments args)

Parameters

args MoveAssetCommandArguments

Move command arguments.

Returns

Task<ICommandResponse<MoveAssetCommandResult>>

RenameAssetFolder(RenameAssetFolderFormSubmissionCommandArguments, CancellationToken)

Renames asset folder.

public Task<ICommandResponse<AssetFolderFormSubmissionCommandResult>> RenameAssetFolder(RenameAssetFolderFormSubmissionCommandArguments args, CancellationToken cancellationToken)

Parameters

args RenameAssetFolderFormSubmissionCommandArguments
cancellationToken CancellationToken

Returns

Task<ICommandResponse<AssetFolderFormSubmissionCommandResult>>

UpdateAssetBinary(UpdateAssetBinaryCommandArguments)

Updates media library file's binary data.

public Task<ICommandResponse<UpdateAssetBinaryCommandResult>> UpdateAssetBinary(UpdateAssetBinaryCommandArguments args)

Parameters

args UpdateAssetBinaryCommandArguments

UpdateBinary command arguments.

Returns

Task<ICommandResponse<UpdateAssetBinaryCommandResult>>

UploadAssets(UploadAssetsCommandArguments)

Uploads files to media library.

public Task<ICommandResponse<UploadAssetsCommandResult>> UploadAssets(UploadAssetsCommandArguments args)

Parameters

args UploadAssetsCommandArguments

Upload command arguments.

Returns

Task<ICommandResponse<UploadAssetsCommandResult>>

ValidatePage()

Validates the page state prior invocation of the ConfigurePage() method.

public override Task<PageValidationResult> ValidatePage()

Returns

Task<PageValidationResult>