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
-
ITreeISearchableTreeIDiscoverable
- 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
localizedTextServiceILocalizedTextServiceumbracoApiControllerTypeCollectionUmbracoApiControllerTypeCollectiontreeSearcherUmbracoTreeSearchermenuItemCollectionFactoryIMenuItemCollectionFactorymediaTypeServiceIMediaTypeServiceentityServiceIEntityServiceeventAggregatorIEventAggregator
Methods
GetMenuForNode(string, FormCollection)
protected override ActionResult<MenuItemCollection> GetMenuForNode(string id, FormCollection queryStrings)
Parameters
idstringqueryStringsFormCollection
Returns
- ActionResult<MenuItemCollection>
GetTreeNodes(string, FormCollection)
protected override ActionResult<TreeNodeCollection> GetTreeNodes(string id, FormCollection queryStrings)
Parameters
idstringqueryStringsFormCollection
Returns
- ActionResult<TreeNodeCollection>
SearchAsync(string, int, long, string?)
public Task<EntitySearchResults> SearchAsync(string query, int pageSize, long pageIndex, string? searchFrom = null)
Parameters
Returns
- Task<EntitySearchResults>