Table of Contents

Class ContentTypeTreeController

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

Constructors

ContentTypeTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, UmbracoTreeSearcher, IMenuItemCollectionFactory, IContentTypeService, IEntityService, IEventAggregator)

public ContentTypeTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, UmbracoTreeSearcher treeSearcher, IMenuItemCollectionFactory menuItemCollectionFactory, IContentTypeService contentTypeService, IEntityService entityService, IEventAggregator eventAggregator)

Parameters

localizedTextService ILocalizedTextService
umbracoApiControllerTypeCollection UmbracoApiControllerTypeCollection
treeSearcher UmbracoTreeSearcher
menuItemCollectionFactory IMenuItemCollectionFactory
contentTypeService IContentTypeService
entityService IEntityService
eventAggregator IEventAggregator

Methods

CreateRootNode(FormCollection)

protected override ActionResult<TreeNode?> CreateRootNode(FormCollection queryStrings)

Parameters

queryStrings FormCollection

Returns

ActionResult<TreeNode>

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>