View Source
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Assembly: Umbraco.Web.BackOffice.dll
[Authorize(Policy = "TreeAccessMediaTypes")]
public class MediaTypeTreeController : TreeController
Constructors
View Source
Declaration
public MediaTypeTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, UmbracoTreeSearcher treeSearcher, IMenuItemCollectionFactory menuItemCollectionFactory, IMediaTypeService mediaTypeService, IEntityService entityService, IEventAggregator eventAggregator)
Parameters
Type |
Name |
Description |
ILocalizedTextService |
localizedTextService |
|
UmbracoApiControllerTypeCollection |
umbracoApiControllerTypeCollection |
|
UmbracoTreeSearcher |
treeSearcher |
|
IMenuItemCollectionFactory |
menuItemCollectionFactory |
|
IMediaTypeService |
mediaTypeService |
|
IEntityService |
entityService |
|
IEventAggregator |
eventAggregator |
|
Methods
View Source
Declaration
protected override ActionResult<MenuItemCollection> GetMenuForNode(string id, FormCollection queryStrings)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Mvc.ActionResult<MenuItemCollection> |
|
View Source
Declaration
protected override ActionResult<TreeNodeCollection> GetTreeNodes(string id, FormCollection queryStrings)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Mvc.ActionResult<TreeNodeCollection> |
|
View Source
Declaration
public async Task<EntitySearchResults> SearchAsync(string query, int pageSize, long pageIndex, string searchFrom = null)
Parameters
Type |
Name |
Description |
System.String |
query |
|
System.Int32 |
pageSize |
|
System.Int64 |
pageIndex |
|
System.String |
searchFrom |
|
Returns
Type |
Description |
Task<EntitySearchResults> |
|