Table of Contents

Class MediaTypeTreeController

Namespace
Umbraco.Cms.Web.BackOffice.Trees
Assembly
Umbraco.Web.BackOffice.dll
[Authorize(Policy = "TreeAccessMediaTypes")]
[Tree("settings", "mediaTypes", SortOrder = 1, TreeGroup = "settingsGroup")]
public class MediaTypeTreeController : TreeController, ITree, ISearchableTree, IDiscoverable
Inheritance
MediaTypeTreeController
Implements
ITree
ISearchableTree
IDiscoverable
Inherited Members

Constructors

MediaTypeTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, UmbracoTreeSearcher, IMenuItemCollectionFactory, IMediaTypeService, IEntityService, IEventAggregator)

public MediaTypeTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, UmbracoTreeSearcher treeSearcher, IMenuItemCollectionFactory menuItemCollectionFactory, IMediaTypeService mediaTypeService, IEntityService entityService, IEventAggregator eventAggregator)

Parameters

localizedTextService ILocalizedTextService
umbracoApiControllerTypeCollection UmbracoApiControllerTypeCollection
treeSearcher UmbracoTreeSearcher
menuItemCollectionFactory IMenuItemCollectionFactory
mediaTypeService IMediaTypeService
entityService IEntityService
eventAggregator IEventAggregator

Methods

GetMenuForNode(string, FormCollection)

protected override ActionResult<MenuItemCollection> GetMenuForNode(string id, FormCollection queryStrings)

Parameters

id string
queryStrings FormCollection

Returns

ActionResult<MenuItemCollection>

GetTreeNodes(string, FormCollection)

protected override ActionResult<TreeNodeCollection> GetTreeNodes(string id, FormCollection queryStrings)

Parameters

id string
queryStrings FormCollection

Returns

ActionResult<TreeNodeCollection>

SearchAsync(string, int, long, string?)

public Task<EntitySearchResults> SearchAsync(string query, int pageSize, long pageIndex, string? searchFrom = null)

Parameters

query string
pageSize int
pageIndex long
searchFrom string

Returns

Task<EntitySearchResults>