Search Results for

    Show / Hide Table of Contents
    View Source

    Class FileSystemTreeController

    Inheritance
    System.Object
    Microsoft.AspNetCore.Mvc.ControllerBase
    UmbracoApiControllerBase
    UmbracoApiController
    UmbracoAuthorizedApiController
    TreeControllerBase
    TreeController
    Namespace: Umbraco.Cms.Web.BackOffice.Trees
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    public abstract class FileSystemTreeController : TreeController, IUmbracoFeature, IDiscoverable, ITree

    Constructors

    View Source

    FileSystemTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, IMenuItemCollectionFactory, IEventAggregator)

    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
    IFileSystem
    View Source

    MenuItemCollectionFactory

    Declaration
    protected IMenuItemCollectionFactory MenuItemCollectionFactory { get; }
    Property Value
    Type Description
    IMenuItemCollectionFactory

    Methods

    View Source

    CreateRootNode(FormCollection)

    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

    GetMenuForFile(String, FormCollection)

    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

    GetMenuForFolder(String, FormCollection)

    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

    GetMenuForNode(String, FormCollection)

    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

    GetMenuForRootNode(FormCollection)

    Declaration
    protected virtual MenuItemCollection GetMenuForRootNode(FormCollection queryStrings)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Http.FormCollection queryStrings
    Returns
    Type Description
    MenuItemCollection
    View Source

    GetTreeNodes(String, FormCollection)

    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
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • FileSystemTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, IMenuItemCollectionFactory, IEventAggregator)
    • Properties
      • Extensions
      • FileIcon
      • FileSystem
      • MenuItemCollectionFactory
    • Methods
      • CreateRootNode(FormCollection)
      • GetMenuForFile(String, FormCollection)
      • GetMenuForFolder(String, FormCollection)
      • GetMenuForNode(String, FormCollection)
      • GetMenuForRootNode(FormCollection)
      • GetTreeNodes(String, FormCollection)
      • OnRenderFileNode(ref TreeNode)
      • OnRenderFolderNode(ref TreeNode)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX