Class FileSystemTreeController
- Namespace
- Umbraco.Cms.Web.BackOffice.Trees
- Assembly
- Umbraco.Web.BackOffice.dll
public abstract class FileSystemTreeController : TreeController, ITree
- Inheritance
-
FileSystemTreeController
- Implements
-
ITree
- Derived
- Inherited Members
Constructors
FileSystemTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, IMenuItemCollectionFactory, IEventAggregator)
protected FileSystemTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IMenuItemCollectionFactory menuItemCollectionFactory, IEventAggregator eventAggregator)
Parameters
localizedTextServiceILocalizedTextServiceumbracoApiControllerTypeCollectionUmbracoApiControllerTypeCollectionmenuItemCollectionFactoryIMenuItemCollectionFactoryeventAggregatorIEventAggregator
Properties
Extensions
protected abstract string[] Extensions { get; }
Property Value
- string[]
FileIcon
protected abstract string FileIcon { get; }
Property Value
FileSystem
protected abstract IFileSystem? FileSystem { get; }
Property Value
- IFileSystem
MenuItemCollectionFactory
protected IMenuItemCollectionFactory MenuItemCollectionFactory { get; }
Property Value
- IMenuItemCollectionFactory
Methods
CreateRootNode(FormCollection)
protected override ActionResult<TreeNode?> CreateRootNode(FormCollection queryStrings)
Parameters
queryStringsFormCollection
Returns
- ActionResult<TreeNode>
GetMenuForFile(string, FormCollection)
protected virtual MenuItemCollection GetMenuForFile(string path, FormCollection queryStrings)
Parameters
pathstringqueryStringsFormCollection
Returns
- MenuItemCollection
GetMenuForFolder(string, FormCollection)
protected virtual MenuItemCollection GetMenuForFolder(string path, FormCollection queryStrings)
Parameters
pathstringqueryStringsFormCollection
Returns
- MenuItemCollection
GetMenuForNode(string, FormCollection)
protected override ActionResult<MenuItemCollection> GetMenuForNode(string id, FormCollection queryStrings)
Parameters
idstringqueryStringsFormCollection
Returns
- ActionResult<MenuItemCollection>
GetMenuForRootNode(FormCollection)
protected virtual MenuItemCollection GetMenuForRootNode(FormCollection queryStrings)
Parameters
queryStringsFormCollection
Returns
- MenuItemCollection
GetTreeNodes(string, FormCollection)
protected override ActionResult<TreeNodeCollection> GetTreeNodes(string id, FormCollection queryStrings)
Parameters
idstringqueryStringsFormCollection
Returns
- ActionResult<TreeNodeCollection>
OnRenderFileNode(ref TreeNode)
Inheritors can override this method to modify the file node that is created.
protected virtual void OnRenderFileNode(ref TreeNode treeNode)
Parameters
treeNodeTreeNode
OnRenderFolderNode(ref TreeNode)
Inheritors can override this method to modify the folder node that is created.
protected virtual void OnRenderFolderNode(ref TreeNode treeNode)
Parameters
treeNodeTreeNode