Table of Contents

Interface IAssetFolderTreeViewProvider

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

Interface for loading asset folders for the library.

[Obsolete("Interface was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(26, 0)]
public interface IAssetFolderTreeViewProvider
Extension Methods

Methods

Get(int, string)

Gets child folders of given folder path based on given library identifier.

Task<IEnumerable<AssetFolderTreeViewItem>> Get(int libraryIdentifier, string folderPath)

Parameters

libraryIdentifier int

Assets library identifier.

folderPath string

Path to the parent folder.

Returns

Task<IEnumerable<AssetFolderTreeViewItem>>

Remarks

If folderPath is null or empty string, root folder together with direct child folders are returned. Otherwise direct child folders for given path are returned.

GetForSelection(int, string)

Gets folders from all levels leading to path provided in selectedFolderPath.

Task<IEnumerable<AssetFolderTreeViewItem>> GetForSelection(int libraryIdentifier, string selectedFolderPath)

Parameters

libraryIdentifier int

Assets library identifier.

selectedFolderPath string

Path to the parent folder.

Returns

Task<IEnumerable<AssetFolderTreeViewItem>>