Search Results for

    Show / Hide Table of Contents
    View Source

    Class MediaTypeTreeController

    Inheritance
    System.Object
    Microsoft.AspNetCore.Mvc.ControllerBase
    UmbracoApiControllerBase
    UmbracoApiController
    UmbracoAuthorizedApiController
    TreeControllerBase
    TreeController
    Namespace: Umbraco.Cms.Web.BackOffice.Trees
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    [Authorize(Policy = "TreeAccessMediaTypes")]
    [PluginController("UmbracoTrees")]
    public class MediaTypeTreeController : TreeController, IUmbracoFeature, ITree, ISearchableTree, IDiscoverable

    Constructors

    View Source

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

    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

    GetMenuForNode(String, FormCollection)

    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

    GetTreeNodes(String, FormCollection)

    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

    SearchAsync(String, Int32, Int64, String)

    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>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MediaTypeTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, UmbracoTreeSearcher, IMenuItemCollectionFactory, IMediaTypeService, IEntityService, IEventAggregator)
    • Methods
      • GetMenuForNode(String, FormCollection)
      • GetTreeNodes(String, FormCollection)
      • SearchAsync(String, Int32, Int64, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX