Class ApplicationTreeController
Used to return tree root nodes
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Namespace: Umbraco.Cms.Web.BackOffice.Trees
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[AngularJsonOnlyConfiguration]
public class ApplicationTreeController : UmbracoAuthorizedApiController
Constructors
View SourceApplicationTreeController(ITreeService, ISectionService, ILocalizedTextService, IControllerFactory, IActionDescriptorCollectionProvider)
Initializes a new instance of the ApplicationTreeController class.
Declaration
public ApplicationTreeController(ITreeService treeService, ISectionService sectionService, ILocalizedTextService localizedTextService, IControllerFactory controllerFactory, IActionDescriptorCollectionProvider actionDescriptorCollectionProvider)
Parameters
Type | Name | Description |
---|---|---|
ITreeService | treeService | |
ISectionService | sectionService | |
ILocalizedTextService | localizedTextService | |
Microsoft.AspNetCore.Mvc.Controllers.IControllerFactory | controllerFactory | |
Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider | actionDescriptorCollectionProvider |
Methods
View SourceGetApplicationTrees(String, String, FormCollection, TreeUse)
Returns the tree nodes for an application
Declaration
public async Task<ActionResult<TreeRootNode>> GetApplicationTrees(string application, string tree, [ModelBinder(typeof(HttpQueryStringModelBinder))] FormCollection queryStrings, TreeUse use = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | application | The application to load tree for |
System.String | tree | An optional single tree alias, if specified will only load the single tree for the request app |
Microsoft.AspNetCore.Http.FormCollection | queryStrings | The query strings |
TreeUse | use | Tree use. |
Returns
Type | Description |
---|---|
Task<Microsoft.AspNetCore.Mvc.ActionResult<TreeRootNode>> |