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
-
ITreeISearchableTreeIDiscoverable
- 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
localizedTextServiceILocalizedTextServiceumbracoApiControllerTypeCollectionUmbracoApiControllerTypeCollectiontreeSearcherUmbracoTreeSearchermenuItemCollectionFactoryIMenuItemCollectionFactorycontentTypeServiceIContentTypeServiceentityServiceIEntityServiceeventAggregatorIEventAggregator
Methods
CreateRootNode(FormCollection)
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>
SearchAsync(string, int, long, string?)
public Task<EntitySearchResults> SearchAsync(string query, int pageSize, long pageIndex, string? searchFrom = null)
Parameters
Returns
- Task<EntitySearchResults>