View Source
Class FileSystemTreeController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public abstract class FileSystemTreeController : TreeController
Constructors
View Source
Declaration
protected FileSystemTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IMenuItemCollectionFactory menuItemCollectionFactory, IEventAggregator eventAggregator)
Parameters
Type |
Name |
Description |
ILocalizedTextService |
localizedTextService |
|
UmbracoApiControllerTypeCollection |
umbracoApiControllerTypeCollection |
|
IMenuItemCollectionFactory |
menuItemCollectionFactory |
|
IEventAggregator |
eventAggregator |
|
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
Type |
Description |
System.Nullable<IFileSystem> |
|
View Source
Declaration
protected IMenuItemCollectionFactory MenuItemCollectionFactory { get; }
Property Value
Type |
Description |
IMenuItemCollectionFactory |
|
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<System.Nullable<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
Type |
Description |
MenuItemCollection |
|
View Source
Declaration
protected virtual MenuItemCollection GetMenuForFolder(string path, FormCollection queryStrings)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
Type |
Description |
MenuItemCollection |
|
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
Type |
Description |
Microsoft.AspNetCore.Mvc.ActionResult<MenuItemCollection> |
|
View Source
Declaration
protected virtual MenuItemCollection GetMenuForRootNode(FormCollection queryStrings)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Http.FormCollection |
queryStrings |
|
Returns
Type |
Description |
MenuItemCollection |
|
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
Type |
Description |
Microsoft.AspNetCore.Mvc.ActionResult<TreeNodeCollection> |
|
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
Type |
Name |
Description |
TreeNode |
treeNode |
|
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
Type |
Name |
Description |
TreeNode |
treeNode |
|