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
menuItemCollectionFactoryIMenuItemCollectionFactorylocalizedTextServiceILocalizedTextServiceumbracoApiControllerTypeCollectionUmbracoApiControllerTypeCollectioneventAggregatorIEventAggregator
Methods
CreateRootNode(FormCollection)
Helper method to create a root model for a tree
protected override ActionResult<TreeNode?> CreateRootNode(FormCollection queryStrings)
Parameters
queryStringsFormCollection
Returns
- ActionResult<TreeNode>
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>