Table of Contents

Class UserTreeController

Namespace
Umbraco.Cms.Web.BackOffice.Trees
Assembly
Umbraco.Web.BackOffice.dll
[Authorize(Policy = "TreeAccessUsers")]
[Tree("users", "users", SortOrder = 0, IsSingleNodeTree = true)]
public class UserTreeController : TreeController, ITree
Inheritance
UserTreeController
Implements
ITree
Inherited Members

Constructors

UserTreeController(IMenuItemCollectionFactory, ILocalizedTextService, UmbracoApiControllerTypeCollection, IEventAggregator)

public UserTreeController(IMenuItemCollectionFactory menuItemCollectionFactory, ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IEventAggregator eventAggregator)

Parameters

menuItemCollectionFactory IMenuItemCollectionFactory
localizedTextService ILocalizedTextService
umbracoApiControllerTypeCollection UmbracoApiControllerTypeCollection
eventAggregator IEventAggregator

Methods

CreateRootNode(FormCollection)

Helper method to create a root model for a tree

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>