View Source
Class FileSystemTreeController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public abstract class FileSystemTreeController : TreeController, IUmbracoFeature, IDiscoverable, ITree
Constructors
View Source
Declaration
protected FileSystemTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IMenuItemCollectionFactory menuItemCollectionFactory, IEventAggregator eventAggregator)
Parameters
Properties
View Source
Extensions
Declaration
protected abstract string[] Extensions { get; }
Property Value
Type |
Description |
System.String[] |
|
View Source
FileIcon
Declaration
protected abstract string FileIcon { get; }
Property Value
Type |
Description |
System.String |
|
View Source
FileSystem
Declaration
protected abstract IFileSystem FileSystem { get; }
Property Value
View Source
Declaration
protected IMenuItemCollectionFactory MenuItemCollectionFactory { get; }
Property Value
Methods
View Source
Declaration
protected override ActionResult<TreeNode> CreateRootNode(FormCollection queryStrings)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Mvc.ActionResult<TreeNode> |
|
View Source
Declaration
protected virtual MenuItemCollection GetMenuForFile(string path, FormCollection queryStrings)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
View Source
Declaration
protected virtual MenuItemCollection GetMenuForFolder(string path, FormCollection queryStrings)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
View Source
Declaration
protected override ActionResult<MenuItemCollection> GetMenuForNode(string id, FormCollection queryStrings)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
View Source
Declaration
protected virtual MenuItemCollection GetMenuForRootNode(FormCollection queryStrings)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
View Source
Declaration
protected override ActionResult<TreeNodeCollection> GetTreeNodes(string id, FormCollection queryStrings)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
View Source
OnRenderFileNode(ref TreeNode)
Inheritors can override this method to modify the file node that is created.
Declaration
protected virtual void OnRenderFileNode(ref TreeNode treeNode)
Parameters
View Source
OnRenderFolderNode(ref TreeNode)
Inheritors can override this method to modify the folder node that is created.
Declaration
protected virtual void OnRenderFolderNode(ref TreeNode treeNode)
Parameters